XML technologies / DITA / Topic-based information creation / Against topics: DocBook
(Excerpt from “DITA – Der neue Standard für Technische Dokumentation” by Johannes Hentrich)
DocBook is a markup language for technical documents. Its DTDs, available for XML and SGML, represent the book structure required for manuals and technical books. Semantic markup chiefly covers software and hardware documentation.
Development began in 1991 as a joint project of HaL Computer Systems and O’Reilly & Associates. The Davenport Group was responsible from 1994 to 1998. In 1998 DocBook came under OASIS, whose DocBook Technical Committee has maintained and developed it since.
DSSSL and XSLT stylesheets produce output such as PDF or HTML. A sophisticated customization mechanism allows adaptation to individual requirements.
All DocBook elements are defined in one DTD. They mark the following information:
Document structure: About 50 elements mark document structure or hierarchy. Elements such as
<book>,<preface>,<chapter>and others build a book hierarchy.Metadata: More than 100 elements mark metadata, about a third of all DocBook elements.
Information: About 150 elements mark information: paragraphs, lists, tables and semantic content. Semantic subject areas cover interfaces, programming, operating systems and hardware.
DocBook’s DTD structure allows element definitions to be added and removed easily. Customization first creates a new DTD, the Driver File. It can define new elements and override existing parameter entities. Customization imports this file into the original DTD.
Customization can define subsets, limiting element numbers for a use case. Sun Microsystems defined such a subset, SolBook, for its technical documentation. Another subset is Simplified DocBook, whose DTD contains only 100 of the original 350 elements.
DocBook’s many elements partly reflect disagreements between participating organizations about what markup to define. For example, they could not agree whether a summary (abstract) belongs to book metadata or the body. Such cases often resulted in elements for both variants.
These difficulties reflect the problems of monolithic DTDs. The more groups with different needs must use one DTD, the harder it is to reconcile their requirements. Extensions naturally become an obstacle course too.
DocBook and books
DocBook aimed to provide a DTD chiefly for technical documentation books. It treats the manual as the central technical information medium. Designing a book-production DTD implicitly assumes content should be created in a form suited to books.
This is desirable if only a book is needed, but inevitably reaches its limits when content must serve other output media.
Stylesheets can produce Microsoft HTML Help, JavaHelp or even web pages. Yet transferring an unchanged book structure into HTML Help rarely makes sense. Intervention with XPath is often required to select the elements whose content should appear. Even then, content written for a book cannot simply be reused in another medium without stylistic and contextual considerations.
Because producing one book is the goal, DocBook has almost no reuse mechanisms. Even storing chapters in separate files requires substantial effort. A finished book is printed and its lifecycle ends—at least as DocBook envisages it. This information lifecycle scarcely suits technical documentation.
DocBook therefore has limited applicability to technical documentation, which means more than writing manuals: it chiefly supplies information in different media, often for different audiences.
A book-based DTD cannot meet these requirements. A book is just one technical information product and one of many ways users receive information. DITA’s development shows the growing need to recognize books’ declining role.
Comparing DocBook and DITA
Early DITA comparisons often tried to prove one standard better than the other. This achieves little; what matters is suitability for the intended use. A technical writer preparing an O’Reilly technical book, for example, is certainly better served by DocBook.
The table lists characteristics useful in evaluation.
DocBook | DITA | |
|---|---|---|
Paradigm | Book | |
DTD/DTDs | monolithic | modular |
Extending DTDs | through a Driver File | through specialization |
Possible information products | Book (primarily), online help | Book, online help, websites, wikis |
Information reuse | not provided | |
Filtering conditional elements | possible | possible |
Metadata | for the entire book | for individual topics and maps |
Stylesheets | available for practically all output media | available for practically all output media |
Stylesheet customization | possible for all stylesheets; very well documented | possible for all stylesheets |
Documentation | very extensive | still under development |
Table: Comparing DITA and DocBook
Unlike DITA, DocBook has more than 15 years of development behind it, reflected especially in extensive, detailed documentation. Its stylesheets and customization mechanisms are mature. Much remains under development in DITA, notably PDF stylesheets, so using DITA can sometimes require pioneering work.
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