[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
On 07/01/2013 10:25, Costello, Roger L. wrote:
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.
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,No, it depends on the default collation in the static context.
The character 'A' sorts before the character 'C' so this XPath expression returns true:
'A' lt 'C'
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.
That blog posting is about sorting behavior on OS X, not about sorting behavior in XPath.
According to [1] the sorting behavior changes depending on what character follows.
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Sorting behavior of Latin acc, Costello, Roger L. | Thread | [xsl] Use the xml:lang attribute to, Costello, Roger L. |
[xsl] Sorting behavior of Latin acc, Costello, Roger L. | Date | [xsl] Use the xml:lang attribute to, Costello, Roger L. |
Month |