- From: Michael Dyck <jmdyck@ibiblio.org>
- Date: Fri, 13 Feb 2004 18:18:31 -0800
- To: public-qt-comments@w3.org
XQuery 1.0: An XML Query Language
W3C Working Draft 12 November 2003
Here is a comment from
http://lists.w3.org/Archives/Public/public-qt-comments/2002Jul/0008.html
and
http://lists.w3.org/Archives/Public/public-qt-comments/2002Nov/0090.html
that did not receive a response from the WG.
------
Are these queries legal?
10div 3
10 div3
10div3
According to the current spec, I think they're all legal (and mean the
same as '10 div 3').
Re the space between '10' and 'div':
I can't find anything that would require it (with the possible exception
of A.2.1's hopelessly vague paragraph about separating "words", and only
then if you consider "10" a word).
Re the space between 'div' and '3':
I imagine you would claim that A.2's "longest match" rule implies that
when the lexer sees 'div3', it should prefer the 4-character QName over
the 3-character keyword. But that rule selects "the longest possible
match that is valid in the current lexical state", and a QName is not
valid in the OPERATOR state, according to
http://lists.w3.org/Archives/Public/public-qt-comments/2004Jan/0363.html
-Michael Dyck
Received on Friday, 13 February 2004 21:19:19 UTC