[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Issue with xsl:sort - does not differ between 'V'

Subject: RE: Issue with xsl:sort - does not differ between 'V' and ''W'?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 1 Feb 2005 10:24:09 -0000
collating sequences xsl
Collations used for sorting vary depending on what XSLT product you are
using, and what "locale" the system thinks you are in (Denmark or Sweden
perhaps?).

American software vendors have some strange ideas about the collating
sequences used in various European countries. As far as I can tell they are
often based on 19th century practice recommended by fussy national
academies, not on the actual practice of modern publishers.

Saxon 8.x allows you to select any collation supported by the Java VM, or it
you are really keen, to define your own.

Michael Kay
http://www.saxonica.com/


> -----Original Message-----
> From: Jon Breten [mailto:valemon@xxxxxxxxx]
> Sent: 01 February 2005 09:40
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Issue with xsl:sort - does not differ between
> 'V' and ''W'?
>
> Hi all,
> I am trying to sort a node-set by an element that contains lastnames -
> but it seems the sort algorithm does not differ between 'V' and 'W'.
>
> The code is simple enough:
> <xsl:sort select="LAST_NAME" data-type="text" lang="no" />
> I have tried both with and without the lang="no" property.
>
> The result is a list like the following:
> "Wabbah"
> "Vebah"
> "Weccer"
> "Vubbih"
>
> So, the point is it seems the algorithm regards 'V' and 'W' as the
> same thing, but correctly sorts on the following characters. Any ideas
> or input on this? I have checked around, and I cant find anything
> implying that this is by design - so I'm left wondering what I'm doing
> wrong here? The output is apparently sorted correct with regard to
> nodes not starting with V/W.
>
> Regards,
> Jon

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.