1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 01:26:00 +02:00
tldr/pages/common/xml-transform.md
2025-05-11 21:14:19 +03:00

459 B

xml transform

Transform XML documents using XSLT. More information: https://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139602800.

  • 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