[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Howdy,
@xsl = ("java", "org.apache.xalan.xslt.Process -in $file_name.xml -xsl pdfmarks.xsl -out pdfmarks.txt");
system(@xsl);
</snip>
<snip>
baal: {16} ./gus_pdfmark.pl foo
Can't find class org.apache.xalan.xslt.Process -in foo.xml -xsl howto.xsl -out foo.html
baal: {17}
</snip>
<snip>
java org.apache.xalan.xslt.Process -in foo.xml -xsl howto.xsl -out foo.html
</snip>
...then it works because I have my classpath set in ~/.cshrc on
my NetBSD Unix box. I can make it all work by doing in two stages
on command line, Java Xalan then Perl. But I would rather do in just one
stage, call the Perl and have it call Java. Anybody know now to do
that?
Thanks,
Mistera Sturno - Rarest Extinct Bird
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
[xsl] Calling Java Xalan inside Perl on Unix
Subject: [xsl] Calling Java Xalan inside Perl on Unix From: Gan Uesli Starling <alias@xxxxxxxxxxx> Date: Thu, 17 Apr 2003 10:07:42 -0400 |
Howdy,
Anybody know how to call Xalan from a Perl script on NetBSD Unix? I can't seem to get it right. I try like so in my Perl script...
<snip> ($file_name) = @ARGV;
@xsl = ("java", "org.apache.xalan.xslt.Process -in $file_name.xml -xsl pdfmarks.xsl -out pdfmarks.txt");
system(@xsl);
</snip>
...but it does not work because I get this nastygram with regard to Java class...
<snip>
baal: {16} ./gus_pdfmark.pl foo
Can't find class org.apache.xalan.xslt.Process -in foo.xml -xsl howto.xsl -out foo.html
baal: {17}
</snip>
...but if I simply do the same thing on command line like so...
<snip>
java org.apache.xalan.xslt.Process -in foo.xml -xsl howto.xsl -out foo.html
</snip>
...then it works because I have my classpath set in ~/.cshrc on
my NetBSD Unix box. I can make it all work by doing in two stages
on command line, Java Xalan then Perl. But I would rather do in just one
stage, call the Perl and have it call Java. Anybody know now to do
that?
Thanks,
Gan --
Mistera Sturno - Rarest Extinct Bird
<(+)__ Gan Uesli Starling ((__/)=- Kalamazoo, MI, USA `||` ++ http://starling.us
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] conditional declaretion o, Sundar Shanmugasunda | Thread | Re: [xsl] Calling Java Xalan inside, David McKain |
Re: [xsl] conditional declaretion o, David Carlisle | Date | RE: [xsl] How can I do a string sub, Bill Chmura |
Month |