Discussion:
Best library to make XSLT 2.0 transformation
wdveloper
2009-05-19 11:13:04 UTC
Permalink
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!
Diez B. Roggisch
2009-05-19 11:42:32 UTC
Permalink
Post by 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?
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
John Krukoff
2009-05-19 16:25:49 UTC
Permalink
Post by Diez B. Roggisch
Post by 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?
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.
--
John Krukoff <jkrukoff at ltgc.com>
Land Title Guarantee Company
Diez B. Roggisch
2009-05-19 18:34:32 UTC
Permalink
Post by John Krukoff
Post by Diez B. Roggisch
Post by 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?
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.
Ah, sorry, I missed the 2.0 requirement.

Diez

Stefan Behnel
2009-05-19 17:14:43 UTC
Permalink
Post by wdveloper
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
Continue reading on narkive:
Search results for 'Best library to make XSLT 2.0 transformation' (Questions and Answers)
9
replies
what is better microsoft internet explorer 7 or mozilla firefox 2 and why???
started 2006-10-28 03:16:28 UTC
internet
Loading...