Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello,
I am required to use the Saxon XSLT processor for a new project.

http://saxon.sourceforge.net/

Saxon is written in Java, and is "a complete and conformant implementation of the XSLT 2.0, XQuery 1.0, and XPath 2.0 Recommendations published on 23 January 2007 by W3C."

Being a Perl fan, I would like to use Saxon from within Perl.

Is this possible, and how ?
Thanks in advance!

Replies are listed 'Best First'.
Re: Java Saxon XSLT Processor and Perl
by ikegami (Patriarch) on Feb 02, 2009 at 23:06 UTC
      Thanks for the suggestion.
      My understanding after skimming through the Inline::Java documentation is that it permits to define classes in Java, within Perl code.
      But does it permit to import and use libraries written in Java ?
        Yup, you can access existing libraries directly from Perl (see the section called "Studying"), or you can write a that acts as glue between Perl and the library.
Re: Java Saxon XSLT Processor and Perl
by dHarry (Abbot) on Feb 03, 2009 at 08:27 UTC

    You might also want to take a look at Java and Java::Import. The latter uses GCJ::Cni, a wrapper for the GNU compiler for Java.