[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Calling Java Xalan inside Perl on Unix

Subject: Calling Java Xalan inside Perl on Unix
From: Gan Uesli Starling <alias@xxxxxxxxxxx>
Date: Thu, 17 Apr 2003 10:07:42 -0400
perl xalan
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.