[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] German umlaut sort

Subject: RE: [xsl] German umlaut sort
From: "Jean-Pierre Lamon" <jpl@xxxxxxxxxx>
Date: Sun, 9 Jun 2013 11:59:58 +0200

Thanks Geert, we will test this next week and I'll publish the result.

-----Message d'origine-----
De : Geert Bormans [mailto:geert@xxxxxxxxxxxxxxxxxxx]
Envoyi : dimanche 9 juin 2013 11:13
@ : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Objet : RE: [xsl] German umlaut sort

I must admit I have not read the entire thread...

from what I remember from a recent project in
which I needed a non standard Chinese sorting,
msxml supports most of the locales through the OS.
You can simply bind to a locale using the lang attribute
<xsl:sort lang="de-CH"/>
will likely do the trick
not sure if this standard or not, and if it would work for you, but
  <xsl:sort lang="zh-CN"/>
worked amazingly well for me on msxml

At 11:52 8/06/2013, you wrote:
>Thank you Michael,
>I've tried all the options you proposed. No way with MXSML :-( I've read
>somewhere MSXML was using the internal language config of a computer for
>that purpose. I have a swiss French PC, so I will ask my customer to try on
>a swiss german one. Maybe the solution?
>-----Message d'origine-----
>De : Michael M|ller-Hillebrand [mailto:mmh@xxxxxxxxx]
>Envoyi : jeudi 6 juin 2013 16:23
>@ : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Objet : Re: [xsl] German umlaut sort
>Am 06.06.2013 um 13:27 schrieb Jean-Pierre Lamon <jpl@xxxxxxxxxx>:
> > Thank you for your response (and to the others too :-)
> > But sorry, I don't understand : what do you mean by tool or software?
> > In my soft, I'm only launching a FOP cmd under Windows.
> > And to retrieve my list, a XSLT stylesheet with:
> >
> > <xsl:for-each select="//*[@tag=$tag]|//*[@tag=$tag2]|//*[@tag=$tag3]">
> >       <xsl:sort select="."/>
> >
> > And for the different ordering rules, your right : in my case, I must
>the german swiss ordering sort, which is not the same as the german one.
>Quite simple :-) I don't know how to manage this issue with XSL. Maybe any
>idea for a workaround?
>As far as I know FOP is not doing the XSL transformation itself, so you use
>a certain XSLT processor to do this. E.g. Saxon relies on the collations
>(sorting rules) available in Java resp. .NET when sorting. And based on
>it is possible to take advantage of advanced sorting features.
>In http://saxonica.com/documentation/html/extensibility/collation.html I
>find the description how Saxon handles a collation attribute like in
><xsl:sort select="." collation="http://saxon.sf.net/collation?lang=de-CH"
>This assumes, that de-CH is a known locale for the environment Saxon uses
>the moment.
>Other tools may have other options (or not). So if you share which tool you
>use for XSLT processing (and if you use XSLT > v.1 or not), we may be able
>to help you.
>- Michael
>Michael M|ller-Hillebrand

Current Thread