[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?
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|