Name

<xsl:copy>

Synopsis

<xsl:copy
   [use-attribute-sets=”list“]>
   ...
</xsl:copy>

This element copies the current node from the source document into the output document. This copies the node itself, as well as any namespace nodes the node possesses. However, it does not copy the node’s content or attributes.

The use-attribute-sets attribute contains a whitespace- separated list with names of xsl:attribute-set elements. These attribute sets are merged, and all attributes in the merged set are added to the copied element. The use-attribute-sets attribute can only be used when the node copied is an element node.

Get XML Pocket Reference, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.