Linux command
xml-transform 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Apply XSLT transformation
xml transform [stylesheet.xsl] [input.xml]
Transform with parameters
xml transform --xinclude -p "[param=value]" [stylesheet.xsl] [input.xml]
Output to file
xml transform [stylesheet.xsl] [input.xml] > [output.xml]
说明
xml transform applies XSLT stylesheets to XML documents. Part of xmlstarlet toolkit. Transforms XML using XSLT 1.0 processor for document conversion and processing.
参数
- -p, --param _name=value_
- Pass parameter to stylesheet.
- -s, --stringparam _name=value_
- Pass string parameter.
- --xinclude
- Process XInclude.
- --html
- Input is HTML.
- --omit-decl
- Omit XML declaration.
FAQ
What is the xml-transform command used for?
xml transform applies XSLT stylesheets to XML documents. Part of xmlstarlet toolkit. Transforms XML using XSLT 1.0 processor for document conversion and processing.
How do I run a basic xml-transform example?
Run `xml transform [stylesheet.xsl] [input.xml]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p, --param _name=value_ do in xml-transform?
Pass parameter to stylesheet.