commands.sh

xml transform

all

Transform XML documents using XSLT.

More info →

Options (1)

boolean

Transform an XML document using an XSL stylesheet, passing one XPATH parameter and one literal string parameter

Example: xml {{[tr|transform]}} {{path/to/stylesheet.xsl}} -p "{{Count='count(/xml/table/rec)'}}" -s {{Text="Count="}} {{path/to/input.xml|URI}}

Examples (2)

Transform an XML document using an XSL stylesheet, passing one XPATH parameter and one literal string parameter

xml [tr|transform] path/to/stylesheet.xsl -p "Count='count(/xml/table/rec)'" -s Text="Count=" path/to/input.xml|URI

Display help

xml [tr|transform] --help
made by @shridhargupta | data from tldr-pages