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 3799 - [UPD] Minor error in example in 2.4.4
Summary: [UPD] Minor error in example in 2.4.4
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Update Facility (show other bugs)
Version: Working drafts
Hardware: PC Windows XP
: P5 trivial
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-04 22:59 UTC by Ronald Bourret
Modified: 2007-05-08 21:05 UTC (History)
0 users

See Also:


Attachments

Description Ronald Bourret 2006-10-04 22:59:25 UTC
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.
Comment 1 Don Chamberlin 2007-05-08 21:05:09 UTC
Ronald,
Thank you for this bug report, which was considered by the Query Working Group on May 8, 2007. The working group agrees with your analysis and will make the suggested correction in the next working draft of the Update Facility. Since your classified the bug as "trivial", I am marking this bug report as Fixed and Closed.
Regards,
Don Chamberlin (for the Query Working Group)