W3C home > Mailing lists > Public > public-qt-comments@w3.org > October 2002

ExprSequence should be optional in EnclosedExpr

From: Per Bothner <per@bothner.com>
Date: Tue, 22 Oct 2002 16:25:14 -0400 (EDT)
Message-ID: <3DB5B3DF.6070605@bothner.com>
To: public-qt-comments@w3.org




May I suggest/request changing the XQuery grammar from:
[81]    EnclosedExpr    ::=    "{" ExprSequence "}"
to:
[81]    EnclosedExpr    ::=    "{" ExprSequence? "}"

I.e. making the ExprSequence be optional.  This may seem
pointless, but it makes it easier to nest XQuery comments
inside ElementContent (and function definitions).  E.g.:

<table>
{ {-- We use a table here, just because. --} }
<tr> ...</tr>
</table>

as opposed to having to put extra parentheses:
{({-- We use a table here, just because. --})}
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/
Received on Wednesday, 23 October 2002 04:59:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:56:43 UTC