<?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>2794</bug_id>
          
          <creation_ts>2006-02-02 14:58:47 +0000</creation_ts>
          <short_desc>[Update] mixing pending update lists with values</short_desc>
          <delta_ts>2018-09-29 12:50:29 +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>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniela Florescu">dflorescu</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          <cc>jim.melton</cc>
    
    <cc>joker88john</cc>
    
    <cc>martin</cc>
          
          <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>8104</commentid>
    <comment_count>0</comment_count>
    <who name="Daniela Florescu">dflorescu</who>
    <bug_when>2006-02-02 14:58:48 +0000</bug_when>
    <thetext>The XQuery Update Working Draft from 1/27/06 allows expressions (e.g.
the expressions created by the &quot;,&quot; operator) to return both a pending update
list and a value (i.e. a normal XDM instance).

The pros and cons and the consequences of such a decision are still under
discussion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11030</commentid>
    <comment_count>1</comment_count>
    <who name="Martin Probst">martin</who>
    <bug_when>2006-08-06 08:59:36 +0000</bug_when>
    <thetext>Is there any way to weigh in on this issue? If I&apos;m not misreading it, the current spec as of 2006-07-11 disallows expressions to return both values and pending update lists (by disallowing expressions that have updating and non-updating children).

I&apos;m not entirely sure about that, as the wording is pretty strange:
1. If any branch contains an updating expression, the conditional expression is an updating expression; otherwise it is a non-updating expression.
...
3.If the conditional expression is an updating expression, then both of its branches must contain either an updating expression, an empty expression ( ), or a call to the fn:error function; otherwise a static error is raised [err:XUST0001]. In this case, the test expression is evaluated and the then or else clause is selected and evaluated as specified in Section 3.10 of [XQuery 1.0]. The result of the conditional expression is the pending update list returned by the selected branch.

This seems like a very complicated way of saying &quot;If one of the branches of a conditional expression is an updating expression, the other has to be one too&quot;.

I think Mary Holsteges comment in bug #2796 is very valid, disallowing this will forbid so many use cases that it renders the whole thing entirely useless.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11268</commentid>
    <comment_count>2</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2006-08-24 22:30:22 +0000</bug_when>
    <thetext>This will not be included in version 1.0 of the XQuery Update Facility.  It may be reconsidered for some future version of the Update Facility. </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>