tldr/pages/osx/xsltproc.md

12 lines
366 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).
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
2014-03-04 20:10:51 +00:00
`xsltproc --output {{output.html}} {{stylesheet.xslt}} {{xmlfile.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 {{output.html}} --stringparam {{name}} {{value}} {{stylesheet.xslt}} {{xmlfile.xml}}`