]> granicus.if.org Git - docbook-dsssl/commitdiff
Switched to just using translate() in place of locale-aware
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 25 Mar 2006 17:14:42 +0000 (17:14 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 25 Mar 2006 17:14:42 +0000 (17:14 +0000)
string.lower(). The dirnames are all ASCII, so using
string.lower() to convert them is overkill.

xsl/docsrc/release-notes.xsl

index a46c6988fac7400857dde93fa7cfc997f2d2fd92..2dc76bb2b6e6e9e6086a02f84fdafd9a8160bac7 100644 (file)
@@ -18,7 +18,6 @@
   <!-- * XML-formatted ChangeLog output of the cvs2cl command -->
   <!-- *   http://www.red-bean.com/cvs2cl/ -->
 
-  <xsl:param name="l10n.gentext.language">en</xsl:param>
   <xsl:param name="release-version"/>
   <xsl:param name="latest-tag">VXXXX</xsl:param>
   <!-- * We get the value of $previous-release by chopping up the latest -->
       )"/>
   </xsl:param>
 
-  <xsl:include href="../lib/lib.xsl"/>
-  <xsl:include href="../common/l10n.xsl"/>
-  <xsl:include href="../common/common.xsl"/>
-
   <xsl:strip-space elements="changelog entry"/>
 
   <!-- * $subsections holds a "display name" for each subsection to -->
     <!-- * param, popping them off until it depletes the list. -->
     <xsl:param name="subsection"/>
     <xsl:param name="remaining-subsections"/>
-    <xsl:param name="dirname">
       <!-- * dirname is a lowercase version of the "display name" for -->
       <!-- * each subsection -->
-      <xsl:call-template name="string.lower">
-        <xsl:with-param name="string" select="$subsection"/>
-      </xsl:call-template>
-    </xsl:param>
+    <xsl:param name="dirname"
+               select="translate($subsection,
+                       'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
+                       'abcdefghijklmnopqrstuvwxyz')"/>
     <!-- * if $subsection is empty it means we have walked through -->
     <!-- * the entire list and depleted it; so that's the point at which -->
     <!-- * the template stops recursing and returns -->