Mega Code Archive

 
Categories / XML Tutorial / XSLT StyleSheet
 

Set cdata-section-elements

File: Data.xml <name>   <last>A</last>   <first>W</first> </name> File: Transform.xslt <xsl:stylesheet version="1.0"   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">   <xsl:output method="xml" indent="yes" />   <xsl:output cdata-section-elements="notes" />   <xsl:template match="name">     <name>       <family>         <xsl:apply-templates select="last" />       </family>       <given>         <xsl:apply-templates select="first" />       </given>       <notes>&amp; </notes>     </name>   </xsl:template> </xsl:stylesheet>