Transforming a XSLT: copying contents

Cre4tiVe

New Member
I have the following input for a XSL file: \[code\]<node> <xsl:value-of select="ROOT/LEVEL1/LEVEL2" /></node>\[/code\]My expected output is: \[code\]<node2> <xsl:value-of select="ROOT/LEVEL1/LEVEL2" /></node2>\[/code\]How to get this? The best I could do: \[code\]<xsl:template match="node" > <node2> <xsl:copy-of select="." /> </node2></xsl:template>\[/code\]Which produces: \[code\]<node2><node> <xsl:value-of select="ROOT/LEVEL1/LEVEL2"/></node></node2>\[/code\]
 
Back
Top