This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In the Note paragraph at the very end of 3.8.3 Order By and Return Clauses, the following two query examples can be found: let $i := 5, $j := 20 * i return $i, $j and let $i := 5, $j := 20 * i return ($i, $j) In both, the assignment expression for variable 'j' makes use of "i" which as it is now is an element test. I believe this is a typo, and that "$i" was meant. If it's intended as a element test(which I doubt), I would rename it to avoid confusion with the variable by the same name. Frans
Hello Frans, Of course, you are right. Thanks for catching this error. I will fix it in the next edition of the XQuery specification. Since this is an editorial correction, I am marking this issue as fixed and closed. Regards, Don Chamberlin