[xsl] Handling CDATA element

Subject: [xsl] Handling CDATA element
From: Thorsten Scherler <thorsten@xxxxxxxxxx>
Date: Thu, 09 Feb 2006 17:21:44 +0100
Hi all,

I have a question regarding the CDATA element.

My problem is the following. I have a rss feed like:
that returns something like:

<description><![CDATA[html-to-document.xsl no longer converts content to
an XDoc. Instead it renders converts documents to XDoc, instead it
allows H1, H2 etc. elements to pass through.


Now in my xsl I have something like the following to preserve the markup
of the cdata (it can contain any html markup).
<xsl:value-of select="description" disable-output-escaping="yes" />

If you remove @disable-output-escaping then it will transformed to

That looses the markup information but result in well-formed markup. I
prefer well-formed over well-presented, but best would be both. ;-)

I am unsure how to fix that, has somebody an idea?

TIA for any informations


"Together we stand, divided we fall!" 
Hey you (Pink Floyd)

Current Thread