[Bug 3299] Editorial, 3.8.3: variable reference in code example is missing '$'

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3299

           Summary: Editorial, 3.8.3: variable reference in code example is
                    missing '$'
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Keywords: editorial
          Severity: minor
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: frans.englich@telia.com
         QAContact: public-qt-comments@w3.org


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

Received on Sunday, 21 May 2006 17:37:02 UTC