W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2006

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

From: <bugzilla@wiggum.w3.org>
Date: Sun, 21 May 2006 17:36:51 +0000
To: public-qt-comments@w3.org
Message-Id: <E1FhrrH-0000qA-70@wiggum.w3.org>


           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


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

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.

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:12 UTC