DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13830>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13830 sort data-type="text" not sorting text with "-" correctly ------- Additional Comments From [EMAIL PROTECTED] 2002-10-22 15:55 ------- This probably isn't a bug. Interpretive Xalan (and probably XSLTC too) is using the locale-specific Collator, which won't necessarily sort by code-point. If you try the following example, you'll see that "ab-a" < "abc" < "ab-e". With the String.compareTo(String) method, "abc" would be greater than each of "ab- a", "ab-c" and "ab-e", which was what you were expecting. import java.text.Collator; import java.util.Locale; public class coll { public static final void main(String args[]) { Collator col = Collator.getInstance(new Locale("en", "US")); System.out.println(col.compare("abc","ab-a")); System.out.println(col.compare("abc","ab-c")); System.out.println(col.compare("abc","ab-e")); } } Section 10 of XSLT 1.0 has a reference to the Unicode Collation Algorihtm <http://www.unicode.org/unicode/reports/tr10/index.html>, which should help, but I'm having trouble getting to the web-site right now.
