<?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>4529</bug_id>
          
          <creation_ts>2007-05-04 23:26:20 +0000</creation_ts>
          <short_desc>[UPD] Sections 2.4.1 insert clarify that as first and as last only apply to into</short_desc>
          <delta_ts>2008-05-15 19:41:08 +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>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Rys">mrys</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>15005</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2007-05-04 23:26:20 +0000</bug_when>
    <thetext>&quot;If as first (or as last)&quot;: should make clear it is only for into.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15139</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2007-05-22 17:24:06 +0000</bug_when>
    <thetext>The spec says &quot;If as first (or as last) is specified, &quot;. Replace with &quot;If as first (or as last) is specified for into, &quot;

Also reword:

5. The result of the insert expression is an empty XDM instance and a pending update list constructed as follows:

a. If as first &lt;new&gt;into&lt;/new&gt; is specified, the pending update list consists of the following update primitives:

If $alist is not empty, upd:insertAttributes($target, $alist)

If $clist is not empty, upd:insertIntoAsFirst($target, $clist)

b. If as last &lt;new&gt;into&lt;/new&gt; is specified, the pending update list consists of the following update primitives:

If $alist is not empty, upd:insertAttributes($target, $alist)

If $clist is not empty, upd:insertIntoAsLast($target, $clist)

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15366</commentid>
    <comment_count>2</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2007-06-11 23:31:39 +0000</bug_when>
    <thetext>Michael,
On June 5, 2007, the Query Working Group agreed to make the changes proposed in this bug report. Therefore I am marking it as &quot;Fixed&quot;. Please change its status to &quot;Closed&quot;.
Regards,
Don Chamberlin (for the Query Working Group)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>