Ruby and XSLT

What Ruby libraries are available to parse and process XSLT? How does
each of these libraries compare to Apache Xalan for Java?

Derek

http://raa.ruby-lang.org/project/ruby-xslt/
Ruby/XSLT is a simple XSLT class based on libxml <http://xmlsoft.org/&gt; and libxslt <http://xmlsoft.org/XSLT/&gt;

Derek Mahar wrote:

···

What Ruby libraries are available to parse and process XSLT? How does
each of these libraries compare to Apache Xalan for Java?

Derek

---- X-Spam-Report ----

No, hits=-2.5 required=5.0

0.1 RCVD_BY_IP Received by mail server with no name
-2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1%
                            [score: 0.0000]

I am trying to use ruby-xslt under windows.
Is this possible?
The install instructions seem to be for *nix only and my french isn't
very good.

···

--
Posted via http://www.ruby-forum.com/.

After more searching on forums and other pages it seems that ruby-xslt
is very hard to install under windows. Has anyone done it before and
could point me to some instructions?

Alternativly does anyone know of another way that is easier to install
under windows. I want to do a very simple xslt transform, that reads in
a series of XML files and produces a series of html files. I am dipping
my toes into new water as i don't know a huge amount about ruby or xslt.

thanks all

···

--
Posted via http://www.ruby-forum.com/.

You might be better off to use Apache Xalan or Saxon. Both are
implemented in Java and both can be invoked from the command-line. You
could run them from a Ruby script.

···

On 3/15/06, toby <tobycatlin@hotmail.com> wrote:

After more searching on forums and other pages it seems that ruby-xslt
is very hard to install under windows. Has anyone done it before and
could point me to some instructions?

Alternativly does anyone know of another way that is easier to install
under windows. I want to do a very simple xslt transform, that reads in
a series of XML files and produces a series of html files. I am dipping
my toes into new water as i don't know a huge amount about ruby or xslt.

--
R. Mark Volkmann
Object Computing, Inc.

toby wrote:

After more searching on forums and other pages it seems that ruby-xslt is very hard to install under windows. Has anyone done it before and could point me to some instructions?

Alternativly does anyone know of another way that is easier to install under windows. I want to do a very simple xslt transform, that reads in a series of XML files and produces a series of html files. I am dipping my toes into new water as i don't know a huge amount about ruby or xslt.

If your tranformations are really simple, http://www.martinfowler.com/bliki/MovingAwayFromXslt.html might inspire you.

For instance, I didn't find any sound Ruby alternative to Perl's HTML::Template (anything with similar logic and usage: I want to have my templates Perl-compatible/to-Perl-transformable as far as possible), thus I have used this approach to write my own one (a very simple "subset", of course). It has been easy and the code is short, but quite powerful, at least quite enough for me.

P.

Not that this is much help right now, but I recently did some work
bringing ruby-libxslt bindings up to date, as part of the ruby-libxml
project. Hopefully we'll be making a release imminently, and would very
much like to hear how it does with Windows (it should be fine but I
can't be sure...)

If you really want you could grab the code from CVS. See:

  http://rubyforge.org/scm/?group_id=494

If you do that, check out the whole repository because libxslt-ruby
depends on headers from libxml-ruby.

···

On Wed, 2006-03-15 at 23:27 +0900, toby wrote:

Alternativly does anyone know of another way that is easier to install
under windows. I want to do a very simple xslt transform, that reads in
a series of XML files and produces a series of html files. I am dipping
my toes into new water as i don't know a huge amount about ruby or xslt.

--
Ross Bamford - rosco@roscopeco.REMOVE.co.uk

thanks, guys. I'll take a look at Xalan and see what i can do.

···

--
Posted via http://www.ruby-forum.com/.

I experiment Saxon9, invoked by the command line.

It works pretty well and permits to use XSLT 2.0 abilities (group-by)
and saxon:evaluate()

···

--
Posted via http://www.ruby-forum.com/.