2025-03-14 21:59:59 -06:00
|
|
|
# xmlto
|
|
|
|
|
|
|
|
|
|
> Apply an XSL stylesheet to an XML document.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://manned.org/xmlto>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Convert a DocBook XML document to PDF format:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`xmlto pdf {{document.xml}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Convert a DocBook XML document to HTML format and store the resulting files in a separate directory:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`xmlto -o {{path/to/html_files}} html {{document.xml}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Convert a DocBook XML document to a single HTML file:
|
|
|
|
|
|
|
|
|
|
`xmlto {{html-nochunks}} {{document.xml}}`
|
|
|
|
|
|
|
|
|
|
- Specify a stylesheet to use while converting a DocBook XML document:
|
|
|
|
|
|
|
|
|
|
`xmlto -x {{stylesheet.xsl}} {{output_format}} {{document.xml}}`
|