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

FAQ (Frequently Asked Questions)

journalarticle

Journal article

productsheet

Product description

specification

Specification

techreport

Technical report

whitepaper

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.

  

back to top