1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>bibliography.collection</title><link rel="stylesheet" href="reference.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.75.2"><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: ReferenceDocumentation"><link rel="up" href="biblio.html" title="Bibliography"><link rel="prev" href="biblioentry.item.separator.html" title="biblioentry.item.separator"><link rel="next" href="bibliography.numbered.html" title="bibliography.numbered"><link rel="copyright" href="copyright.html" title="License"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">bibliography.collection</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="biblioentry.item.separator.html">Prev</a></td><th width="60%" align="center">Bibliography</th><td width="20%" align="right"><a accesskey="n" href="bibliography.numbered.html">Next</a></td></tr></table><hr></div><div class="refentry" title="bibliography.collection"><a name="bibliography.collection"></a><div class="titlepage"></div>
<div class="refnamediv"><h2><span class="refentrytitle">bibliography.collection</span></h2><p>
bibliography.collection
— Name of the bibliography collection file
</p></div>
<div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2>
<a name="bibliography.collection.frag"></a><pre class="programlisting">
<xsl:param name="bibliography.collection">http://docbook.sourceforge.net/release/bibliography/bibliography.xml</xsl:param>
</pre>
</div>
<div class="refsection" title="Description"><a name="id1391922"></a><h2>Description</h2>
<p>Maintaining bibliography entries across a set of documents is tedious, time
consuming, and error prone. It makes much more sense, usually, to store all of
the bibliography entries in a single place and simply <span class="quote">“<span class="quote">extract</span>”</span>
the ones you need in each document.</p>
<p>That's the purpose of the
<a href="../html/bibliography.collection.html"><em class="parameter"><code>bibliography.collection</code></em></a> parameter. To setup a global
bibliography <span class="quote">“<span class="quote">database</span>”</span>, follow these steps:</p>
<p>First, create a stand-alone bibliography document that contains all of
the documents that you wish to reference. Make sure that each bibliography
entry (whether you use <a href="http://docbook.org/tdg5/en/html/biblioentry.html"><code class="sgmltag-element">biblioentry</code></a> or <a href="http://docbook.org/tdg5/en/html/bibliomixed.html"><code class="sgmltag-element">bibliomixed</code></a>)
has an ID.</p>
<p>My global bibliography, <code class="filename">~/bibliography.xml</code> begins
like this:</p>
<div class="informalexample">
<pre class="programlisting"><!DOCTYPE bibliography
PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<bibliography><title>References</title>
<bibliomixed id="xml-rec"><abbrev>XML 1.0</abbrev>Tim Bray,
Jean Paoli, C. M. Sperberg-McQueen, and Eve Maler, editors.
<citetitle><ulink url="http://www.w3.org/TR/REC-xml">Extensible Markup
Language (XML) 1.0 Second Edition</ulink></citetitle>.
World Wide Web Consortium, 2000.
</bibliomixed>
<bibliomixed id="xml-names"><abbrev>Namespaces</abbrev>Tim Bray,
Dave Hollander,
and Andrew Layman, editors.
<citetitle><ulink url="http://www.w3.org/TR/REC-xml-names/">Namespaces in
XML</ulink></citetitle>.
World Wide Web Consortium, 1999.
</bibliomixed>
<!-- ... -->
</bibliography>
</pre>
</div>
<p>When you create a bibliography in your document, simply
provide <span class="emphasis"><em>empty</em></span> <a href="http://docbook.org/tdg5/en/html/bibliomixed.html"><code class="sgmltag-element">bibliomixed</code></a>
entries for each document that you wish to cite. Make sure that these
elements have the same ID as the corresponding <span class="quote">“<span class="quote">real</span>”</span>
entry in your global bibliography.</p>
<p>For example:</p>
<div class="informalexample">
<pre class="programlisting"><bibliography><title>Bibliography</title>
<bibliomixed id="xml-rec"/>
<bibliomixed id="xml-names"/>
<bibliomixed id="DKnuth86">Donald E. Knuth. <citetitle>Computers and
Typesetting: Volume B, TeX: The Program</citetitle>. Addison-Wesley,
1986. ISBN 0-201-13437-3.
</bibliomixed>
<bibliomixed id="relaxng"/>
</bibliography></pre>
</div>
<p>Note that it's perfectly acceptable to mix entries from your
global bibliography with <span class="quote">“<span class="quote">normal</span>”</span> entries. You can use
<a href="http://docbook.org/tdg5/en/html/xref.html"><code class="sgmltag-element">xref</code></a> or other elements to cross-reference your
bibliography entries in exactly the same way you do now.</p>
<p>Finally, when you are ready to format your document, simply set the
<a href="../html/bibliography.collection.html"><em class="parameter"><code>bibliography.collection</code></em></a> parameter (in either a
customization layer or directly through your processor's interface) to
point to your global bibliography.</p>
<p>The stylesheets will format the bibliography in your document as if
all of the entries referenced appeared there literally.</p>
</div>
</div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="biblioentry.item.separator.html">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="biblio.html">Up</a></td><td width="40%" align="right"><a accesskey="n" href="bibliography.numbered.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">biblioentry.item.separator</td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top">bibliography.numbered</td></tr></table></div></body></html>
|