XML technologies / DocBook / Structural elements / Bibliographies / Preformatted bibliography

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

A bibliography using bibliomixed already specifies order and punctuation. You have full control, but consistent entries are harder to create.

Example: Bibliography using bibliomixed (bibliography-mixed.xml)

<bibliography>
    <title>Literatur der Beutlins</title>
    <bibliomixed ANKER="bib.bilbo">
        <bibliomset relation="book">
            <abbrev>bilbo</abbrev>
            <surname>Beutlin</surname>, <firstname>Bilbo</firstname>;
            <title>Hin und wieder zurück</title>.
        </bibliomset>
    </bibliomixed>
    <bibliomixed ANKER="bib.frodo">
        <bibliomset relation="book">
            <surname>Beutlin</surname>, <firstname>Frodo</firstname>;
            <title>Meine Reise nach Mordor</title>.
            <date>3. Zeitalter</date>,
            <publisher>
                <publishername>Hobbit Press</publishername>
            </publisher>
        </bibliomset>
    </bibliomixed>
</bibliography> 

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

This example creates two bibliography entries, ordered as they appear in the bibliography element. The approximate formatting is shown below, without considering details such as bold or italic words:

Literatur der Beutlins

[bilbo] Beutlin, Bilbo; Hin und wieder zurück.

[bib.frodo] Beutlin, Frodo; Meine Reise nach Mordor. 3. Zeitalter, Hobbit Press

References to entries follow this rule: if a child element abbrev exists, its content is used as the reference text. Otherwise, the parent element’s ID ( bibliomixed) is used. Thus, if the text contains

<para>Für weitere Informationen siehe <biblioref linkend="bib.bilbo"/>. Auch sehr interessant ist <biblioref linkend="bib.frodo"/>.</para>

the biblioref elements are replaced, producing:

Für weitere Informationen siehe [bilbo]. Auch sehr interessant ist [bib.frodo].

In the first reference, the target entry has an abbrev element; the second does not. The ID of bibliomixed must therefore be used. In (X)HTML, the text links to the bibliography entry. Printed works use the chosen citation style, such as author and publication year.

  

back to top