xsltproc — command line xslt processor
xsltproc
[[ -V
| --version
] [ -v
| --verbose
] | [
{ -o
| --output
}
FILE
] | --timing
| --repeat
| --debug
| --novalid
| --noout
| --maxdepth
| VALUE
--html
| --param
| PARAMNAME
PARAMVALUE
--stringparam
| PARAMNAME
PARAMVALUE
--nonet
| --path "
| PATHS
"--load-trace
| --catalogs
| --xinclude
[ --profile
| --norman
] | --dumpextensions
| --nowrite
| --nomkdir
| --writesubtree
| PATH
--nodtdattr
] [STYLESHEET
] {FILE
...}
xsltproc is a command line tool for applying XSLT stylesheets to XML documents. It is part of libxslt, the XSLT C library for GNOME. While it was developed as part of the GNOME project, it can operate independently of the GNOME desktop.
xsltproc is invoked from the command line with the name of the stylesheet to be used followed by the name of the file or files to which the stylesheet is to be applied. It will use the standard input if a filename provided is - .
If a stylesheet is included in an XML document with a Stylesheet Processing Instruction, no stylesheet need be named at the command line. xsltproc will automatically detect the included stylesheet and use it.
By default, output is to stdout. You can specify a file for output using
the -o
option.
xsltproc currently accepts the following options:
-V
or --version
-v
or --verbose
-o
or --output
FILE
FILE
. For multiple outputs, also known as
"chunking", -o DIRECTORY/
directs the output files to a specified directory. The directory must
already exist.--timing
--repeat
--debug
--novalid
--noout
--maxdepth VALUE
--html
--param PARAMNAME
PARAMVALUE
PARAMNAME
and
value PARAMVALUE
to the stylesheet. You may pass
multiple name/value pairs up to a maximum of 32. If the value being passed
is a string rather than a node identifier, use --stringparam
instead.--stringparam PARAMNAME
PARAMVALUE
PARAMNAME
and
value PARAMVALUE
where PARAMVALUE
is a string rather than a node
identifier. (Note: The string must be utf-8.) --nonet
--path "PATHS
"
paths
to
load DTDs, entities or documents.
--load-trace
--catalogs
SGML_CATALOG_FILES
to resolve the location of
external entities. By default, xsltproc
looks for the catalog specified in XML_CATALOG_FILES
.
If that is not specified, it uses /etc/xml/catalog
.
--xinclude
--profile
or --norman
--dumpextensions
--nowrite
--nomkdir
--writesubtree PATH
PATH
subtree.--nodtdattr
xsltproc's return codes provide information that can be used when calling it from scripts.
normal
no argument
too many parameters
unknown option
failed to parse the stylesheet
error in the stylesheet
error in one of the documents
unsupported xsl:output method
string parameter contains both quote and double-quotes
internal processing error
processing was stopped by a terminating message
More information can be found at the libxml web pages at http://www.xmlsoft.org/ and the W3C XSLT pages at http://www.w3.org/TR/xslt.