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 6848 - [XSLT 2.1] xsl:copy select="$x"
Summary: [XSLT 2.1] xsl:copy select="$x"
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 enhancement
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
: 7110 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-27 07:44 UTC by Michael Kay
Modified: 2010-04-28 18:56 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2009-04-27 07:44:39 UTC
The xsl:copy instruction is just about the only construct left in XPath or XSLT that takes the context node as its operand and doesn't allow a different node to be specified. This can require awkward use of xsl:for-each to change the context node, as illustrated in the specimen code for the snapshot() function in the XSLT 2.1 draft. 

This is easily fixed by adding a select attribute to the instruction.
Comment 1 Michael Kay 2009-08-28 22:34:36 UTC
Proposed text to implement this enhancement has been drafted and is included in the current editor's draft.
Comment 2 Michael Kay 2009-12-11 23:22:01 UTC
*** Bug 7110 has been marked as a duplicate of this bug. ***
Comment 3 Sharon Adler 2010-04-28 18:56:48 UTC
Done - to be closed.