Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

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.

Document Tags and Contributors

 Contributors to this page: Sheppy, Fredchat, Mgjbot, Ptak82, Nickolay, CitizenK, Dria
 Last updated by: Sheppy,