#337 No error when position variable used in IN clause

v8.3
closed
5
2014-11-05
2005-03-23
Michael Kay
No

In XQuery, no error message is reported when the
positional variable of a FOR expression is used within
the IN expression, for example

for $v in $p return EXPR[$p]

Source fix: in net.sf.saxon.query.QueryParser, line
1520, method parseForClause, delete the line

declareRangeVariable(pos);

Michael Kay

Discussion