Altova Mailing List Archives
>xsl-list Archive Home
>Recent entries
>Thread Prev - RE: [xsl] xsl:sort with msxml english language, danish characters, weird results
[Thread Next]
Re: [xsl] xsl:sort with msxml english language, danish characters, weird results
To:
Date: 10/25/2004 8:38:00 AM
Michael Kay wrote: I'm not sure I'm following here--at least using Java RuleBasedCollator you should be able to achieve any collation sequence whatsoever. But I'm not sure what you mean by sorting 646 before 10646. A possible algorithm is that any sequence of digits counts as a single collation unit, which is collated before the first collation unit derived from non-digit characters, and has a collation value equal to its decimal value. I don't believe you can achieve this with a RuleBasedCollator. Ah, I understand now--I misunderstood your comment as being about the standards, not the strings "646" and "10646". I think you are correct, although I'll have to test it. Of course, this type of rule can be implemented using a custom Comparator implementation that implements whatever rule you want, delegating the character-level comparison to a rule-based collator. I don't think there's any way that a purely declarative mechanism, which is what I understand the UCA to define (and what RuleBasedCollator implements) to handle all cases. Cheers, E. -- W. Eliot Kimber Professional Services Innodata Isogen 9390 Research Blvd, #410 Austin, TX 78759 (512) 372-8122 eliot@xxxxxxxxxxxxxxxxxxx www.innodata-isogen.com
Disclaimer
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

