[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Is normalization is optional?

Subject: RE: Is normalization is optional?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 17 Nov 2008 13:41:09 -0000
RE:  Is normalization is optional?
The default collation used for the eq operator is implementation-defined in
XQuery, but in XSLT it is prescribed to be Unicode codepoint collation. At
any rate, I thought it was - rereading, I'm not sure I can find that
explicitly stated. But if I'm right, then an XSLT processor is not licensed
to perform Unicode normalization before comparing two strings unless a
different default collation has been chosen. In Saxon you can select a
normalizing collation using

<xsl:stylesheet ...

If you do this, the comparison you cite returns true.

Michael Kay

> -----Original Message-----
> From: Vyacheslav Sedov [mailto:vyacheslav.sedov@xxxxxxxxx] 
> Sent: 17 November 2008 12:49
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Is normalization is optional?
> Hello,
> I note that Marklogic perform XML normalization (see
> http://unicode.org/faq/normalization.html) so i expect that 
> it is common practice.
> Just note that XQuery '&#x3008;&#x3009;' eq 
> '&#x2329;&#x232A;' is false for Saxon but true for Marklogic.
> With best wishes,
> Slav

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.