xsl-list
[Top] [All Lists]

RE: xsl:sort with lang attribute

2003-01-08 11:38:25
How well do the current crop of XSLT processors 
(I'm thinking of Saxon6, Saxon7, Xalan, and xsltproc)
support the lang attribute in xsl:sort?

Saxon 6.x uses the lang attribute to attempt to load a user-defined
sorting module, as described in [1]. There is no built-in support for
multiple languages, just hooks that allow you to do it yourself.

[1]
http://saxon.sourceforge.net/saxon6.5.2/extensibility.html#Implementing-
a-collating-sequence

Saxon 7.x allows you to use named collations as defined in the XPath 2.0
spec. The spec leaves the mechanism for creating collations
implementation-defined. Saxon provides a top-level saxon:collation
element that maps a collation name to the Java-defined collators and
locales; by default it uses the lang attribute on xsl:sort to load the
Java collator for the relevant locale.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


Do they all handle language collation sequences?

Are there limitations on which languages are supported?

Limitations on language and country combinations?

Differences per computing platform?

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs(_at_)sco(_dot_)com

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




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



<Prev in Thread] Current Thread [Next in Thread>