How to tell XSLT processor not to remove CDATA

Hi, please take a look at this code: ======================================== from lxml import etree parser = etree.XMLParser(strip_cdata=False) tree = etree.parse('sample_with_cdata.xml', parser) transform = etree.XSLT(etree.parse('dupe.xsl')) xml_out = transform(tree) xml_out.write('processed.xml') ======================================== Transformation removes CDATA from initial XML file. How can I tell XSLT processor to leave CDATA as is? TIA

Sorry it was just my ignorance and had nothing to do with lxml. XSLT output declaration "cdata-section-elements" is how this should be handled Cheers

Sorry it was just my ignorance and had nothing to do with lxml. XSLT output declaration "cdata-section-elements" is how this should be handled Cheers
participants (1)
-
zetah