XML technologies / DocBook / Structural elements / Metadata / DocBook 4 metadata

(Excerpt from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" by Thomas Schraitle)

DocBook 4 metadata elements are usually named using the pattern ELEMENTinfo such as bookinfo, chapterinfo and others. These elements contain authors, editors, companies, legal notices, dates, bibliographic data and more. A chapter can contain the following metadata:

 

Example: Chapter metadata in DocBook 4

<chapter>    
    <chapterinfo>        
        <author>           
            <firstname>Tux</firstname>           
            <surname>Penguin</surname>           
        </author>
        <isbn>...</isbn>        
        <date>12.05.2008</date>        
        <!-- Weitere Elemente möglich ... -->        
    </chapterinfo>    
    <!-- Eigentlicher Inhalt -->    
</chapter>

You need not use every element and can omit metadata entirely. It is useful, however, for recording a chapter’s author, sponsor, publication date or similar details.

In the example of chapterinfo several titles are also allowed, such as title, titleabbrev and subtitle. This can cause inconsistencies when a title appears both inside a chapterinfo element and outside it (see below).

 

Example: Inconsistent titles in a chapter

<chapter>
    <chapterinfo>
        <title>Ein Sommernachtstraum</title>
        <!-- ... -->
    </chapterinfo>
    <title>Ein Wintermärchen</title>
    <!-- Eigentlicher Inhalt --> 
</chapter>

The DocBookDTD does not prevent this structure; DTD syntax cannot express the restriction. For consistency, specify only one title. The DocBook stylesheets prefer the title from the chapterinfo element, but other publishing systems may behave differently. This also applies to other *info elements whose content models also allow title.

  

back to top