This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Sorting and non-en_US indexes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
/ Jirka Kosek <jirka@kosek.cz> was heard to say:
|> ...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. :-(
Uhm, lang looks like an AVT in 1.0 to me...
<xsl:sort
select = string-expression
lang = { nmtoken }
data-type = { "text" | "number" | qname-but-not-ncname }
order = { "ascending" | "descending" }
case-order = { "upper-first" | "lower-first" } />
Be seeing you,
norm
- --
Norman Walsh <ndw@nwalsh.com> | We think in generalities, but we
http://www.oasis-open.org/docbook/ | live in detail--Alfred North
Chair, DocBook Technical Committee | Whitehead
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>
iD8DBQE9k5NcOyltUcwYWjsRArWDAJ9pi467T4eKBtUpjGPXJMQ8hrJ8DQCfRk61
dvkCMQfy7xGrliFfazssd0I=
=FeeO
-----END PGP SIGNATURE-----