Best library to make XSLT 2.0 transformation

W

wdveloper

Hi there,

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?

Thanks!
 
D

Diez B. Roggisch

wdveloper said:
Hi there,

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?

XSLT is a standard, so if you find a library that implements it, there
shouldn't be much differences.

Having said that, these days lxml2 is the craze, and it contains
xslt-processing. It would be my first (and hopefully last) stop.

Diez
 
J

John Krukoff

XSLT is a standard, so if you find a library that implements it, there
shouldn't be much differences.

Having said that, these days lxml2 is the craze, and it contains
xslt-processing. It would be my first (and hopefully last) stop.

Diez

While I firmly believe lxml is the best python XML library available,
being built on libxml2 means that it only supports XSLT 1.0. As far as I
know, if you want 2.0 support, you still need to be using one of the
Java XSLT processors.
 
S

Stefan Behnel

wdveloper said:
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
 
D

Diez B. Roggisch

John said:
While I firmly believe lxml is the best python XML library available,
being built on libxml2 means that it only supports XSLT 1.0. As far as I
know, if you want 2.0 support, you still need to be using one of the
Java XSLT processors.


Ah, sorry, I missed the 2.0 requirement.

Diez
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,197
Latest member
ScottChare

Latest Threads

Top