Revision [496]
This is an old revision of ModuleCalabash made by DavidLee on 2009-05-08 15:12:04.
Calabash XProc Extension Module
The Calabash xproc implementation is supported as an extension module to xmlsh. This allows running xproc pipelines from within the same JVM as xmlsh and using native xmlsh syntax. For example, input and output ports in xproc are supported via named ports in xmlsh.Download
Calabash extension module is on sourceforge in the calabsh_ext package under xmlsh.Dowload the latest binary from calabash_ext package
This module requires at least version 0.0.2.0 of xmlsh
Installation
To run this module you must include the supplied calabash_ext.jar
as well as the following jar files required for calabas
calabash.jar Calabash optionally uses the following additional files beyond what is included in xmlsh
commons-httpclient-3.1.jar
commons-loggin-1.1.1.jar
commons-logging-api-1.1.1.jar
commons-codec-1.3.jar
See http://hc.apache.org/httpclient-3.x/dependencies.html for list of dependancies
For HTTP support include the Commons HTTP client from http://hc.apache.org/downloads.cgi
Also requires the commons logging jar from http://commons.apache.org/downloads/download_logging.cgi
Also requries common codec from http://commons.apache.org/downloads/download_codec.cgi
isorelax.jar
For relax-ng support, ISO Relax from http://sourceforge.net/projects/iso-relax/
Other jar's may be needed for optional components, see the calabash web site for details
msv.jar
tagsoup-1.2.jar
For PDF support you may need a free or commercial license for RenderX XEP from http://services.renderx.com/Content/tools/xep.html
xep.jar
Place above jar files in a known directory and edit the CLASSPATH used for launching xmlsh.
This can be done by editing the win32\xmlsh.bat or unix/xmlsh startup scripts or whatever command is used to launch xmlsh.
Windows example, assuming calabash_ext.jar is placed in the same directory as xmlsh.jar (%XMLSH%\lib) edit win32\xmlsh.bat and add before the java command
@set CLASSPATH=%CLASSPATH%;%XMLSH%\lib\calabash_ext.jar
Repeat this for all the jar files.
Importing
Now you can startup xmlsh but you must import the extension module in order to use it.
Import the calabash extension in xmlsh with an "import module" statement.
e.g.
import module org.xmlsh.calabash
the following commands are supported
xproc
$ import module org.xmlsh.calabash
Or you can use a prefix for the module
$ import module c=org.xmlsh.calabash
Configuring
If you want to configure calabash, you can do so as documented in the Calabash Home page.It runs fine without any configuration.
Running
Your now ready to run xproc from within xmlsh.The following commands are supported
Extension Modules