2 users online. Create an account or sign in to join them.Users
Wrap formatted HTML output in CDATA
This is an open discussion with 2 replies, filed under Troubleshooting.
Search
If I understand you correctly, I just dealt with the same issue to match a legacy system’s output. This worked for me:
<xsl:template match="flash-about/entry/body">
<body>
<xsl:text disable-output-escaping="yes"><![CDATA[</xsl:text>
<xsl:value-of select="." disable-output-escaping="yes" />
<xsl:text disable-output-escaping="yes">]]></xsl:text>
</body>
</xsl:template>
Thanx! This worked just fine!
Create an account or sign in to comment.
How can I wrap formatted HTML inside a CDATA-tag?