W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2003

RE: [XQuery] Normalizing line endings

From: Michael Rys <mrys@microsoft.com>
Date: Fri, 21 Nov 2003 14:43:15 -0800
Message-ID: <EB0A327048144442AFB15FCE18DC96C701595289@RED-MSG-31.redmond.corp.microsoft.com>
To: "Kay, Michael" <Michael.Kay@softwareag.com>, <public-qt-comments@w3.org>
How do they differ between XML 1.0 and 1.1?

 

Best regards

Michael

 

________________________________

From: public-qt-comments-request@w3.org
[mailto:public-qt-comments-request@w3.org] On Behalf Of Kay, Michael
Sent: Friday, November 21, 2003 2:27 PM
To: public-qt-comments@w3.org
Subject: [XQuery] Normalizing line endings

 

There do not appear to be any rules saying that line endings in XQuery
text are normalized. 

This means that the query: 

<a> 
  gotcha! 
</a> 

will return a different infoset depending on how the text editor used to
prepare the query represents line endings, and it will potentially
produce a different infoset from the one produced by an XML parser when
applied to the same input.

I would recommend that line endings within XQuery input text should be
normalized in the same way as XML line endings. And to avoid having to
change the rules in the future, I would suggest that we use the XML 1.1
rules rather than the XML 1.0 rules.

This rule should not apply to XPath; preprocessing of XPath input is the
job of the host language. 

Michael Kay 
Software AG 
Received on Friday, 21 November 2003 17:43:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:03 GMT