<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>3799</bug_id>
          
          <creation_ts>2006-10-04 22:59:25 +0000</creation_ts>
          <short_desc>[UPD] Minor error in example in 2.4.4</short_desc>
          <delta_ts>2007-05-08 21:05:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>Update Facility</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ronald Bourret">rpbourret</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>12289</commentid>
    <comment_count>0</comment_count>
    <who name="Ronald Bourret">rpbourret</who>
    <bug_when>2006-10-04 22:59:25 +0000</bug_when>
    <thetext>The two updating expressions in the example should be enclosed in parentheses:

let $q := /inventory/item[serialno = &quot;123456&quot;]/quantity
return
  (
   do replace value of $q with ( ),
   do insert attribute xsi:nil {&quot;true&quot;} 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15053</commentid>
    <comment_count>1</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2007-05-08 21:05:09 +0000</bug_when>
    <thetext>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 &quot;trivial&quot;, I am marking this bug report as Fixed and Closed.
Regards,
Don Chamberlin (for the Query Working Group) </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>