[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] National Language Collating Sequences and Index Generation


Subject: RE: [xsl] National Language Collating Sequences and Index Generation
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 8 Feb 2002 11:39:08 -0000

> In XSLT 1.0, xsl:sort sorts strings lexically by Unicode code point
> number, IIRC.

Not necessarily: it's rather implementation-dependent. The spec encourages
implementors to support the Unicode Collation Algorithms, parameterized by
the lang attribute of xsl:sort.

But Saxon uses Unicode code-points unless you plug in your own collating
module for the selected language (which you can do).
>
> In XSLT/XPath 2.0, you can have named collating sequences, but you
> shouldn't expect the ones you need are provided by the runtime
> system

Saxon 7.0 allows you to select any collation supported by your particular
Java runtime, or to use the Java facilities to define your own.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords