[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

AW: [xsl] Sorting Upper-Case first. Microsoft bug?


Subject: AW: [xsl] Sorting Upper-Case first. Microsoft bug?
From: Markus Abt <abt@xxxxxxxx>
Date: Tue, 5 Aug 2003 21:12:58 +0200

David,

the XSLT spec. states in chapter 10 "Sorting":

[...]
data-type specifies the data type of the strings; the following values are allowed:
*  text specifies that the sort keys should be sorted lexicographically in the
   culturally correct manner for the language specified by lang
[...]

It seems to me that the XSLT specification wants lexicographic ordering in the
culturally correct manner.
Mabye this is a contradiction, in this case I would regard this an error in the XSLT spec.

I guess, the reference to the UTR 10 in one of the following notes in the spec.
shall relate to the whole chapter 10, however, the bad HTML formatting may
make one think that it only relates to case-order.


Regards,
Markus

__________________________
Markus Abt
Comet Computer GmbH
http://www.comet.de


----------
Von: 	David Carlisle
Gesendet: 	Dienstag, 5. August 2003 19:45
An: 	xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: 	Re: [xsl] Sorting Upper-Case first. Microsoft bug?


I wrote
  Of course XSLT 1.0 doesn't actualy define "lexicographic" but my
  understanding is that it always implies a direct extension on an
  ordering on characters to an ordering on strings by comparing the first
  different position.

See for example the definition given here:
http://mathworld.wolfram.com/LexicographicOrder.html

Note that (despite the etymology) "lexicographic order" doesn't
necessarily mean "the order used in a dictionary" as dictionaries are
compiled by human compilers and words can appear in whatever order the
compiler chooses which may reflect personal and culturalpreferences as
much as logic. However lexicographic ordering is used in a technical
sense as a method of extending the ordering on one set (the alphabet)
to a derived set (strings over that alphabet).

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords