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

RE: Is this a sorting bug in xalan 6.4.0?

Subject: RE: Is this a sorting bug in xalan 6.4.0?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 7 Feb 2003 13:41:19 -0000
RE:  Is this a sorting bug in xalan 6.4.0?
> I am sure there are lots of people here who can trump my 
> experience handily, but is my expectation that spaces will be 
> significant in string sorting, at least by default, really 
> *that* parochial?

We all have parochial assumptions about how strings should be sorted,
and they are all different. So the trend is for modern software systems
to provide localisation support.

Most of the programming languages you referred to probably use
"codepoint" collation, where strings are sorted according to their
numeric character codes. It looks as if Xalan is trying to do a more
intelligent sort. Looking in my dictionary, I find that "ad hoc" appears
between "adhibit" and "adiabatic": so you can't simply say that it's
wrong to ignore spaces, it's clearly what some users want.

XSLT 2.0 (and Saxon 7.3) give you extensive control over the collation,
recognizing that there is no one answer that suits everybody.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 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.