xsl-list
[Top] [All Lists]

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

2013-01-07 04:25:27
Hi Folks,

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

      'A'  lt  'Ã'

According to [1] the sorting behavior changes depending on what character 
follows. Thus, the string 'Ãb' sorts before the string 'Ah' and this XPath 
expression should return true:

      'Ãb'  lt  'Ah'

However, it returns false.

Why?

What XPath expression will return the correct result?

/Roger

[1] http://m10lmac.blogspot.com/2013/01/secrets-of-unicode-sorting.html


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


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