mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-02 21:43:08 +00:00
18 lines
591 B
Plaintext
18 lines
591 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, osx]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# xsltproc
|
|
|
|
> Transform XML with XSLT to produce output (usually HTML or XML).
|
|
> More information: <http://www.xmlsoft.org/xslt/xsltproc.html>.
|
|
|
|
- Transform an XML file with a specific XSLT stylesheet:
|
|
|
|
`xsltproc --output {{path/to/output_file.html}} {{path/to/stylesheet_file.xslt}} {{path/to/file.xml}}`
|
|
|
|
- Pass a value to a parameter in the stylesheet:
|
|
|
|
`xsltproc --output {{path/to/output_file.html}} --stringparam "{{name}}" "{{value}}" {{path/to/stylesheet_file.xslt}} {{path/to/xml_file.xml}}`
|