XML & XSL - xsl:copy

Copies the current node from the source to the output. This tag creates a node in the output with the same name, namespace, and type as the current node. Attributes and children are not copied automatically.





Parent Elements

Child Elements


The following example performs an identity transformation on the entire document. Each node in the source is copied to the output.

A Population Example Using xls:copy

XML Data Tree Structure

Click here to see the XML structure of this example.

XML & XSL in Action

Click here to see the XSL formatted display of this example.

The XSL Style Sheet

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
			<xsl:apply-templates select="@*"/>