May describe unreleased features ยท Switch to current
release
4.2
ยท For shortcuts, type ?
Sample XML project files
DITA-OT includes sample XML project files that can be used to define a publication project. The XML format
can be validated with a RELAX NG schema provided in the resources folder of the DITA-OT
installation (project.rnc).
Project files can be designed in a modular fashion to create reusable configuration structures that allow you to
define settings in one file and refer to them in other projects to publish multiple deliverables at once.
For example, dita-ot-dir/docsrc/samples/project-files/html.xml defines
a single HTML deliverable.
This file can be used to generate the HTML version of the DITA-OT documentation by running the following command
from the docsrc folder of the DITA-OT installation directory:
dita--project=samples/project-files/html.xml
The project file for HTML output imports the common html context from a shared project context
defined in the dita-ot-dir/docsrc/samples/project-files/common.xml file,
which includes the input map file and the DITAVAL file used to filter the output.
The same common html context is also referenced in the project file for HTMLHelp output, as
illustrated in dita-ot-dir/docsrc/samples/project-files/htmlhelp.xml.
The dita-ot-dir/docsrc/samples/project-files/pdf.xml file defines a
single PDF deliverable.
This file can be used to generate the PDF version of the DITA-OT documentation by running the following command
from the docsrc folder of the DITA-OT installation directory:
dita--project=samples/project-files/pdf.xml
The dita-ot-dir/docsrc/samples/project-files/distribution-docs.xml file
includes both the HTML and PDF projects as follows:
To build both the HTML and PDF versions of the documentation as included in the distribution package, run the
following command from the docsrc folder of the DITA-OT installation directory: