Subject: RE: [xsl] sorting strings question From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 18 Mar 2010 12:32:09 -0000 |
> I have a concrete example: > > When I have following strings ['BSS84/A2', 'BSS84/DG', 'BSS84'], > > default sorting results in: > > BSS84/A2 -> BSS84/DG -> BSS84 > That's a very strange result; all the usual collations sort A before B if A is a leading substring of B. But it's not against the XSLT rules, as far as I can tell. The key point is that collating is product-dependent, so there's not much point asking the question without defining what product you are using. In XSLT 2.0 the only "standard" collation is the Unicode codepoint collation, and that's consistent with the order you are wanting. Also, giving three data points and saying how they should appear isn't enough data to allow the general rules to be inferred. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] sorting strings question, Robby Pelssers | Thread | RE: [xsl] sorting strings question, Robby Pelssers |
Re: [xsl] exslt random:random-seque, Mike Odling-Smee | Date | RE: [xsl] negative double, very sma, Michael Kay |
Month |