]> granicus.if.org Git - docbook-dsssl/commitdiff
Reverted the change from [last()] to [1] back to [last()]
authorBob Stayton <bobs@sagehill.net>
Tue, 31 Jul 2001 16:29:14 +0000 (16:29 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 31 Jul 2001 16:29:14 +0000 (16:29 +0000)
because that is the correct code.

xsl/common/l10n.xsl

index 96ca1a64e023834e34e4da9b095c71b1c16de6d5..088dd5e88012d2604125896d5dda71208acde6a9 100644 (file)
@@ -32,7 +32,7 @@
       <xsl:when test="$xref-context or $l10n.gentext.use.xref.language">
         <xsl:variable name="lang-attr"
                       select="($target/ancestor-or-self::*/@lang
-                               |$target/ancestor-or-self::*/@xml:lang)[1]"/>
+                               |$target/ancestor-or-self::*/@xml:lang)[last()]"/>
         <xsl:choose>
           <xsl:when test="string($lang-attr) = ''">
             <xsl:value-of select="$l10n.gentext.default.language"/>
@@ -46,7 +46,7 @@
       <xsl:otherwise>
         <xsl:variable name="lang-attr" 
                       select="(ancestor-or-self::*/@lang
-                               |ancestor-or-self::*/@xml:lang)[1]"/>
+                               |ancestor-or-self::*/@xml:lang)[last()]"/>
         <xsl:choose>
           <xsl:when test="string($lang-attr) = ''">
             <xsl:value-of select="$l10n.gentext.default.language"/>