tldr/pages/osx/xsltproc.md

13 lines
501 B
Markdown
Raw Normal View History

2014-03-04 20:08:56 +00: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 20:08:56 +00:00
- Transform an XML file with a specific XSLT stylesheet:
2014-03-04 20:08:56 +00:00
`xsltproc --output {{path/to/output_file.html}} {{path/to/stylesheet_file.xslt}} {{path/to/file.xml}}`
2014-03-04 20:08:56 +00:00
- Pass a value to a parameter in the stylesheet:
2014-03-04 20:08:56 +00:00
`xsltproc --output {{path/to/output_file.html}} --stringparam "{{name}}" "{{value}}" {{path/to/stylesheet_file.xslt}} {{path/to/xml_file.xml}}`