2021-08-16 08:23:55 -04:00
|
|
|
# xml transform
|
2021-08-14 18:17:52 -04:00
|
|
|
|
2021-08-15 14:38:24 -04:00
|
|
|
> Transform XML documents using XSLT.
|
2025-05-11 21:14:19 +03:00
|
|
|
> More information: <https://xmlstar.sourceforge.net/doc/UG/xmlstarlet-ug.html#idm47077139602800>.
|
2021-08-14 18:17:52 -04:00
|
|
|
|
2021-08-20 23:20:02 -04:00
|
|
|
- Transform an XML document using an XSL stylesheet, passing one XPATH parameter and one literal string parameter:
|
2021-08-15 14:38:24 -04:00
|
|
|
|
2025-05-11 21:14:19 +03:00
|
|
|
`xml {{[tr|transform]}} {{path/to/stylesheet.xsl}} -p "{{Count='count(/xml/table/rec)'}}" -s {{Text="Count="}} {{path/to/input.xml|URI}}`
|
2021-08-15 14:38:24 -04:00
|
|
|
|
2024-01-30 01:55:24 -03:00
|
|
|
- Display help:
|
2021-08-14 18:17:52 -04:00
|
|
|
|
2025-05-11 21:14:19 +03:00
|
|
|
`xml {{[tr|transform]}} --help`
|