This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Sorting and non-en_US indexes
David Cramer wrote:
> First, I have a question for those who understand the inner workings of
> gentext. In autoidx.xsl, to every template that has an xsl:sort, I've
> added:
>
> <xsl:variable name="sort.lang">
> <xsl:call-template name="l10n.language"/>
> </xsl:variable>
>
> ...and added this to the xsl:sorts:
>
> <xsl:sort lang="{$sort.lang}"...
>
> In my test doc, which has <book lang="ja">, this seems to work. Is this
> the 'right' way to do it?
Yes, this is a correct way to get language for current element. The
problem is, that in lang attribute of xsl:sort you can't use expressions
(AVTs) if you want to be strictly comform to the XSLT 1.0 spec. Some
processors support this, but it can't be added to standard distribution
for this reason. :-(
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz