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

[XQuery] Normalizing line endings

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Fri, 21 Nov 2003 23:26:43 +0100
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DD2C8@daemsg02.software-ag.de>
To: public-qt-comments@w3.org
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:27:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:15 UTC