mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
552 B
Plaintext
18 lines
552 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|