]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug in l10n.language template where $target parameter
authorBob Stayton <bobs@sagehill.net>
Tue, 24 Jun 2003 20:40:48 +0000 (20:40 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 24 Jun 2003 20:40:48 +0000 (20:40 +0000)
was missing from xpath expression.

xsl/common/l10n.xsl

index 4164afa80833e641f7da1d7fd1bbddc1647bd8b8..d33d22360a6a5385f918b9ccda32556cccabda4e 100644 (file)
@@ -48,8 +48,8 @@
       <xsl:otherwise>
         <!-- can't do this one step: attributes are unordered! -->
         <xsl:variable name="lang-scope"
-                      select="(ancestor-or-self::*[@lang]
-                               |ancestor-or-self::*[@xml:lang])[last()]"/>
+                      select="($target/ancestor-or-self::*[@lang]
+                           |$target/ancestor-or-self::*[@xml:lang])[last()]"/>
         <xsl:variable name="lang-attr"
                       select="($lang-scope/@lang | $lang-scope/@xml:lang)[1]"/>