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

Re: Running both Saxon and Xalan? (Was: Re: Saxon is t

Subject: Re: Running both Saxon and Xalan? (Was: Re: Saxon is the best!!!)
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 21 Feb 2003 10:11:23 -0700 (MST)
xalan saxon
Dimitre Novatchev wrote:
> It was me and I still don't know how to be able to run both Saxon and Xalan
> from the comand line (without having to change classpath etc. inbetween).
> 
> I hope someone would help solve this problem?

You can tell the JVM to use a specific classpath via the -classpath option on
the command line. In my (non-Windows) shell I have aliases set up:

alias xt	'java -classpath /home/mike/xml/xt-20020426a-src/lib/xp.jar:/home/mike/xml/xt-20020426a-src/lib/xml-apis.jar:/home/mike/xml/xt-20020426a-src/xt.jar com.jclark.xsl.sax.Driver'
alias saxon	'java -classpath /home/mike/xml/saxon:/home/mike/xml/saxon/saxon.jar com.icl.saxon.StyleSheet'
alias xalan	'java -classpath /home/mike/xml/xalan/bin/xalan.jar:/home/mike/xml/xalan/bin/xml-apis.jar:/home/mike/xml/xalan/bin/xercesImpl.jar org.apache.xalan.xslt.Process'
alias oraxsl    'java -classpath /home/mike/xml/oracle/lib/xmlparserv2.jar:/home/mike/xml/oracle/lib/xmlmesg.jar oracle.xml.parser.v2.oraxsl'

The syntax for setting aliases will vary from shell to shell, of course, and
obviously you want to adjust the paths, but you get the idea...

I've also got 4Suite, libxml and Sablotron installed, so I have '4xslt',
'xmlproc' and 'sabcmd' in my path already; no need for aliases for those.

Mike

-- 
  Mike J. Brown   |  http://skew.org/~mike/resume/
  Denver, CO, USA |  http://skew.org/xml/

 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.