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:
Create a bibliography database
Create a separate file with the root elementbibliography(see Bibliographies). Each bibliography entry can consist of either abiblioentryorbibliomixedelement:File
biblio.xml:
<bibliography>
<title>...</title>
<biblioentry ANKER="bib.docbook">
<abbrev>docbook</abbrev>
<!-- ... -->
</biblioentry>
</bibliography>Replace the placeholder ANKER with
idfor DocBook 4.x orxml:idfor DocBook 5.
Customize your document
For each bibliography entry to include, insert an emptybibliomixedelement 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>Creating a customization file
Create a customization file as shown in Creating a customization file.Adding the parameter
bibliography.collection
Add the parameterbibliography.collectionto your customization file. Its content is the path to your bibliography database:
<xsl:param name="bibliography.collection">biblio.xml</xsl:param>Transform your document
Transform your document using the customization file.
Copyright © 2009 Millin Verlag
You may print the online version for your private use.
Otherwise, this chapter from "DocBook-XML: Medienneutrales und plattformunabhängiges Publizieren" is subject to the same provisions as the printed edition: the work, including all its parts, is protected by copyright. All rights are reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
Millin Verlag, Siebengebirgsring 36, 53797 Lohmar, info(at)millin.de
back to top