Subject: Re: [xsl] Use the xml:lang attribute to set the collation? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Mon, 07 Jan 2013 15:44:01 +0000 |
Michael Kay Saxonica
Hi Folks,
Michael Kay wrote this response to a StackOverflow question [1]:
Saxon's default collation is Unicode codepoint, which is fast but not smart. Setting lang="en" will immediately give you a smarter natural-language collation. There are then many options to refine it further.
QUESTIONS 1. Does Michael's response mean that, to set the collation, I can use the xml:lang attribute instead of the default-collation attribute?
2. Would you please give an example of a comparison where the result of the comparison is true when xml:lang="A" but false when xml:lang="B"? That is, what values would you place in here:
<Test xml:lang="__"> <xsl:value-of select=" '__' lt '__' " /> </Test>
/Roger
[1] http://stackoverflow.com/questions/13052896/xslt-sort-edge-case-for-ascending-sort-by-element-name
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Use the xml:lang attribut, David Carlisle | Thread | [xsl] Re: Pearls of XSLT and XPath , Costello, Roger L. |
Re: [xsl] Use the xml:lang attribut, David Carlisle | Date | [xsl] Re: Pearls of XSLT and XPath , Costello, Roger L. |
Month |