|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] why must one have something inside {} ?Michael Dyck jmdyck at ibiblio.orgSat Dec 3 11:28:17 PST 2011
David Lee wrote:
>
> I am asking why in *XQuery* the expression {} is not equivalent to {()}
It might simply be that no-one suggested it.
> Is there a case in *XQuery* where this would be problematic ?
I don't think so.
Probably the least-impact way for the spec to accomplish this would be
to alter the syntax of EnclosedExpr, from
EnclosedExpr ::= "{" Expr "}"
to
EnclosedExpr ::= "{" Expr? "}"
and then say that, if the Expr is omitted, the EnclosedExpr yields the
empty sequence. Note that, in addition to element and attribute content,
this would also take effect when an EnclosedExpr is used as a function
body, which may or may not be something you'd like as well.
-Michael
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








