[Bug 3799] [UPD] Minor error in example in 2.4.4

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

           Summary: [UPD] Minor error in example in 2.4.4
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: Update Facility
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: rpbourret@rpbourret.com
         QAContact: public-qt-comments@w3.org


The two updating expressions in the example should be enclosed in parentheses:

let $q := /inventory/item[serialno = "123456"]/quantity
return
  (
   do replace value of $q with ( ),
   do insert attribute xsi:nil {"true"} into $q
  )

Otherwise, the query consists of two expressions joined by a comma operator and
in which the second will fail because $q is not in scope.

Received on Wednesday, 4 October 2006 22:59:26 UTC