XML Transformation and CDATA Sections
Posted on 2001-06-04
I have an XML element which contains HTML text which is not well-formed. So I contained the HTML in a CDATA section. . I am running a transformation using XSL to convert my document into HTML to be viewed in a browser. The parsing and the transformation work fine, except that the markup characters within the CDATA section are being converted to entities, so the end viewer is seeing the HTML markup displayed in the browser instead of the results of that HTML. So if within the CDATA section the
XML doc reads <B>HELLO</B>, the transformation output is <B&re;HELLO<B&rt;
The question is, how do I get the transformer to maintain the HTML within the CDATA section without transforming the mark-up characters into entities?