Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > 6e019a662639ac6470f50dea3a4d8157 > files > 70

docbook-style-xsl-doc-1.79.2-4.mga7.noarch.rpm

<html><head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <title>bibliography.collection</title><link rel="stylesheet" type="text/css" href="../reference.css"><meta name="generator" content="DocBook XSL Stylesheets V1.79.2"><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: Reference&nbsp;Documentation"><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>&nbsp;</td><th width="60%" align="center">Bibliography</th><td width="20%" align="right">&nbsp;<a accesskey="n" href="bibliography.numbered.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="bibliography.collection"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">bibliography.collection</span></h2><p>bibliography.collection &#8212; Name of the bibliography collection file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><a name="bibliography.collection.frag"></a><pre class="programlisting">
&lt;xsl:param name="bibliography.collection"&gt;http://cdn.docbook.org/release/xsl/bibliography/bibliography.xml&lt;/xsl:param&gt;

</pre></div><div class="refsection"><a name="d0e16606"></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">&#8220;<span class="quote">extract</span>&#8221;</span>
the ones you need in each document.</p><p>That's the purpose of the
<em class="parameter"><code>bibliography.collection</code></em> parameter. To setup a global
bibliography <span class="quote">&#8220;<span class="quote">database</span>&#8221;</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 <code class="sgmltag-element">biblioentry</code> or <code class="sgmltag-element">bibliomixed</code>)
has an ID.</p><p>My global bibliography, <code class="filename">~/bibliography.xml</code> begins
like this:</p><div class="informalexample"><pre class="programlisting">&lt;!DOCTYPE bibliography
  PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"&gt;
&lt;bibliography&gt;&lt;title&gt;References&lt;/title&gt;

&lt;bibliomixed id="xml-rec"&gt;&lt;abbrev&gt;XML 1.0&lt;/abbrev&gt;Tim Bray,
Jean Paoli, C. M. Sperberg-McQueen, and Eve Maler, editors.
&lt;citetitle&gt;&lt;ulink url="http://www.w3.org/TR/REC-xml"&gt;Extensible Markup
Language (XML) 1.0 Second Edition&lt;/ulink&gt;&lt;/citetitle&gt;.
World Wide Web Consortium, 2000.
&lt;/bibliomixed&gt;

&lt;bibliomixed id="xml-names"&gt;&lt;abbrev&gt;Namespaces&lt;/abbrev&gt;Tim Bray,
Dave Hollander,
and Andrew Layman, editors.
&lt;citetitle&gt;&lt;ulink url="http://www.w3.org/TR/REC-xml-names/"&gt;Namespaces in
XML&lt;/ulink&gt;&lt;/citetitle&gt;.
World Wide Web Consortium, 1999.
&lt;/bibliomixed&gt;

&lt;!-- ... --&gt;
&lt;/bibliography&gt;
</pre></div><p>When you create a bibliography in your document, simply
provide <span class="emphasis"><em>empty</em></span> <code class="sgmltag-element">bibliomixed</code>
entries for each document that you wish to cite. Make sure that these
elements have the same ID as the corresponding <span class="quote">&#8220;<span class="quote">real</span>&#8221;</span>
entry in your global bibliography.</p><p>For example:</p><div class="informalexample"><pre class="programlisting">&lt;bibliography&gt;&lt;title&gt;Bibliography&lt;/title&gt;

&lt;bibliomixed id="xml-rec"/&gt;
&lt;bibliomixed id="xml-names"/&gt;
&lt;bibliomixed id="DKnuth86"&gt;Donald E. Knuth. &lt;citetitle&gt;Computers and
Typesetting: Volume B, TeX: The Program&lt;/citetitle&gt;. Addison-Wesley,
1986.  ISBN 0-201-13437-3.
&lt;/bibliomixed&gt;
&lt;bibliomixed id="relaxng"/&gt;

&lt;/bibliography&gt;</pre></div><p>Note that it's perfectly acceptable to mix entries from your
global bibliography with <span class="quote">&#8220;<span class="quote">normal</span>&#8221;</span> entries. You can use
<code class="sgmltag-element">xref</code> 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
<em class="parameter"><code>bibliography.collection</code></em> parameter (in either a
customization layer or directly through your processor's interface) to
point to your global bibliography.</p><p>A relative path in the parameter is interpreted in one
of two ways:</p><div class="orderedlist"><ol class="orderedlist" type="a"><li class="listitem"><p>If your document contains no links to empty bibliographic elements,
    then the path is relative to the file containing
    the first <code class="sgmltag-element">bibliomixed</code> element in the document.</p></li><li class="listitem"><p>If your document does contain links to empty bibliographic elements,
    then the path is relative to the file containing
    the first such link element in the document.</p></li></ol></div><p>Once the collection file is opened by the first instance described
above, it stays open for the current document
and the relative path is not reinterpreted again.</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>&nbsp;</td><td width="20%" align="center"><a accesskey="u" href="biblio.html">Up</a></td><td width="40%" align="right">&nbsp;<a accesskey="n" href="bibliography.numbered.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">biblioentry.item.separator&nbsp;</td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top">&nbsp;bibliography.numbered</td></tr></table></div></body></html>