HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

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

Submitted by: @import:tldr-pages··
0
Viewed 0 times
documentcommandapplyclixmltostylesheetxslxml

Problem

How to use the xmlto command: Apply an XSL stylesheet to an XML document. More information: <https://manned.org/xmlto>.

Solution

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

Code Snippets

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

Context

tldr-pages: common/xmlto

Revisions (0)

No revisions yet.