LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

xml-transform

Apply XSLT stylesheets to XML

TLDR

Apply XSLT transformation
$ xml transform [stylesheet.xsl] [input.xml]
copy
Transform with parameters
$ xml transform --xinclude -p "[param=value]" [stylesheet.xsl] [input.xml]
copy
Output to file
$ xml transform [stylesheet.xsl] [input.xml] > [output.xml]
copy

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

Copied to clipboard
Kai