Aug 18, 2007

Xslt variable(node set)

 

<xsl:variable name ="persons" select="/all/persons/p" />

<xsl:variable name ="persons1">

    <xsl:copy-of select="/all/persons/p"/>

xsl:variable>

 

The difference between them is that persons has parent, but persons1 has not parent because it is a deep copy.