24 Jun
2013
24 Jun
'13
11:09 a.m.
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