[XQuery] A.1.1 Grammar Notes: parens

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

A.1.1 Grammar Notes
grammar-note: parens

"A look-ahead of one character is required to distinguish function
patterns from a QName followed by a comment."

    Change "comment" to "comment, pragma, or extension".

"For example:
    address (: this may be empty :)
may be mistaken for a call to a function named "address" unless this
lookahead is employed."

    It sounds like this lookahead would have to be incorporated into the
    operation of the A.2.2 machine. If so, that's another way in which
    A.2.2 is under-defined (see
    http://lists.w3.org/Archives/Public/public-qt-comments/2004Feb/0348.html).

-Michael Dyck

Received on Sunday, 15 February 2004 20:41:32 UTC