Re: [xsl] Sorting behavior of Latin accented characters depends on what characters follow them ... XPath fails to sort correctly

Subject: Re: [xsl] Sorting behavior of Latin accented characters depends on what characters follow them ... XPath fails to sort correctly
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Mon, 07 Jan 2013 11:12:12 +0000
On 07/01/2013 10:25, Costello, Roger L. wrote:
Hi Folks,

The character 'A' sorts before the character 'C' so this XPath expression returns true:

'A' lt 'C'
No, it depends on the default collation in the static context.

For Saxon, the default collation is the Unicode codepoint collation, where ('A' lt 'C') is true. But another product might choose a default collation in which ('A' eq 'C'), or it might choose a default collation based on the locale settings in your user profile in your operating system.

In XSLT 2.0 you can set the default collation for XPath expressions using the default-collation attribute on the xsl:stylesheet element, or in fact on any enclosing XSLT element.

According to [1] the sorting behavior changes depending on what character follows.
That blog posting is about sorting behavior on OS X, not about sorting behavior in XPath.

Michael Kay
Saxonica

Current Thread