XML technologies / DocBook / Structural elements / About the presentation of DocBook elements
(Excerpt from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" by Thomas Schraitle)
DocBook elements convey meaning without appearance. As an author, you add elements to your text according to their meaning rather than their presentation. The document’s presentation is handled separately by a so-called publishing system.
In this book, the term refers to the process and applications used to generate another format from DocBook. These may be stylesheets invoked manually through a shell command, or a graphical interface that controls transformation through a menu or dialog box.
To give authors at least a rough idea of presentation in the final format, DocBook groups its elements into three categories:
- Inline elements
Inline elements appear in a mixed content model, where both text and other elements are allowed. An example is
emphasis(which emphasizes text) insidepara. Inline elements normally introduce no line break, but the font family, font style, or both may change locally. Many inline elements are presented identically.
- block elements
Block elements group larger units, such as a chapter (
chapter). They are usually distinguished by an additional line break, extra spacing, or even a page break. Larger units, such as chapters and appendices, normally start on odd-numbered pages. Some block elements contain a title included in a table of contents or list.
- Suppressed elements
Suppressed elements are neither inline nor block elements; they are not displayed at all. They are usually metadata (such as
refmetafor a reference entry), control elements (such asareaspecfor collecting and referencing areas for so-called “callouts”), or elements that appear elsewhere rather than at their specified location (such asindexterm). Depending on the stylesheet, suppressed elements may nevertheless be used to display additional information. Their presentation is then undefined by default and application-specific.
The section Processing expectations in the DocBook reference classifies an element in one of these three categories. This “default behavior” is implemented in the DocBook XSL stylesheets.
If you have your own layout requirements, you must customize the DocBook stylesheets. To avoid confusing users, however, you should not depart from the recommendation without good reason.
The following sections therefore omit a depiction of the final result in most examples.
Copyright © 2009 Millin Verlag
You may print the online version for your private use.
Otherwise, this chapter from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Millin Verlag, Siebengebirgsring 36, 53797 Lohmar, info(at)millin.de
back to top