This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The test ForExpr024 expects XPTY0004, can you explain? Our implementation raises, due to the path expression on $file, XPTY0019: It is a type error if the result of an step (other than the last step) in a path expression contains an atomic value.
This test case nay show an omission in the spec. 3.9.1, For and Let Clauses, says "The for and let clauses of a given FLWOR expression may bind the same variable name more than once. In this case, each new binding occludes the previous one, which becomes inaccessible in the remainder of the FLWOR expression." This allows me to say "for $x in ..., $x in ... return ...". I'm not sure that this allows "for $x at $x in ... return ...".
I agree - XPTY0019 is more appropriate in this case
As part of bug 2692, this query should now expect error XQST0089
Alberto: That is correct. I updated the catalog file and will mark this as fixed. Thanks, Carmelo