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
CC:
To: public-qt-comments@w3.org
Message-Id: <E1FhrrH-0000qA-70@wiggum.w3.org>

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

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