W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2007

Re: [XSLTerrata] Undocumented xsl:sort/@lang incompatibility?

From: Liam Quin <liam@w3.org>
Date: Sun, 27 May 2007 18:23:42 -0400
To: Tony Graham <Tony.Graham@MenteithConsulting.com>
Cc: public-qt-comments@w3.org
Message-ID: <20070527222342.GF20929@w3.org>

On Sun, May 27, 2007 at 08:59:05PM +0100, Tony Graham wrote:
> Section 10, "Sorting", of XSLT 1.0 [1] includes:
>    if no lang value is specified, the language should be determined
>    from the system environment
> Section 13.1.3 "Sorting Using Collations", of XSLT 2.0 [2] includes:
>    If none of the collation, lang or case-order attributes is present,
>    the collation is chosen in an implementation-defined way.
> This difference in expectation in the absence of the 'lang' attribute

I see one main difference between
    determined from the system environment
    chosen in an implementation-defined way
which is that the second wording requires the implementation to
document how it chooses the collation in this case.

The older wording is also much looser -- SHOULD be determined --
so that an implementation could have had a hard-wired default if
it so chose, and now, if it has a hard-wired default, it still can,
but must say so.

> (which recently caused unexpected results for me)
How did it cause unexpected results?


Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
Received on Sunday, 27 May 2007 22:23:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:18 UTC