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

dvi

TeX DVI file.

fo

XSL-FO formatting objects.

html

Hypertext Markup Language.

html-nochunks

HTML, in one large file.

htmlhelp

HTML Help files.

javahelp

Java Help files.

man

Unix-style manpages.

pdf

Adobe’s Portable Document Format (PDF) files.

ps

PostScript files.

txt

Plain text files.

xhtml

XHTML (XML-derived HTML) files.

xhtml-nochunks

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 the ps format, which uses TeX to produce DVI and dvips 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.