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

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, *

Received on Sunday, 27 May 2007 22:23:46 UTC