XSLT transformations in Ruby and JRuby
        Posted  
        
            by jpatokal
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by jpatokal
        
        
        
        Published on 2010-06-07T23:21:02Z
        Indexed on 
            2010/06/07
            23:22 UTC
        
        
        Read the original article
        Hit count: 411
        
Simple question: are there any solid XSLT libraries that work in both Ruby and JRuby?
- REXML works in both, but does not have XSLT support.
- ruby-xslt doesn't work in JRuby.
- The latest Nokogiri betas do support JRuby, but the support is still buggy and throws occasional NullPointerExceptions for XML input that works fine in Ruby. (In particular, any transforms that don't result in valid XML cause it to barf, even if xsl:output is set to 'text'!)
- JXslt is just a wrapper for Java's Xalan/Saxon and doesn't work in Ruby.
Please tell me I'm missing something?
© Stack Overflow or respective owner