xsl-list
[Top] [All Lists]

Re: Running both Saxon and Xalan? (Was: Re: Saxon is the best!!!)

2003-02-21 10:11:23
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



<Prev in Thread] Current Thread [Next in Thread>