This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 13027 - [XQUF] copying behaviour
Summary: [XQUF] copying behaviour
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Update Facility (show other bugs)
Version: Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL: http://www.w3.org/TR/xquery-update-10...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-23 12:53 UTC by Tim Mills
Modified: 2014-10-14 09:37 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2011-06-23 12:53:30 UTC
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

"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."

The query

  copy $N := doc('data.xml')
   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.
Comment 1 John Snelson 2013-01-15 16:54:36 UTC
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.
Comment 2 Tim Mills 2014-10-14 09:34:58 UTC
I'm reopening, as I'm unable to find the agreed change in the XQuery Update 3.0 editor's draft.
Comment 3 John Snelson 2014-10-14 09:36:48 UTC
I'm closing this bug again, as the decision is recorded in changes.txt and will be made in the course of time.