Re: Treat CDATA section content as node
Is it possible to treat the content in a CDATA section as a node or set of nodes? The xml I am working with puts HTML markup in a CDATA section. Of course, these items are intended to simply copy as-is, but I wish to translate the html into something else.
Might be better to change the schema to include the (X)HTML snippet?
if you mean html, then parsing the CDATA content (I think Saxon allows that via an extension) might produce an error due to <img> without a closing tag.
-- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format