1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/osx/xsltproc.md

13 lines
435 B
Markdown
Raw Normal View History

2014-03-04 21:08:56 +01:00
# xsltproc
> Transform XML with XSLT to produce output (usually HTML or XML).
> More information: <http://www.xmlsoft.org/xslt/xsltproc.html>.
2014-03-04 21:08:56 +01:00
- Transform an XML file with a specific XSLT stylesheet:
2014-03-04 21:08:56 +01:00
2014-03-04 21:10:51 +01:00
`xsltproc --output {{output.html}} {{stylesheet.xslt}} {{xmlfile.xml}}`
2014-03-04 21:08:56 +01:00
- Pass a value to a parameter in the stylesheet:
2014-03-04 21:08:56 +01:00
2022-02-14 03:21:43 -08:00
`xsltproc --output {{output.html}} --stringparam "{{name}}" "{{value}}" {{stylesheet.xslt}} {{xmlfile.xml}}`