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 23533 - [XSLT 3.0] Implicit mapping semantics for copy-of() and snapshot()
Summary: [XSLT 3.0] Implicit mapping semantics for copy-of() and snapshot()
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Working drafts
Hardware: PC All
: 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: 2013-10-16 14:33 UTC by Michael Kay
Modified: 2014-05-15 14:00 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2013-10-16 14:33:05 UTC
There are use cases where it would be very convenient to apply copy-of() and/or snapshot() to a sequence rather than just a single node. For example

<xsl:apply-templates select="copy-of(*)"/>

This can be written

<xsl:apply-templates select="*!copy-of(.)"/>

but this seems clumsy.
Comment 1 Michael Kay 2013-11-15 18:32:32 UTC
The proposal was accepted and has been implemented.