<xsl:copy-of>

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

The <xsl:copy-of> element makes a deep copy (including descendant nodes) of whatever the select attribute specifies to the output document.

Syntax

<xsl:copy-of select=EXPRESSION />

Required Attributes

select

Uses an XPath expression that specifies what is to be copied.

Optional Attributes

None.

Type

Instruction, appears within a template.

Defined

XSLT, section 11.3.

Gecko support

Supported.

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/copy-of