<?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>5666</bug_id>
          
          <creation_ts>2008-04-28 19:29:40 +0000</creation_ts>
          <short_desc>[UPD] use of fs:item-sequence-to-node-sequence in XQuery Update FS</short_desc>
          <delta_ts>2008-10-07 08:52:10 +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>Candidate Recommendation</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</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 Dyck">jmdyck</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>19970</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-04-28 19:29:40 +0000</bug_when>
    <thetext>In the XQuery Update CR, normalization introduces calls to
fs:item-sequence-to-node-sequence in three places:
     4.4.1 Insert:    the source expr
     4.4.3 Replace:   the replacement when replacing a node
     4.4.5 Transform: the initializer for each variable binding

In 4.4.5 Transform, the uses are left over from an earlier draft, and are no longer correct. To fix, simply take each call to fs:item-sequence-to-node-sequence and replace it with its argument.

In 4.4.1 Insert and 4.4.3 Replace, the calls lead to to unsound static type inference (as in Bug 3771 comment #6) and also don&apos;t convey quite the right dynamic semantics.  The changes to FS proposed in Bug 3771 comment #8 would allow solutions for static &amp; dynamic problems, involving edits to 4.4.1 and 4.4.3. However, a slightly different version of the Bug 3771 changes would cause 4.4.1 and 4.4.3 to become correct without any edits.

[For more details, see members-only http://lists.w3.org/Archives/Member/w3c-xml-query-wg/2008Mar/0127.html .]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22108</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2008-10-07 08:52:00 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; 
&gt; In 4.4.5 Transform, the uses are left over from an earlier draft, and are no
&gt; longer correct. To fix, simply take each call to
&gt; fs:item-sequence-to-node-sequence and replace it with its argument.

At its meeting on 2008-09-16, the XQuery WG approved this fix. I have made the change in the source for the Update Facility document.

&gt; In 4.4.1 Insert and 4.4.3 Replace, the calls lead to to unsound static type
&gt; inference (as in Bug 3771 comment #6) and also don&apos;t convey quite the right
&gt; dynamic semantics.  The changes to FS proposed in Bug 3771 comment #8 would
&gt; allow solutions for static &amp; dynamic problems, involving edits to 4.4.1 and
&gt; 4.4.3. However, a slightly different version of the Bug 3771 changes would
&gt; cause 4.4.1 and 4.4.3 to become correct without any edits.

The &quot;slightly different version&quot; appeared as Bug 3771 Comment #15, which
was approved by the WGs on 2008-06-03. Assuming the new definition of
fs:item-sequence-to-node-sequence eventually becomes normative, the
Insert and Replace sections (now 4.5.1 and 4.5.3) do not need edits.

Therefore, I am marking this bug resolved-fixed. Since I was the original reporter, I will also mark it CLOSED.

</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>