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 7110 - [XSLT 2.1] Add select attribute to xsl:copy
Summary: [XSLT 2.1] Add select attribute to xsl:copy
Status: CLOSED DUPLICATE of bug 6848
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-15 16:20 UTC by Michael Kay
Modified: 2014-05-15 14:00 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2009-07-15 16:20:06 UTC
Sample code in the 2.1 draft (the parent-copy() function) illustrates the awkwardness that arises when trying to do a shallow copy of a node that is not the context node. Most XSLT instructions and XPath operators/functions now allow the operand to be selected explicitly rather than working only on the context node. xsl:copy is an exception. It should have a select attribute for consistency with other instructions.
Comment 1 Michael Kay 2009-12-11 23:22:01 UTC

*** This bug has been marked as a duplicate of bug 6848 ***