Re: Embeding 'funny' char in CDATA !!Even Better !!

webmasterbeta

New Member
"Rohit Wason" <[email protected]> wrote:>>Jon,>I posted this query here a month ago, not finding any solution, I foundthis>one myself.>find it here...>>http://news.devx.com/cgi-bin/dnewsweb.exe?cmd=article&group=xml.general&item=416&utag=>>RohitRohit:I found an even better solution: when you select cdata in your stylesheetuse thedisable-output-escaping attribute! I found it on the w3c site here:http://www.w3.org/TR/xslt#disable-output-escaping<xsl:template match="/"><xsl:value-of select="content" disable-output-escaping="yes"></xsl:value-of></xsl:template>Jonathan
 
Back
Top