Re: [XQuery] lexical leftovers 1

I am classifying this as substantive, since several of these questions 
affect the definition of the language.

Jonathan

Michael Dyck wrote:

>XQuery 1.0: An XML Query Language
>W3C Working Draft 12 November 2003
>
>Here are some comments from
>http://lists.w3.org/Archives/Public/www-xml-query-comments/2002Jan/0002.html
>that did not receive a response from the WG.
>
>--------------------
>
>[3] ExprComment
>
>    This seems like a poor name for the symbol, given that it's not a
>    kind of expression. (In fact, CompXmlComment would seem to have more
>    of a claim to the name, since it actually is a kind of expression.)
>    Why not just "Comment"?
>
>    By the way, why did you drop single-line comments (# to line-end)?
>
>    What is the grammatical/lexical effect of a comment? E.g., is
>        foo(: comment :)bar
>    equivalent to
>        foobar
>    or
>        foo bar
>    ?
>    (And is the effect the same for Pragmas and MUExtensions?)
>
>--------
>
>[9] DoubleLiteral
>
>    Change ("e" | "E") to [eE]
>    Change ("+" | "-") to [+-]
>
>[23] HexDigits
>
>    Change
>        ([0-9] | [a-f] | [A-F])
>    to
>        [0-9a-fA-F]
>
>--------
>
>3.7.1 Direct Element Constructors
>
>"a pair of identical curly brace characters within the content of an
>element or attribute are interpreted by XQuery as a single curly brace
>character"
>[And similarly in A.2.2 ELEMENT_CONTENT.]
>    An alternative would be to use character references (e.g., {
>    and }).
>
>-Michael Dyck
>
>  
>

Received on Monday, 16 February 2004 18:30:00 UTC