<xslTutorial creator="nicmila@idoox.com">
<index keywords='xsl:copy xsl:copy-of xsl:value-of'/>
<description>Copy and copy-of constructs are used for nodes copying. Copy element copies only the current node without children and attributes, while copy-of copies everything. </description>
<xmlSource id="id1">
<p id="a12">
Compare <B>these constructs</B>.
</p>
</xmlSource>
<attValues>
<value match="">
</value>
</attValues>
<xslStylesheet id="id2">
<xsl:template match="p">
<DIV><B><xsl:text>copy-of : </xsl:text></B>
<xsl:copy-of select="."/>
</DIV>
<DIV><B><xsl:text>copy : </xsl:text></B>
<xsl:copy/>
</DIV>
<DIV><B><xsl:text>value-of : </xsl:text></B>
<xsl:value-of select="."/>
</DIV>
</xsl:template>
</xslStylesheet>
</xslTutorial>