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.
-
-m
XSL-file
Use the XSL in XSL-file to modify the stylesheet.
-
-o
dir
Place output files in the directory dir instead of in the current directory.
-
-p
options
Pass the options on to the post-processing program. Repeat
-p
to pass options on to the second stage post-processor. (This currently applies only to theps
format, which uses TeX to produce DVI anddvips
to produce PostScript.)-
--searchpath
path
Add the directories in the colon-separated path to the search path for files to include.
-
--skip-validation
Skip the normal validation check.
-
-x
stylesheet
Use stylesheet instead of picking one automatically.
Examples
Produce a PDF file from DocBook/XML input:
xmlto pdf ...
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.