XML technologies / DocBook / Structural elements / Book series

(Excerpt from "DocBook-XML: Media-neutral and platform-independent publishing" by Thomas Schraitle)

The element set is the top level of the DocBook hierarchy. Apart from metadata and language and anchor attributes, there is no difference between DocBook 4 and 5. The element set can contain two or more books and is used when the books are related, forming a series.

The element set is formatted as a block. A set can add extra front and back matter, such as indexes and tables of contents.

The following example shows a DocBook book series.

 

Example: Structure of a book series with set

<set ANKER="foo">
    <title>Python</title>
    <setinfo>
        <!-- ... -->
    </setinfo>
    <toc/>
    <lot/>
    <book>
        <title>Python -- Grundlagen</title>
        <!-- ... -->
    </book>
    <book>
        <title>Python -- Programmierung</title>
        <!-- ... -->
    </book>
    <book>
        <title>Python -- Fortgeschrittene Programmierung</title>
        <!-- ... -->
    </book>    
</set>

Replace the placeholder ANKER with id in DocBook 4 and xml:id in DocBook 5.

To structure books and series differently, DocBook also allows recursive nesting of set.

  

back to top