Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XSLT processing in/from ruby

Tags:

linux

xml

ruby

xslt

Can anyone recommend an efficient method to execute XSLT transforms of XML data within a Ruby application? The XSL gem (REXSL) is not available yet, and while I have seen a project or two that implement it, I'm wary of using them so early on. A friend had recommended a shell out call to Perl, but I'm worried about resources.

This is for a linux environment.

like image 923
Adam Avatar asked Nov 21 '25 07:11

Adam


1 Answers

I would recomment to shell out call to "xsltproc", which comes with the libxslt libraries in linux and does the work.

Or if you are using JRuby by any chance, then you have several xslt parsers for java that you can really really easily use from your ruby program.

like image 55
Evgeny Avatar answered Nov 23 '25 01:11

Evgeny