Name
xmlto
Synopsis
xmlto [options]format file
Convert a DocBook/XML file into a formatted file. The
format is typically something like pdf or html. The file
should be a text file containing DocBook/XML markup. xmlto applies a stylesheet to convert
the document to the appropriate format, possibly formatting it in
the process.
Available Formats
|
|
TeX DVI file. |
|
|
XSL-FO formatting objects. |
|
|
Hypertext Markup Language. |
|
|
HTML, in one large file. |
|
|
HTML Help files. |
|
|
Java Help files. |
|
|
Unix-style manpages. |
|
|
Adobe’s Portable Document Format (PDF) files. |
|
|
PostScript files. |
|
|
Plain text files. |
|
|
XHTML (XML-derived HTML) files. |
|
|
XHTML, in one large file. |
Options
-
--extensions Enable stylesheet extensions for the toolchain in use.
-
-mXSL-file Use the XSL in XSL-file to modify the stylesheet.
-
-odir Place output files in the directory dir instead of in the current directory.
-
-poptions Pass the options on to the post-processing program. Repeat
-pto pass options on to the second stage post-processor. (This currently applies only to thepsformat, which uses TeX to produce DVI anddvipsto produce PostScript.)-
--searchpathpath Add the directories in the colon-separated path to the search path for files to include.
-
--skip-validation Skip the normal validation check.
-
-xstylesheet Use stylesheet instead of picking one automatically.
Examples
Produce a PDF file from DocBook/XML input:
xmlto pdf ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access