XML technologies / DITA / Using familiar technologies / Using familiar technologies in DITA
(Excerpt from “DITA - Der neue Standard für Technische Dokumentation” by Johannes Hentrich)
Since IBM developed DITA as a successor to SGML, there was no question that XML would underpin its data format. XML’s benefits are obvious even if one considers only data exchange and further processing of XML documents. XML had also already entered technical documentation, so it was no longer unfamiliar territory for technical writers.
DITA’s decisive step forward is providing DTDs for creating technical documentation documents and marking their content semantically. The DTDs can also be used immediately to produce software documentation. For other fields, it is necessary to examine how far DITA must be adapted.
This removed the greatest obstacle to using markup languages such as SGML or XML in technical documentation. The costly and time-consuming development of DTDs is practically eliminated. Even if new DTDs must be developed through specialization, the effort remains limited because DITA’s architecture specifies how specialization must proceed. “Flexible extensibility” and “Specialization” discuss the DITA DTD development process in detail.
To process DITA XML files further, DITA uses technologies developed and used independently of DITA.
These include Cascading Stylesheets for formatting HTML files and XSL, whose three components XSLT, XSL-FO and XPath transform, format and search XML documents.
All stylesheets needed for further processing, whether CSS or XSLT stylesheets, are provided in the DITA Open Toolkit. DITA XML documents can therefore immediately be processed into output formats such as HTML or PDF. A customization mechanism allows the stylesheets to be modified to produce the desired output design.
The major advantage of the DITA Open Toolkit and its stylesheets is that output production stylesheets need only be adapted, not created anew. Customization can nevertheless be extensive, particularly for PDF files. As with DTDs, however, there is no need to reinvent the wheel; only its size needs adjusting.
DITA’s developers devised a special approach so that the toolkit’s stylesheets could also process newly specialized DTDs. The XSLT stylesheets address classes of elements rather than elements from DITA XML files directly. This is enabled by the attribute class assigned to every DITA element.
This method is not new, but DITA uses it cleverly to process specialized XML documents. It also provides the basis for flexible extensions, provided they remain within the DITA architecture.
The use of Java in the DITA Open Toolkit seems less spectacular. Nevertheless, it ensures that the toolkit’s stylesheets can process DITA XML files on practically all common computing platforms. Ultimately, this also reflects the aim of avoiding obstacles to DITA’s adoption.
By using familiar technologies, DITA provides an inexpensive way to create high-quality XML-based technical documentation. DITA and the DITA Open Toolkit supply all the components needed to start producing technical documentation immediately.
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