I've been re-reading the W3C Recommendation and although I still think
the definition for the case-order sorting given in it is misleading to say
the least, I have to recognise that if you keep reading the EXAMPLE given
in it clearly states that given A,B,a and b the sorting (Upper-case first)
would be A,a,B,b
And that's probably why all the implementators followed this rule.
According to the W3C Recommendation:
-
----------------------->8---------------------->8--------------------------
case-order has the value upper-first or lower-first; this applies when
data-type="text", and specifies that upper-case letters should sort before
lower-case letters or vice-versa respectively.
For EXAMPLE, if lang="en",then A a B b are sorted with
case-order="upper-first"
and a A b B are sorted with case-order="lower-first". The default value is
language dependent.
-
----------------------->8---------------------->8--------------------------
This is not what one would expect when sorting by case (I'm with David
Carlisle
on this one) but it seems to me sorting by case (REAL case sorting) wasn't
a requirement when they created the recommendation. :-(
Thanks to everyone for your replies. I have now a better understanding
of how the sorting is supposed to work.
Regards,
Yago
_____________________________________________________________________
This e-mail has been scanned for viruses by MessageLabs.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list