XSLT to Python script conversion?
stefan_ml at behnel.de
Mon Feb 13 14:34:08 CET 2012
Matej Cepl, 13.02.2012 12:20:
> I am getting more and more discouraged from using XSLT for a transformation
> from one XML scheme to another one.
Could you explain what it is that discourages you about it? That would
allow us to come up with better alternatives for your specific problem.
> Does anybody could share any experience
> with porting moderately complicated XSLT stylesheet
> into a Python script using ElementTree's interparse or perhaps xml.sax?
> Any tools for this? Speed differences (currently I am using xsltproc)? Any
You could try switching to lxml. It would at least allow you to do a part
of the processing in Python and only use XSLT when it seems more
appropriate and/or easier.
More information about the Python-list