XML technologies / DITA / DITA at a glance / The DITA Open Toolkit
(Excerpt from “DITA - Der neue Standard für Technische Dokumentation” by Johannes Hentrich)
IBM recognized early that an XML-based standard would succeed in practice only if its files could quickly produce output such as PDF or HTML.
Alongside the language and architecture specifications, IBM therefore developed a corresponding environment, the DITA Open Toolkit. Before becoming an open-source project, it was initially called “dita132” within IBM.
The DITA Open Toolkit is central to DITA: it produces output and processes specialized information structures. It also enables conditional processing of DITA XML files, filtering and flagging content.
The DITA Open Toolkit consists of these components:
DITA DTDs and XML Schema files: DTDs store DITA’s information structures, that is, the structures of topics and maps. They do not define elements themselves but reference module files declaring elements and attributes for particular structures. DITA 1.1 adds a parallel set of XML Schema files defining these structures. These still seem rather alien, since the rest of the toolkit can do little with them. This book always uses DTDs, for example when demonstrating topic specialization.
XSLT stylesheets: the toolkit supplies XSLT stylesheets for output such as HTML, PDF, Microsoft HTMLHelp, JavaHelp and EclipseHelp. They transform DITA XML documents either directly into the target format, as with HTML, or into an intermediate format such as XSL-FO, that is, eXtensible Stylesheet Language Formating Objects, which an XSL-FO processor can convert into PDFs. While stylesheets for online formats such as HTML or JavaHelp are quite mature, PDF stylesheets receive rather less attention. The toolkit’s plugin architecture permits third-party stylesheets, so PDF production often uses the FO plugin from Idioms Technologies Inc. Its drawback is that it cannot work with an open-source XSL-FO processor such as Apache FOP and needs a commercial product. However, there are repeated reports that this should be remedied.
ANT build files: software developers are familiar with Java-based, platform-independent ANT (Another Neat Tool) for automatically building software. Technical writers find this unfamiliar technology and its handling harder to embrace. The toolkit supplies several ANT build file templates requiring changes to only a few parameters before they can control output production automatically.
dost.jar: this file contains several Java classes needed by the toolkit to generate output.
Sample files: numerous sample files give a quick insight into producing the desired output.
DITA documentation: the supplied documentation is not extensive, but sufficient for installation on Windows and Linux. A DITA element reference is also provided.
The toolkit also has a plugin architecture for integrating external programs and stylesheets. One of the best-known plugins is the FO plugin from Idioms Technologies Inc., supplying XSLT stylesheets for PDF generation. In the current toolkit version, 1.4, PDF production uses only the FO plugin’s XSLT stylesheets.
Although integral to DITA, the toolkit is often inadequately supported by XML editors advertising DITA support. They may edit DITA XML files excellently but provide insufficient access to the toolkit for processing. Even some editors integrating it do not clearly show how integration has been implemented.
Technical writers must then operate the toolkit as originally intended: from the command line. This may initially be awkward and unfamiliar, but “DITA Open Toolkit” shows how to get it under control.
Copyright © 2008 XLcontent Verlag
You may print the online version for your private use.
Otherwise, this chapter from “DITA - Der neue Standard für Technische Dokumentation” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
XLcontent Verlag, Pflegerstraße 40, 81247 München
back to top