glfs/pst/xml/docbook.xml
Randy McMurchy c2a37a636d Added md5sums to Chapter 42-44 package instructions
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3474 af4574ff-66df-0310-9fd7-8a98e5e911e0
2005-02-16 00:43:57 +00:00

203 lines
8.5 KiB
XML

<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY DocBook-download-http "http://www.docbook.org/xml/4.3/docbook-xml-&DocBook-version;.zip">
<!ENTITY DocBook-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/docbook-xml-&DocBook-version;.zip">
<!ENTITY DocBook-md5sum "ab200202b9e136a144db1e0864c45074">
<!ENTITY DocBook-size "83 KB">
<!ENTITY DocBook-buildsize "482 KB">
<!ENTITY DocBook-time "0.01 SBU">
]>
<sect1 id="DocBook" xreflabel="DocBook XML DTD-&DocBook-version;">
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<?dbhtml filename="DocBook.html"?>
<title>DocBook XML DTD-&DocBook-version;</title>
<sect2>
<title>Introduction to <application>DocBook <acronym>XML</acronym>
<acronym>DTD</acronym></application></title>
<para>The <application>DocBook <acronym>XML</acronym>
<acronym>DTD</acronym></application>-&DocBook-version; package contains
document type definitions for verification of <acronym>XML</acronym> data
files against the DocBook rule set. These are useful for structuring books
and software documentation to a standard allowing you to utilize
transformations already written for that standard.</para>
<sect3><title>Package information</title>
<itemizedlist spacing='compact'>
<listitem><para>Download (HTTP):
<ulink url="&DocBook-download-http;"/></para></listitem>
<listitem><para>Download (FTP):
<ulink url="&DocBook-download-ftp;"/></para></listitem>
<listitem><para>Download MD5 sum: &DocBook-md5sum;</para></listitem>
<listitem><para>Download size: &DocBook-size;</para></listitem>
<listitem><para>Estimated disk space required:
&DocBook-buildsize;</para></listitem>
<listitem><para>Estimated build time:
&DocBook-time;</para></listitem></itemizedlist>
</sect3>
<sect3><title><application>DocBook <acronym>XML</acronym>
<acronym>DTD</acronym></application> &DocBook-version; dependencies</title>
<sect4><title>Required</title>
<para><xref linkend="libxml2"/> and <xref linkend="unzip"/></para>
</sect4>
</sect3>
</sect2>
<sect2>
<title>Installation of <application>DocBook <acronym>XML</acronym>
<acronym>DTD</acronym></application></title>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../use-unzip.xml"/>
<para>Install <application>DocBook <acronym>XML</acronym>
<acronym>DTD</acronym></application> by running the following commands:</para>
<screen><userinput><command>install -d /usr/share/xml/docbook/xml-dtd-&DocBook-version; &amp;&amp;
chown -R root:root . &amp;&amp;
cp -af docbook.cat *.dtd ent/ *.mod \
/usr/share/xml/docbook/xml-dtd-&DocBook-version; &amp;&amp;
if [ ! -e /etc/xml/catalog ]; then mkdir -p /etc/xml; xmlcatalog \
--noout --create /etc/xml/catalog; fi &amp;&amp;
if [ ! -e /etc/xml/docbook ]; then xmlcatalog --noout --create \
/etc/xml/docbook; fi &amp;&amp;
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Information Pool V&DocBook-version;//EN" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbpoolx.mod" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V&DocBook-version;//EN" \
"http://www.oasis-open.org/docbook/xml/&DocBook-version;/docbookx.dtd" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Character Entities V&DocBook-version;//EN" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbcentx.mod" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Notations V&DocBook-version;//EN" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbnotnx.mod" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
"-//OASIS//ENTITIES DocBook XML Additional General Entities V&DocBook-version;//EN" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbgenent.mod" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
"-//OASIS//ELEMENTS DocBook XML Document Hierarchy V&DocBook-version;//EN" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbhierx.mod" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
"-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/soextblx.dtd" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML CALS Table Model V&DocBook-version;//EN" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/calstblx.dtd" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/&DocBook-version;" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/&DocBook-version;" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//ENTITIES DocBook XML" \
"file:///etc/xml/docbook" /etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "delegatePublic" \
"-//OASIS//DTD DocBook XML" \
"file:///etc/xml/docbook" /etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "delegateSystem" \
"http://www.oasis-open.org/docbook/" \
"file:///etc/xml/docbook" /etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "delegateURI" \
"http://www.oasis-open.org/docbook/" \
"file:///etc/xml/docbook" /etc/xml/catalog</command></userinput></screen>
</sect2>
<sect2>
<title>Configuring <application>DocBook <acronym>XML</acronym>
<acronym>DTD</acronym></application></title>
<sect3 id="docbook-config"><title>Config files</title>
<para><filename>/etc/xml/catalog</filename>,
<filename>/etc/xml/docbook</filename></para>
<indexterm zone="DocBook docbook-config"><primary
sortas="e-etc-xml-docbook">/etc/xml/docbook</primary></indexterm>
<indexterm zone="DocBook docbook-config"><primary
sortas="e-etc-xml-catalog">/etc/xml/catalog</primary></indexterm>
</sect3>
<sect3><title>Configuration Information</title>
<para>The above installation script creates the files and updates the catalog.
In order to install <application>ScrollKeeper</application> or to utilize
<application>DocBook <acronym>XML</acronym>
<acronym>DTD</acronym></application> V&DocBook-version; when any version 4 is
requested in the System Identifier, make the following entry:</para>
<screen><userinput><command>xmlcatalog --noout --add "public" \
"-//OASIS//DTD DocBook XML V4.1.2//EN" \
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "delegateSystem" \
"http://www.oasis-open.org/docbook/xml/4.1.2/" \
"file:///etc/xml/docbook" /etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "delegateURI" \
"http://www.oasis-open.org/docbook/xml/4.1.2/" \
"file:///etc/xml/docbook" /etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "rewriteSystem" \
"http://www.oasis-open.org/docbook/xml/4.1.2" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.1.2" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
/etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "rewriteURI" \
"http://www.oasis-open.org/docbook/xml/4.2" \
"file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
/etc/xml/docbook</command></userinput></screen>
</sect3>
</sect2>
<sect2>
<title>Contents</title>
<para>The <application>DocBook <acronym>XML</acronym>
<acronym>DTD</acronym></application> package contains <filename>DTD</filename>
files, <filename>MOD</filename> files and <filename>ENT</filename> files.</para>
</sect2>
<sect2><title>Description</title>
<sect3><title>DTD files</title>
<para><filename>DTD</filename> files contain a document type definition which
defines the element types and the attribute lists that can be used in the
corresponding <filename>XML</filename> files.</para></sect3>
<sect3><title>MOD files</title>
<para><filename>MOD</filename> files contain components of the document type
definition that are sourced into the <filename>DTD</filename> files.</para>
</sect3>
<sect3><title>ENT files</title>
<para><filename>ENT</filename> files contain lists of named character entities
allowed in <acronym>HTML</acronym>.</para></sect3>
</sect2>
</sect1>