is a command line tool for applying
documents. It is part of
libxslt(3), the XSLT C library for GNOME. While it was developed as part of the GNOME project, it can operate independently of the GNOME desktop.
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
document with a Stylesheet Processing Instruction, no stylesheet need to be named at the command line.
will automatically detect the included stylesheet and use it.
By default, output is to
stdout. You can specify a file for output using the
accepts the following options (in alphabetical order):
catalog specified in
to resolve the location of external entities. By default,
looks for the catalog specified in
XML_CATALOG_FILES. If that is not specified, it uses
tree of the transformed document for debugging purposes.
Dumps the list of all registered extensions on
The input document is an
Display all the documents loaded during the processing to
Adjust the maximum depth of the template stack before
concludes it is in an infinite loop. The default is 500.
Do not apply default attributes from the document's
Refuses to create directories.
Do not use the Internet to fetch
DTDs, entities or documents.
Do not output the result.
Skip loading the document's
Refuses to write to any file or resource.
-o or --outputFILE | DIRECTORY
Direct output to the given
FILE. Using the option with a
directs the output files to the specified directory. This can be useful for multiple outputs (also known as "chunking") or manpage processing.
The given directory
Pass a parameter of name
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
Use the (space- or colon-separated) list of filesystem paths specified by
DTDs, entities or documents. Enclose space-separated lists by quotation marks.
--profile or --norman
Output profiling information detailing the amount of time spent in each part of the stylesheet. This is useful in optimizing stylesheet performance.
Run the transformation 20 times. Used for timing tests.
Pass a paramenter of name
is a string rather than a node identifier.
The string must be UTF-8 encoded.
Display the time used for parsing the stylesheet, parsing the document and applying the stylesheet and saving the result. Displayed in milliseconds.
-v or --verbose
Output each step taken by
in processing the stylesheet and the document.
Process the input document using the Xinclude specification. More details on this can be found in the Xinclude specification:
to be written ...
Catalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the
environment variable to a list of catalogs. An empty one should deactivate loading the default
xsltproc's return codes provide information that can be used when calling it from scripts.
No error (normal operation)
Too many parameters
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