Re: [xml] FW: [xsl] Problem with xsl:sort and German Umlauts with libxslt



On Thu, Apr 11, 2002 at 05:24:38PM +0000, Bjorn Reese wrote:
Daniel Veillard wrote:
That said if someone can explain how the sorting algorithm should
really work with and without lang-attribute, then I may update the
XSLT implementation to follow it.

You just need to re-implement the locales ;)

Each language has its own sorting order defined by their respective
locale. This includes a definition of equivalence classes (characters
which are rated the same during a sort), and collation characters
(multiple characters which are to be handled as one, e.g. the German
double-s). You can find further information at

  http://www.opengroup.org/onlinepubs/7908799/xbd/locale.html
  http://www.unicode.org/unicode/reports/tr10/

I think that the size of these documents speak for themselves, so I
shall refrain from further comments about the sanity of doing such
an implementation.


  Just what I was afraid of, still most of tr10 seems about charqacter
normalization, whether this should be done on XML input is still
a work item in the W3C XML Core WG, so this may be required anyway in some
future, but I really dislike the idea of coding it.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]