OS Manuals

/usr/bin/xsltproc

XML stylesheet transformation library

From libxslt 1.1.45-r5 (os), captured 2026-11-05 by running xsltproc --help (exit 3). permalink

Unknown option --help
Usage: /usr/bin/xsltproc [options] stylesheet file [file ...]
   Options:
	--version or -V: show the version of libxml and libxslt used
	--verbose or -v: show logs of what's happening
	--output file or -o file: save to a given file
	--timing: display the time used
	--repeat: run the transformation 20 times
	--debug: dump the tree of the result instead
	--dumpextensions: dump the registered extension elements and functions to stdout
	--novalid skip the DTD loading phase
	--nodtdattr do not default attributes from the DTD
	--noout: do not dump the result
	--maxdepth val : increase the maximum depth (default 3000)
	--maxvars val : increase the maximum variables (default 15000)
	--huge: relax any hardcoded limit from the parser
	             fixes "parser error : internal error: Huge input lookup"
	--seed-rand val : initialize pseudo random number generator with specific seed
	--html: the input document is(are) an HTML file(s)
	--encoding: the input document character encoding
	--param name value : pass a (parameter,value) pair
	       name is a QName or a string of the form {URI}NCName.
	       value is an UTF8 XPath expression.
	       string values must be quoted like "'string'"
 or	       use stringparam to avoid it
	--stringparam name value : pass a (parameter, UTF8 string value) pair
	--path 'paths': provide a set of paths for resources
	--nonet : refuse to fetch DTDs or entities over network
	--nowrite : refuse to write to any file or resource
	--nomkdir : refuse to create directories
	--writesubtree path : allow file write only with the path subtree
	--catalogs : use SGML catalogs from $SGML_CATALOG_FILES
	             otherwise XML Catalogs starting from
	         file:///etc/xml/catalog are activated by default
	--xinclude : do XInclude processing on document input
	--xincludestyle : do XInclude processing on stylesheets
	--load-trace : print trace of all external entites loaded
	--profile or --norman : dump profiling information

Project libxslt home page: https://gitlab.gnome.org/GNOME/libxslt
Options (28)
OptionDescriptionSource
--catalogsUse the SGML catalog specified in SGML_CATALOG_FILES to resolve the location of external entities.man
--debugOutput an XML tree of the transformed document for debugging purposes.man
--dumpextensionsDumps the list of all registered extensions on stdout.man
--htmlThe input document is an HTML file.man
--load-traceDisplay all the documents loaded during the processing to stderr.man
--maxdepth VALUEAdjust the maximum depth of the template stack before libxslt(3) concludes it is in an infinite loop.man
--maxvars VALUEMaximum number of variables.man
--hugeRelax hardcoded limits of the XML parser by setting the XML_PARSE_HUGE parser option.man
--seed-rand VALUEInitialize pseudo random number generator with specific seed.man
--nodtdattrDo not apply default attributes from the document's DTD.man
--nomkdirRefuses to create directories.man
--nonetDo not use the Internet to fetch DTDs, entities or documents.man
--nooutDo not output the result.man
--novalidSkip loading the document's DTD.man
--nowriteRefuses to write to any file or resource.man
-o, --output FILEDirect output to the given FILE.man
--encoding ENCODINGAllow to specify the encoding for the input.man
--param PARAMNAMEPass a parameter of name PARAMNAME and value PARAMVALUE to the stylesheet.man
--path "PATH(S)"Use the (space- or colon-separated) list of filesystem paths specified by PATHS to load DTDs, entities or documents.man
--profile, --normanOutput profiling information detailing the amount of time spent in each part of the stylesheet.man
--repeatRun the transformation 20 times.man
--stringparam PARAMNAMEPass a parameter of name PARAMNAME and value PARAMVALUE where PARAMVALUE is a string rather than a node identifier.man
--timingDisplay the time used for parsing the stylesheet, parsing the document and applying the stylesheet and saving the result.man
-v, --verboseOutput each step taken by xsltproc in processing the stylesheet and the document.man
-V, --versionShow the version of libxml(3) and libxslt(3) used.man
--writesubtree PATHAllow file write only within the PATH subtree.man
--xincludeProcess the input document using the XInclude specification.man
--xincludestyleProcess the stylesheet with XInclude.man
Exit status (12) from the manual page
0No error (normal operation)
1No argument
2Too many parameters
3Unknown option
4Failed to parse the stylesheet
5Error in the stylesheet
6Error in one of the documents
7Unsupported xsl:output method
8String parameter contains both quote and double-quotes
9Internal processing error
10Processing was stopped by a terminating message
11Could not write the result to the output file

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.