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

13 lines
427 B
Markdown
Raw Normal View History

2019-03-19 17:09:54 +08:00
# xsltproc
> 用 XSLT 转换 XML 以生成输出(通常是 HTML 或 XML)。
> 更多信息:<http://www.xmlsoft.org/xslt/xsltproc.html>.
2019-03-19 17:09:54 +08:00
- 使用特定的 XSLT 样式表转换 XML 文件:
2019-03-19 17:09:54 +08:00
2019-10-20 10:34:33 +08:00
`xsltproc --output {{输出.html}} {{样式表.xslt}} {{xml 文件.xml}}`
2019-03-19 17:09:54 +08:00
- 将值传递给样式表中的参数:
2019-03-19 17:09:54 +08:00
`xsltproc --output {{输出.html}} --stringparam "{{键名}}" "{{值}}" {{样式表.xslt}} {{xml 文件.xml}}`