XML technologies / DocBook / Structural elements / Articles
(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)
For smaller documents such as how-tos, short guides and technical notes, use article. Divide an article using section or sect1; there is no chapter.
An article can also have a class attribute for further document classification (see the following table).
Table: Classifying an article with the attribute class
Value | Meaning |
| FAQ (Frequently Asked Questions) |
| Journal article |
| Product description |
| Specification |
| Technical report |
| Draft |
The class attribute distinguishes article types, allowing different layouts.
The following example shows an article representing a technical report.
Example: Structure of an article
<article class="techreport" lang="de">
<!-- -->
<title>DocBook – Eine Markupsprache für Dokumente</title>
<revhistory>
<!--Revisionsgeschichte -->
</revhistory>
<abstract>
<para>DocBook basiert auf XML ...</para>
</abstract>
<section>
<title>Was ist DocBook?</title>
<para>...</para>
</section>
</article>Line 1: Further classify an article with the attribute class.
Line 2: The element articleinfo or info contains article metadata such as author and publication date.
Line 4: An article’s revision history is represented by revhistory (see "Revision histories").
An article’s classification is specified by the attribute class (see the table above).
If no article metadata is needed, omit articleinfo or info.
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