in reply to Using XML::Saxon::XSLT2 Errors
I see this code in the source for the library (XML/Saxon/XSLT2.pm):
foreach my $path (qw( /usr/share/java/saxon9he.jar /usr/local/share/java/saxon9he.jar /usr/share/java/saxonb.jar /usr/local/share/java/saxonb.jar)) { $classpath = $path if -e $path; last if defined $classpath; }
It looks like it expects the jar file in one of those paths. If your jar file is not in any of those, go ahead and edit the source and add your path to the list. That's my guess anyway...
If I were to rewrite this, I would make it configurable via (at least) some environment variable, maybe SAXON_LIB_PATH or something...rather than just a hard coded list of paths
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Using XML::Saxon::XSLT2 Errors
by tobyink (Canon) on Jun 27, 2013 at 22:02 UTC | |
by runrig (Abbot) on Jun 28, 2013 at 21:28 UTC | |
by Anonymous Monk on Jul 17, 2017 at 11:53 UTC | |
by Corion (Patriarch) on Jul 17, 2017 at 12:31 UTC | |
Re^2: Using XML::Saxon::XSLT2 Errors
by Uggles (Novice) on Jun 27, 2013 at 21:55 UTC | |
by tobyink (Canon) on Jun 27, 2013 at 22:08 UTC | |
by Uggles (Novice) on Jun 28, 2013 at 01:49 UTC | |
by tobyink (Canon) on Jun 28, 2013 at 05:43 UTC |
In Section
Seekers of Perl Wisdom