I am trying to get the following output :
<name><![CDATA[ SomeNameHere ]]></name>
using the following xslt :
<xsl:element name="name">
<xsl:cdata>
<xsl:value-of select="name"/>
</xsl:cdata>
</xsl:element>
But while compiling I get the following exception :
'xsl:cdata' cannot be a child of the 'xsl:element' element.
How can I insert cdata elements inside an xml node then?
Thank you.