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

[XQuery] 3.1.6 XQuery Comments: placement

From: Michael Dyck <jmdyck@ibiblio.org>
Date: Mon, 16 Feb 2004 00:53:57 -0800
To: public-qt-comments@w3.org
Message-id: <40308525.EF1696F3@ibiblio.org>

XQuery 1.0: An XML Query Language
W3C Working Draft 12 November 2003

3.1.6 XQuery Comments

"Comments may be used anywhere ignorable whitespace is allowed. See
A.2 Lexical structure for the exact lexical states where comments are
recognized."

In the following queries, a comment is placed where ignorable
whitespace would appear to be allowed, but where the A.2.2 machine
has no transition on "(:".  So which is correct? Does the comment
cause a syntax error or not?

    node( (:test:) )

    processing-instruction( xml-stylesheet (:test:) )

    element( person (:test:) )

    element( hospital / (:test:) staff / person )

    <shoe (:test:) size="7"/>

    <fact>I saw 8 cats.</fact (:test:) >

    9 cast (:test:) as hatsize

-Michael Dyck
Received on Monday, 16 February 2004 03:59:48 UTC

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