XML technologies / DocBook / The DocBook XSL stylesheets / Using a shared bibliography and glossary database / Bibliography database

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

To share a bibliography database across documents, proceed as follows:

  1. Create a bibliography database
    Create a separate file with the root element bibliography (see Bibliographies). Each bibliography entry can consist of either a biblioentry or bibliomixed element:

    File biblio.xml:

<bibliography> 
    <title>...</title> 
    <biblioentry ANKER="bib.docbook"> 
        <abbrev>docbook</abbrev> 
        <!-- ... --> 
    </biblioentry> 
</bibliography>

Replace the placeholder ANKER with id for DocBook 4.x or xml:id for DocBook 5.

  1. Customize your document
    For each bibliography entry to include, insert an empty bibliomixed element with the corresponding anchor value. This value must match the entry in the bibliography database:

<book> 
    <!-- ... --> 
    <bibliography> 
        <title>...</title> 
        <bibliomixed ANKER="bib.docbook"/> 
    </bibliography> 
</book>

  1. Creating a customization file
    Create a customization file as shown in Creating a customization file.

  2. Adding the parameter bibliography.collection
    Add the parameter bibliography.collection to your customization file. Its content is the path to your bibliography database:

<xsl:param name="bibliography.collection">biblio.xml</xsl:param>

  1. Transform your document
    Transform your document using the customization file.

  

back to top