Using <xsl:copy> and <xsl:copy-of>
As you transform your XML input document into something
else, you’ll often want to just copy a given element to the output
document. XSLT provides two elements that do this: <xsl:copy>
and <xsl:copy-of>
. We’ll discuss them here
and go through several stylesheets that use these elements to create
output.
Get XSLT, 2nd 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.