Text version of Release Notes

Andrew Martynov andrewm at inventa.ru
Tue Mar 14 21:00:28 UTC 2006


Hello, Paul!

Please look into attached patch. It helps me to generate Russian 
text version of Release Notes with localized special items.

It allows preserve "lang" atribute for <article> tag within RELEASE-NOTES.stripped.xml.
So "Table of contents" and "the section called" replaced for translated version.

Index: ../docs-common/packaging/strip-for-txt.xsl
===================================================================
RCS file: /cvs/docs/docs-common/packaging/strip-for-txt.xsl,v
retrieving revision 1.1
diff -r1.1 strip-for-txt.xsl
32c32
<     <xsl:element name="article">
---
>     <xsl:element name="article"><xsl:attribute name="lang"><xsl:value-of select="@lang" /></xsl:attribute>


-- 
Andrew Martynov
Inventa

phone +7(095)7758777
fax   +7(095)9270981
http://www.rhd.ru
andrewm at inventa.ru
-------------- next part --------------
--- ../docs-common/packaging/strip-for-txt.xsl  17 Feb 2006 03:36:54 -0000      1.1
+++ ../docs-common/packaging/strip-for-txt.xsl  14 Mar 2006 20:58:00 -0000
@@ -29,7 +29,7 @@
   </xsl:template>

   <xsl:template match="/article">
-    <xsl:element name="article">
+    <xsl:element name="article"><xsl:attribute name="lang"><xsl:value-of select="@lang" /></xsl:attribute>
       <xsl:for-each select="*">
        <xsl:choose>
          <xsl:when test="self::articleinfo">


More information about the docs mailing list