RE: [XQuery] A.1.1 Grammar Notes: parens

I can't see why the note is there at all. Distinguishing "(" from "(:"
is no different from distinguishing "<" from "<<" or child:x from
child::x.

Michael Kay

> 
> 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 Monday, 16 February 2004 05:22:06 UTC