This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
This test and others use XQuery 1.0 or XPath 3.0 syntax. <environment> <param name="x" select="let $var := 1 + 1 return $var" declared="true"/> </environment> Surely we should be sticking to XPath 2.0 here, and better still, simple values?
I agree. The spec says "The value to be bound to the variable is given in the select attribute, which should be a simple XPath expression - typically a literal, or a simple call on a constructor function." These were carried forward from XQuery 1.0 tests, and it's hard to see what they were trying to achieve, unless it was the ability to use the output of one query as input to another.
Fixed. I kept the expressions to retain the intent of the test author but they are all now simple XPath 2.0 expressions.