xml-transform(1) xml-utils xml-transform(1) NAME xml-transform - Apply XSL transformations to XML documents SYNOPSIS xml-transform [-s [-p = ...] ...] [-o ] [-cdfilqSvh?] [ ...] DESCRIPTION Applies one or more XSLT stylesheets to one or more XML documents. OPTIONS -c, --combine Transform the input files as a single, combined XML document, rather than as individual documents. -d, --preserve-dtd Preserve the DTD of the original document when transforming. -f, --overwrite Overwrite the specified files instead of writing to stdout. -h, -?, --help Show usage message. -i, --identity Includes an "identity" template in to each specified stylesheet. -l, --list Treat input (stdin or arguments) as lists of files to transform, rather than files themselves. -o, --out Output to instead of stdout. This option only makes sense when the input is a single XML document. -p, --param = Pass a parameter to the last specified stylesheet. If specified before any stylesheets, the parameter will be passed to all stylesheets. -q, --quiet Quiet mode. Errors are not printed. -S, --xml-stylesheets Apply stylesheets that are associated to each XML document with the xml-stylesheet processing instruction. Associated stylesheets are applied before any user-specified stylesheets, in the order in which they occur within the document. -s, --stylesheet An XSLT stylesheet file to apply to each XML document. Multiple stylesheets can be specified by supplying this argument multiple times. The stylesheets will be applied in the order they are listed. -v, --verbose Verbose output. --version Show version information. ... Any number of XML documents to apply all specified stylesheets to. In addition, the following options allow configuration of the XML pars‐ er: --dtdload Load the external DTD. --huge Remove any internal arbitrary parser limits. --net Allow network access to load external DTD and entities. --noent Resolve entities. --xinclude Do XInclude processing. --xml-catalog Use an XML catalog when resolving entities. Multiple catalogs may be loaded by specifying this option multiple times. Identity template The -i option includes an "identity" template in to each stylesheet specified with the -s option. The template is equivalent to this XSL: This means that any attributes or nodes which are not matched by a more specific template in the user-specified stylesheet are copied. EXAMPLE $ xml-transform -s ... AUTHORS khzae.net. 2020-07-07 xml-transform(1)