1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/xmlto.md
Managor 8e09a08059
common*: refresh old pages part 3 (#16257)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-04-25 21:19:03 +03:00

582 B

xmlto

Apply an XSL stylesheet to an XML document. More information: https://manned.org/xmlto.

  • Convert a DocBook XML document to PDF format:

xmlto pdf {{document.xml}}

  • Convert a DocBook XML document to HTML format and store the resulting files in a separate directory:

xmlto -o {{path/to/html_files}} html {{document.xml}}

  • 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}}