diff options
author | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-03-13 09:20:45 +0000 |
---|---|---|
committer | Pierre Labastie <pieere@linuxfromscratch.org> | 2020-03-13 09:20:45 +0000 |
commit | 2e524f93fc03353e6fb05333d8041505948959eb (patch) | |
tree | 0e2f8a60e47c994d49152b300f0d698a7eb29c4f /stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/bibliography.collection.xml | |
parent | cc98817b6165e5307c1fc38328cdc2a1cc2de257 (diff) |
Since LFS started using docbook-1.78.1, there is a lot of unused data
in the stylesheet directory. Basically, a whole docbook-stylesheet is
there, while we need only fo and xhtml (+ some common dirs). Each time
we checkout the repo, we have to download this whole thing, which is by
far the biggest part of the repo (~33 M). By removing unused cruft,
this could be down to ~12 M.
Of course, it would be even better to remove completely the stylesheets
and use host ones (repo size down to 2M). but let's do this first, it is
easier :)
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11778 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/bibliography.collection.xml')
-rw-r--r-- | stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/bibliography.collection.xml | 122 |
1 files changed, 0 insertions, 122 deletions
diff --git a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/bibliography.collection.xml b/stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/bibliography.collection.xml deleted file mode 100644 index 9245405e4..000000000 --- a/stylesheets/lfs-xsl/docbook-xsl-1.78.1/params/bibliography.collection.xml +++ /dev/null @@ -1,122 +0,0 @@ -<refentry xmlns="http://docbook.org/ns/docbook" - xmlns:xlink="http://www.w3.org/1999/xlink" - xmlns:xi="http://www.w3.org/2001/XInclude" - xmlns:src="http://nwalsh.com/xmlns/litprog/fragment" - xmlns:xsl="http://www.w3.org/1999/XSL/Transform" - version="5.0" xml:id="bibliography.collection"> -<refmeta> -<refentrytitle>bibliography.collection</refentrytitle> -<refmiscinfo class="other" otherclass="datatype">string</refmiscinfo> -</refmeta> -<refnamediv> -<refname>bibliography.collection</refname> -<refpurpose>Name of the bibliography collection file</refpurpose> -</refnamediv> - -<refsynopsisdiv> -<src:fragment xml:id="bibliography.collection.frag"> -<xsl:param name="bibliography.collection">http://docbook.sourceforge.net/release/bibliography/bibliography.xml</xsl:param> - -</src:fragment> -</refsynopsisdiv> - -<refsection><info><title>Description</title></info> - -<para>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 <quote>extract</quote> -the ones you need in each document.</para> - -<para>That's the purpose of the -<parameter>bibliography.collection</parameter> parameter. To setup a global -bibliography <quote>database</quote>, follow these steps:</para> - -<para>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 <tag>biblioentry</tag> or <tag>bibliomixed</tag>) -has an ID.</para> - -<para>My global bibliography, <filename>~/bibliography.xml</filename> begins -like this:</para> - -<informalexample> -<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> -</programlisting> -</informalexample> - -<para>When you create a bibliography in your document, simply -provide <emphasis>empty</emphasis> <tag>bibliomixed</tag> -entries for each document that you wish to cite. Make sure that these -elements have the same ID as the corresponding <quote>real</quote> -entry in your global bibliography.</para> - -<para>For example:</para> - -<informalexample> -<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></programlisting> -</informalexample> - -<para>Note that it's perfectly acceptable to mix entries from your -global bibliography with <quote>normal</quote> entries. You can use -<tag>xref</tag> or other elements to cross-reference your -bibliography entries in exactly the same way you do now.</para> - -<para>Finally, when you are ready to format your document, simply set the -<parameter>bibliography.collection</parameter> parameter (in either a -customization layer or directly through your processor's interface) to -point to your global bibliography.</para> - -<para>A relative path in the parameter is interpreted in one -of two ways:</para> -<orderedlist numeration="loweralpha"> - <listitem> - <para>If your document contains no links to empty bibliographic elements, - then the path is relative to the file containing - the first <tag>bibliomixed</tag> element in the document.</para> - </listitem> - <listitem> - <para>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.</para> - </listitem> -</orderedlist> -<para>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.</para> - -<para>The stylesheets will format the bibliography in your document as if -all of the entries referenced appeared there literally.</para> - -</refsection> -</refentry> |