Best library to make XSLT 2.0 transformation

Stefan Behnel stefan_ml at behnel.de
Tue May 19 19:14:43 CEST 2009


wdveloper wrote:
> I need to make xml transformation using XSLT 2.0 (since i want to use
> the powerful tag <xsl:result-document> to produce multiple files).
> In your experience, which kind of library out there is better?

I'm not aware of a Python library that implements XSLT 2.0, although you
might want to look around at the XQuery homepage, which links to a number
of candidates.

That said, if all you want is to generate multiple result documents from a
single XSLT, lxml will happily help you if you take a minute to implement a
custom XSLT element in Python that just writes an XSLT result to a file.

http://codespeak.net/lxml/extensions.html#xslt-extension-elements

Stefan



More information about the Python-list mailing list