<?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>13027</bug_id>
          
          <creation_ts>2011-06-23 12:53:30 +0000</creation_ts>
          <short_desc>[XQUF] copying behaviour</short_desc>
          <delta_ts>2014-10-14 09:37:01 +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>Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xquery-update-10/#id-transform</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="Tim Mills">tim</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>john.snelson</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>50155</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2011-06-23 12:53:30 +0000</bug_when>
    <thetext>In section 2.4.5 Transform, the specification states that

v. All other properties of the copied nodes are preserved.

The copied node may be a document node.  This means that the document-uri property will be copied.

However, in section 2.1.2 Dynamic Context of XQuery 1.0 it is stated that

&quot;This means that given a document node $N, the result of fn:doc(fn:document-uri($N)) is $N will always be True, unless fn:document-uri($N) is an empty sequence.&quot;

The query

  copy $N := doc(&apos;data.xml&apos;)
   modify ()
   return fn:doc(document-uri($N)) is $N

demonstrates that this is violated.

I would expect that the document-uri property should not be copied, and that document-uri($N) should be the empty sequence.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81403</commentid>
    <comment_count>1</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2013-01-15 16:54:36 +0000</bug_when>
    <thetext>The XQuery WG discussed this on 2013/01/15 and agreed that the suggested change should be made in the XQuery Update 3.0 working draft.

Implementations of XQuery Update 1.0 can consider making the same change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113081</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2014-10-14 09:34:58 +0000</bug_when>
    <thetext>I&apos;m reopening, as I&apos;m unable to find the agreed change in the XQuery Update 3.0 editor&apos;s draft.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113083</commentid>
    <comment_count>3</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2014-10-14 09:36:48 +0000</bug_when>
    <thetext>I&apos;m closing this bug again, as the decision is recorded in changes.txt and will be made in the course of time.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>