ExprSequence should be optional in EnclosedExpr

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