W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2004

ORA-XQ-126-B: XML comments may not contain "--" (two dashes)

From: Stephen Buxton <Stephen.Buxton@oracle.com>
Date: 16 Feb 04 13:13:45
Message-Id: <200402162113.i1GLDj206266@rgmgw6.us.oracle.com>
To: public-qt-comments@w3.org
Cc:

SECTION 3.7.2: other direct constructors

It says "Each of the above constructors is terminated by the
first occurrence of its ending delimiter."  Okay, fine.
Then: "...the content of an XML comment may not contain 
the string '-->'".  Actually, the restriction in XML 1.0,
section 2.5 "Comments", rule [15], is
that a comment may not contain "--", and this restriction is
reiterated in the XQuery Data Model, section 6.6.1 "overview"
(of comment nodes), item 2.  Thus "<-- -- -->"
is an illegal comment in XML 1.0.  This should be forbidden 
here as well, since the result cannot be well-formed XML.



- Steve B.
Received on Monday, 16 February 2004 16:13:48 UTC

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