xsl-list
[Top] [All Lists]

Re: [xsl] Collation in another language

2011-11-05 11:39:37
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 don’t 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--