]> granicus.if.org Git - docbook-dsssl/commit
Added code to the "l10n.language" template to fall
authorBob Stayton <bobs@sagehill.net>
Tue, 31 Jul 2001 09:35:06 +0000 (09:35 +0000)
committerBob Stayton <bobs@sagehill.net>
Tue, 31 Jul 2001 09:35:06 +0000 (09:35 +0000)
commit67ff534b7a55fe0249fda807608485e817f83928
tree922dae3ac4f3b6517e9e2425eb08204c0e0727fa
parentcc86752e08d453a783b966c1b4786c07d693f9a2
Added code to the "l10n.language" template to fall
back to the two-letter lang code if a longer lang
does not have a <lang>.xml localization file.
And it falls back to the default lang if it can't
find that either.

Also fixed a bug for finding the lang attribute.
It was using the last() function, but in an
ancestor-or-self node set you want the first ancestor
(closest) with a lang value.

49c49
<                                |ancestor-or-self::*/@xml:lang)[last()]"/>
---
>                                |ancestor-or-self::*/@xml:lang)[1]"/>
xsl/common/l10n.xsl