Re: [xsl] Collation in another language

Subject: Re: [xsl] Collation in another language
From: "Mark" <mark@xxxxxxxxxxxx>
Date: Sat, 5 Nov 2011 09:53:37 -0700
Oh my goodness, that was so simple. lang="cs" in the sort statement worked immediately and is so much simpler than trying to write my own collator. I have no idea where that collator came from, but it is there.
Thanks!
Mark


-----Original Message----- From: Michael Kay
Sent: Saturday, November 05, 2011 9:39 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Collation in another language


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