<xsl:copy-of select=”node()“ /> – will copy all nodes even insignificant text nodes, comment nodes, processing instruction nodes etc
<xsl:copy-of select=”*“ /> – will copy only element nodes
Initial doc:
<p>this is a test</p> <p>more words</p> <pre>
Results with node()
<p>this is a test</p> <p>more words</p>
Result with *
<p>this is a test</p><p>more words</p>


Leave a reply to itharm Cancel reply