How to tell XSLT processor not to remove CDATA
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
24 Jun
24 Jun
11:26 a.m.
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
4125
Age (days ago)
4125
Last active (days ago)
1 comments
1 participants
participants (1)
-
zetah