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

Re: sort and collating sequence

Subject: Re: sort and collating sequence
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Mon, 25 Feb 2002 22:30:00 -0600
java collating sequence
Jeff Kenton wrote:
> 
> xsl:sort gives "dictionary order", so what you see is according to
> specification.  As programmers we are used to sorting by ASCII code, but
> this is intentionally different.

In the Java domain (e.g., Saxon, Xalon) you can use Java's built-in
Collator objects to customize sorting in any way you need. For example,
the ICU4J package from IBM provides a number of custom locale-specific
collators for that are not included in Java (at least not in Java 1.3,
they may be in 1.4, I don't know). The syntax for customizing Java
collators is pretty straight forward and it's pretty easy to get the
collation rules from a built-in collator and tweak it. I've had to do
this in order to support back-of-the-book indexing for some challenging
languages, such as Traditional and Simplified Chinese (although the
ICU4J package made my job much easier). 

Cheers,

Eliot
-- 
W. Eliot Kimber, eliot@xxxxxxxxxx
Consultant, ISOGEN International

1016 La Posada Dr., Suite 240
Austin, TX  78752 Phone: 512.656.4139

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.