OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK-APPS: 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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC