In python 2.6 I did this to achieve xsl tranform
import libxml2
import libxslt
...
styledoc = libxml2.parseFile(my_xslt_file)
style = libxslt.parseStylesheetDoc(styledoc)
doc = libxml2.parseDoc(siri_response_data)
result = style.applyStylesheet(doc, None)
...
What would be equivalent in Python 3.2?
I ask because it seems that lnxml and libxslt are not available in python3.2. I heard about lxml - is it the direct equivalent of libxml2 + libxslt or does it have different call patterns (code rewriting required)?
source
share