Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XSLT Element

XSLT xsl:copy Element


XSLT Element Reference Manual Complete XSLT Element Reference Manual


Definition and Usage

xsl:copy element creates a copy of the current node.

**Note:** The namespace nodes of the current node are copied automatically, but the child nodes and attributes of the current node are not copied automatically!


Syntax

property

property Value Description
use-attribute-sets name-list Optional. If the node is an element, this attribute is a list of attribute sets to apply to the output node, separated by spaces.

Example 1

Copy the message node to the output document:

xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

xsl:copy

xsl:apply-templates/


XSLT Element Reference Manual Complete XSLT Element Reference Manual