Re: [xsl] Collation in another language

Subject: Re: [xsl] Collation in another language
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Sat, 05 Nov 2011 16:39:27 +0000
On 05/11/2011 07:18, Mark wrote:
I am not sure if this question belongs here or not, but hope for an answer. I need a collator that puts ch between H and I.


I do not know java, but cobbled together a Czech language collator from notes I found on the web (if there is c java Czech collator already available, I dont know how to find it).

My experiments suggest that in Saxon, specifying lang='cs' on the xsl:sort element has the desired effect. If you need to specify the collation dynamically, or if you are using XQuery, the collation name 'http://saxon.sf.net/collation?lang=cs' has the same effect.


Of course, the languages and collations that are supported will vary from one XSLT processor to another (and different processors may produce different output for the same selected language).

Michael Kay
Saxonica

Current Thread