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 6383 - [UPD] Parent property in transform copy modify
Summary: [UPD] Parent property in transform copy modify
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Update Facility (show other bugs)
Version: Candidate 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:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-08 08:50 UTC by Peter M. Fischer
Modified: 2011-01-07 07:28 UTC (History)
2 users (show)

See Also:


Attachments

Description Peter M. Fischer 2009-01-08 08:50:17 UTC
The  specification of the transform copy clause does not specify explicitly what the parent property of the "top" copied node will be. My assumption is that it will be empty. If this is the case, I suggest to clarify this in the spec.

Currently, the spec says (in 2.4.5, 1c)

"A new copy is made of $node and all nodes that have $node as an ancestor, collectively referred to as copied nodes. Each copied node receives a new node identity. The parent, children, and attributes properties of the copied nodes are set so as to preserve their inter-node relationships."

I would add a sentence like: "The parent property of the copy of $node is set to empty"
Comment 1 Andrew Eisenberg 2009-01-20 21:40:36 UTC
The XML Query WG, at its meeting today, agreed to make the change that you have suggested.