xml-transform
Apply XSLT stylesheets to XML
TLDR
Apply XSLT transformation
$ xml transform [stylesheet.xsl] [input.xml]
Transform with parameters$ xml transform --xinclude -p "[param=value]" [stylesheet.xsl] [input.xml]
Output to file$ xml transform [stylesheet.xsl] [input.xml] > [output.xml]
SYNOPSIS
xml transform [options] stylesheet file
DESCRIPTION
xml transform applies XSLT stylesheets to XML documents. Part of xmlstarlet toolkit. Transforms XML using XSLT 1.0 processor for document conversion and processing.
PARAMETERS
-p, --param name=value
Pass parameter to stylesheet.-s, --stringparam name=value
Pass string parameter.--xinclude
Process XInclude.--html
Input is HTML.--omit-decl
Omit XML declaration.
SEE ALSO
xml-select(1), xsltproc(1)
