- From: Don Chamberlin <chamberl@almaden.ibm.com>
- Date: Mon, 20 Sep 2004 11:44:19 -0700
- To: David Carlisle <davidc@nag.co.uk>
- Cc: public-qt-comments@w3.org
- Message-ID: <OFDA39B18D.35665143-ON88256F15.0065E534-88256F15.0066E031@us.ibm.com>
David,
Responding to your XQuery comment of 19 Jan 2004 (attached):
In direct comment constructors, two adjacent hyphens in the content will
be syntactically prohibited.
In computed comment constructors, two adjacent hyphens in the content will
be defined to be a dynamic error (XQ0072).
These changes will be reflected in the next version of the XQuery
document.
Thanks for your suggestion!
--Don Chamberlin
------------------------------(referenced
note)-------------------------------
From: David Carlisle <davidc@nag.co.uk>
Date: Mon, 19 Jan 2004 14:04:00 GMT
To: public-qt-comments@w3.org
Neither form of comment constructor gives any indication of what is to
happen if (after atomization/casting) the string contains the sequence
"--"
or ends in "-" neither of which are allowed in an XML comment.
3.7.2 Other Direct Constructors
3.7.3.6 Computed Comment Constructors
<!-- abc -- xyz -->
comment { "-123-"}
Both appear to be legal Xquery, but neither can directly result in an
XML comment and the first can not result in an XPath/Xquery data model
comment node:
http://www.w3.org/TR/xpath-datamodel/#CommentNode
somewhat strangely only bans "--" but allows a trailing "-".
By contrast, the xslt2 draft says,
http://www.w3.org/TR/xslt20/#creating-comments
[ERR XT0950] It is a recoverable dynamic error if the result of
evaluating the content of the xsl:comment contains the string -- or ends
with -. The optional recovery action is to insert a space after any
occurrence of - that is followed by another - or that ends the comment.
David
Received on Monday, 20 September 2004 18:45:06 UTC