XSL Utility is also available as a command line tool called xslutil.
This tool is auto-documented. To learn how to use it, simply run it without any argument:
$ xslutil
*** too few arguments
usage: java com.xmlmind.xslutility.CommandLine ?Options?
out_file in_xml_file xslt_stylesheet ?param=value? ... ?param=value?
Options are:
-v
Verbose.
-out rtf|wml|docx|odt|pdf|ps|pcl
Specifies the output format. Default: none (the file generated by
the XSLT style sheet is not processed by XFC or by FOP).
-enc <encoding>
Specifies the encoding of the file generated by XFC.
Default: Cp1252 for RTF, UTF-8 for other output formats.
If needed, specify additional XML catalogs using XSLUtility GUI
or using environment variable XSLU_CATALOGS (see online help).Example: convert a DocBook document to multi-page HTML (on Unix):
$ xslutil -v out/index.html tests/simple.docb \
~/src/xfc/xslu/config/docbook/xsl/html/chunk.xsl base.dir=out/
Compiling stylesheet "/home/hussein/src/xfc/xslu/config/docbook/xsl/html/chunk.xsl"...
Stylesheet compiled in 2.645s.
Transforming input "tests/simple.docb"...
Writing out/index.html for article
Input transformed in 1.626s.
Conversion completed.