Subject: RE: Problem with xsl:sort and German
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Tue, 11 Aug 2009 02:17:32 +0100
|
> The Saxon documentation
> http://www.saxonica.com/documentation/xsl-elements/sort.html
> says:
> "The value of the lang attribute can be an ISO language
> code such as "en" (English) or "de" (German). It determines
> the algorithm used for alphabetic collating. The default is
> based on the Java system locale.
> The only collating sequence supplied with the Saxon product is "en"
> (English), but other values may be supported by writing a
> user-defined comparison class.
That's out of date, I'm afraid. Will fix. You can use any language code so
long as the Java VM (or rather, your java VM) has a Locale for it, and the
collation you get is the one defined in the Java locale.
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
|