Revision [1542]

This is an old revision of Run made by DavidLee on 2010-11-18 07:33:41.

 

Run xmlsh


To run xmlsh invoke java and supply the necessary classpath and main class name org.xmlsh.sh.shell.Shell

There are sample scripts for windows and unix systems in the win32 and unix directories. These can be used "as is" or used as a template for custom invocation.

Windows

In win32/xmlsh.bat
@set CLASSPATH=%XMLSH%\bin\xmlsh-1.0.jar
@set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\log4j-1.2.7.jar
@REM Choose which saxon you wish to use
@set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\saxon9he.jar
@REM @set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\saxon9ee.jar
@set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\xercesimpl.jar
@set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\woodstox-core-asl-4.0.3.jar
@set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\stax2-api-3.0.1.jar
@set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\stax-utils.jar
@set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\jing.jar
@set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\trang.jar
@set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\saxon.jar
@REM Uncomment below to use jline input editing
@REM @set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\jline-0.9.94.jar
@java -XX:+UseConcMarkSweepGC  -Xmx1024m -Xms256m org.xmlsh.sh.shell.Shell   %*


Unix

In unix/xmlsh
CLASSPATH=$XMLSH/bin/xmlsh-1.1.jar
CLASSPATH=$CLASSPATH:$XMLSH/lib/log4j-1.2.7.jar
CLASSPATH=$CLASSPATH:$XMLSH/lib/saxon9he.jar
CLASSPATH=$CLASSPATH:$XMLSH/lib/xercesImpl.jar
# Uncomment the next line if you DO NOT want to use jline input editing
CLASSPATH=$CLASSPATH:$XMLSH/lib/jline-0.9.94.jar
CLASSPATH=$CLASSPATH:$XMLSH/lib/woodstox-core-asl-4.0.3.jar
CLASSPATH=$CLASSPATH:$XMLSH/lib/stax2-api-3.0.1.jar
CLASSPATH=$CLASSPATH:$XMLSH/lib/stax-utils.jar
# jing only used for rngvalidate 
CLASSPATH=$CLASSPATH:$XMLSH/lib/jing.jar
# trang only used for rngconvert
CLASSPATH=$CLASSPATH:$XMLSH/lib/trang.jar
# saxon only used for xslt1
CLASSPATH=$CLASSPATH:$XMLSH/lib/saxon.jar
java -cp $CLASSPATH -Xmx1024m -Xms256m -XX:+UseConcMarkSweepGC org.xmlsh.sh.shell.Shell   "$@"


Running

Copy the appropriate script (edited if necessary) to a location in your PATH or modify your PATH to include the location of the script. Then you can run xmlsh in interactive mode by typing
xmlsh


You can run an xmlsh script by passing it as the first argument, followed by any script arguments
xmlsh myscript.xsh arg1 arg2


Details

For details on xmlsh invocation and parameters see xmlsh command

For details on Saxon support including Saxon EE see Saxon Support



Logging

For details on logging see Logging
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki