This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3299 - Editorial, 3.8.3: variable reference in code example is missing '$'
Summary: Editorial, 3.8.3: variable reference in code example is missing '$'
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 1.0 (show other bugs)
Version: Candidate Recommendation
Hardware: Other Linux
: P2 minor
Target Milestone: ---
Assignee: Don Chamberlin
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords: editorial
Depends on:
Blocks:
 
Reported: 2006-05-21 17:36 UTC by Frans Englich
Modified: 2006-05-30 17:45 UTC (History)
0 users

See Also:


Attachments

Description Frans Englich 2006-05-21 17:36:50 UTC
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
Comment 1 Don Chamberlin 2006-05-30 17:45:04 UTC
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