#604 XQuery variable declaration, ExprSingle

v8.8
closed
Michael Kay
5
2012-10-08
2006-10-05
Michael Kay
No

An XQuery global variable declaration accepts a general
expression, for example

declare variable $x := 1,2,3;

The grammar says it should only accept an ExprSingle,
that is, an expression containing commas should be in
parentheses.

A source fix (line 1195 on
net.sf.saxon.query.QueryParser) will be placed in
subversion.

Discussion