2020-10-05 09:17:34 -05:00
|
|
|
# xmlto
|
|
|
|
|
|
|
|
> Apply an XSL stylesheet to an XML document.
|
2025-04-25 21:19:03 +03:00
|
|
|
> More information: <https://manned.org/xmlto>.
|
2020-10-05 09:17:34 -05:00
|
|
|
|
|
|
|
- Convert a DocBook XML document to PDF format:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`xmlto pdf {{document.xml}}`
|
2020-10-05 09:17:34 -05:00
|
|
|
|
|
|
|
- Convert a DocBook XML document to HTML format and store the resulting files in a separate directory:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`xmlto -o {{path/to/html_files}} html {{document.xml}}`
|
2020-10-05 09:17:34 -05: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:
|
|
|
|
|
2020-11-01 14:40:05 +01:00
|
|
|
`xmlto -x {{stylesheet.xsl}} {{output_format}} {{document.xml}}`
|