source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/bibliography.collection.xml@ 4d4915a

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 4d4915a was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.8 KB
Line 
1<refentry xmlns="http://docbook.org/ns/docbook"
2 xmlns:xlink="http://www.w3.org/1999/xlink"
3 xmlns:xi="http://www.w3.org/2001/XInclude"
4 xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 version="5.0" xml:id="bibliography.collection">
7<refmeta>
8<refentrytitle>bibliography.collection</refentrytitle>
9<refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
10</refmeta>
11<refnamediv>
12<refname>bibliography.collection</refname>
13<refpurpose>Name of the bibliography collection file</refpurpose>
14</refnamediv>
15
16<refsynopsisdiv>
17<src:fragment xml:id="bibliography.collection.frag">
18<xsl:param name="bibliography.collection">http://docbook.sourceforge.net/release/bibliography/bibliography.xml</xsl:param>
19
20</src:fragment>
21</refsynopsisdiv>
22
23<refsection><info><title>Description</title></info>
24
25<para>Maintaining bibliography entries across a set of documents is tedious, time
26consuming, and error prone. It makes much more sense, usually, to store all of
27the bibliography entries in a single place and simply <quote>extract</quote>
28the ones you need in each document.</para>
29
30<para>That's the purpose of the
31<parameter>bibliography.collection</parameter> parameter. To setup a global
32bibliography <quote>database</quote>, follow these steps:</para>
33
34<para>First, create a stand-alone bibliography document that contains all of
35the documents that you wish to reference. Make sure that each bibliography
36entry (whether you use <tag>biblioentry</tag> or <tag>bibliomixed</tag>)
37has an ID.</para>
38
39<para>My global bibliography, <filename>~/bibliography.xml</filename> begins
40like this:</para>
41
42<informalexample>
43<programlisting>&lt;!DOCTYPE bibliography
44 PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
45 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"&gt;
46&lt;bibliography&gt;&lt;title&gt;References&lt;/title&gt;
47
48&lt;bibliomixed id="xml-rec"&gt;&lt;abbrev&gt;XML 1.0&lt;/abbrev&gt;Tim Bray,
49Jean Paoli, C. M. Sperberg-McQueen, and Eve Maler, editors.
50&lt;citetitle&gt;&lt;ulink url="http://www.w3.org/TR/REC-xml"&gt;Extensible Markup
51Language (XML) 1.0 Second Edition&lt;/ulink&gt;&lt;/citetitle&gt;.
52World Wide Web Consortium, 2000.
53&lt;/bibliomixed&gt;
54
55&lt;bibliomixed id="xml-names"&gt;&lt;abbrev&gt;Namespaces&lt;/abbrev&gt;Tim Bray,
56Dave Hollander,
57and Andrew Layman, editors.
58&lt;citetitle&gt;&lt;ulink url="http://www.w3.org/TR/REC-xml-names/"&gt;Namespaces in
59XML&lt;/ulink&gt;&lt;/citetitle&gt;.
60World Wide Web Consortium, 1999.
61&lt;/bibliomixed&gt;
62
63&lt;!-- ... --&gt;
64&lt;/bibliography&gt;
65</programlisting>
66</informalexample>
67
68<para>When you create a bibliography in your document, simply
69provide <emphasis>empty</emphasis> <tag>bibliomixed</tag>
70entries for each document that you wish to cite. Make sure that these
71elements have the same ID as the corresponding <quote>real</quote>
72entry in your global bibliography.</para>
73
74<para>For example:</para>
75
76<informalexample>
77<programlisting>&lt;bibliography&gt;&lt;title&gt;Bibliography&lt;/title&gt;
78
79&lt;bibliomixed id="xml-rec"/&gt;
80&lt;bibliomixed id="xml-names"/&gt;
81&lt;bibliomixed id="DKnuth86"&gt;Donald E. Knuth. &lt;citetitle&gt;Computers and
82Typesetting: Volume B, TeX: The Program&lt;/citetitle&gt;. Addison-Wesley,
831986. ISBN 0-201-13437-3.
84&lt;/bibliomixed&gt;
85&lt;bibliomixed id="relaxng"/&gt;
86
87&lt;/bibliography&gt;</programlisting>
88</informalexample>
89
90<para>Note that it's perfectly acceptable to mix entries from your
91global bibliography with <quote>normal</quote> entries. You can use
92<tag>xref</tag> or other elements to cross-reference your
93bibliography entries in exactly the same way you do now.</para>
94
95<para>Finally, when you are ready to format your document, simply set the
96<parameter>bibliography.collection</parameter> parameter (in either a
97customization layer or directly through your processor's interface) to
98point to your global bibliography.</para>
99
100<para>A relative path in the parameter is interpreted in one
101of two ways:</para>
102<orderedlist numeration="loweralpha">
103 <listitem>
104 <para>If your document contains no links to empty bibliographic elements,
105 then the path is relative to the file containing
106 the first <tag>bibliomixed</tag> element in the document.</para>
107 </listitem>
108 <listitem>
109 <para>If your document does contain links to empty bibliographic elements,
110 then the path is relative to the file containing
111 the first such link element in the document.</para>
112 </listitem>
113</orderedlist>
114<para>Once the collection file is opened by the first instance described
115above, it stays open for the current document
116and the relative path is not reinterpreted again.</para>
117
118<para>The stylesheets will format the bibliography in your document as if
119all of the entries referenced appeared there literally.</para>
120
121</refsection>
122</refentry>
Note: See TracBrowser for help on using the repository browser.