xsl-list
[Top] [All Lists]

Re: [xsl] Collation in another language

2011-11-05 11:53:47
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(_at_)lists(_dot_)mulberrytech(_dot_)com
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 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>
--~--




--~------------------------------------------------------------------
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>
--~--