mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-31 20:42:34 +08:00
50d3491acf
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2320 af4574ff-66df-0310-9fd7-8a98e5e911e0
135 lines
5.3 KiB
XML
135 lines
5.3 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 sgml-dtd-3-download-http "http://www.docbook.org/sgml/3.1/docbk31.zip">
|
|
<!ENTITY sgml-dtd-3-download-ftp "ftp://ftp.rutgers.edu/pub/kde/devel/docbook/SOURCES/docbk31.zip">
|
|
<!ENTITY sgml-dtd-3-size "60 KB">
|
|
<!ENTITY sgml-dtd-3-buildsize "336 KB">
|
|
<!ENTITY sgml-dtd-3-time "0.01 SBU">
|
|
]>
|
|
|
|
<sect1 id="sgml-dtd-3" xreflabel="DocBook SGML DTD-&sgml-dtd-3-version;">
|
|
<?dbhtml filename="sgml-dtd-3.html"?>
|
|
<title>DocBook SGML DTD-&sgml-dtd-3-version;</title>
|
|
|
|
<sect2>
|
|
<title>Introduction to <application>DocBook <acronym>SGML</acronym> <acronym>DTD</acronym></application></title>
|
|
|
|
<para>The <application>DocBook <acronym>SGML</acronym> <acronym>DTD</acronym></application> package contains document type definitions for verification of
|
|
<acronym>SGML</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="&sgml-dtd-3-download-http;"/></para></listitem>
|
|
<listitem><para>Download (FTP): <ulink
|
|
url="&sgml-dtd-3-download-ftp;"/></para></listitem>
|
|
<listitem><para>Download size: &sgml-dtd-3-size;</para></listitem>
|
|
<listitem><para>Estimated Disk space required:
|
|
&sgml-dtd-3-buildsize;</para></listitem>
|
|
<listitem><para>Estimated build time:
|
|
&sgml-dtd-3-time;</para></listitem></itemizedlist>
|
|
</sect3>
|
|
|
|
<sect3><title><application>DocBook <acronym>SGML</acronym> <acronym>DTD</acronym></application> dependencies</title>
|
|
<sect4><title>Required</title>
|
|
<para><xref linkend="sgml-common"/></para></sect4>
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Installation of <application>DocBook <acronym>SGML</acronym> <acronym>DTD</acronym></application></title>
|
|
|
|
<para>Install <application>DocBook <acronym>SGML</acronym> <acronym>DTD</acronym></application> by running the following commands:</para>
|
|
|
|
<screen><userinput><command>cp docbook.cat docbook.cat.orig &&
|
|
sed -e '/ISO 8879/d' docbook.cat.orig > docbook.cat &&
|
|
cp docbook.cat docbook.cat.orig &&
|
|
sed -e '/gml/d' docbook.cat.orig > docbook.cat &&
|
|
cp docbook.cat docbook.cat.orig &&
|
|
sed -e 's|DTDDECL "-//OASIS//DTD DocBook V&sgml-dtd-3-version;//EN"|SGMLDECL|g' \
|
|
docbook.cat.orig > docbook.cat &&
|
|
install -d /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version; &&
|
|
chown -R root:root . &&
|
|
chmod -R 755 . &&
|
|
install docbook.cat /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version;/catalog &&
|
|
cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version; &&
|
|
install-catalog --add /etc/sgml/sgml-docbook-dtd-&sgml-dtd-3-version;.cat \
|
|
/usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version;/catalog &&
|
|
install-catalog --add /etc/sgml/sgml-docbook-dtd-&sgml-dtd-3-version;.cat \
|
|
/etc/sgml/sgml-docbook.cat</command></userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Command explanations</title>
|
|
|
|
<para><screen><command>cp docbook.cat docbook.cat.orig
|
|
sed -e '/ISO 8879/d' docbook.cat.orig > docbook.cat
|
|
cp docbook.cat docbook.cat.orig
|
|
sed -e '/gml/d' docbook.cat.orig > docbook.cat</command></screen>
|
|
These commands remove the ENT definitions from the catalog file.</para>
|
|
|
|
<para><screen><command>cp docbook.cat docbook.cat.orig
|
|
sed -e 's|DTDDECL "-//OASIS//DTD Docbook V&sgml-dtd-3-version;//EN"|SGMLDECL|g' \
|
|
docbook.cat.orig > docbook.cat</command></screen>
|
|
This command replaces the DTDDECL catalog entry, which is not supported
|
|
by Linux <acronym>SGML</acronym> tools, with the SGMLDECL catalog entry.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Configuring <application>DocBook <acronym>SGML</acronym> <acronym>DTD</acronym></application></title>
|
|
|
|
<sect3><title>Config files</title>
|
|
<para><filename>/etc/sgml/catalog</filename></para>
|
|
</sect3>
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
<para>The above installation script updates the catalog.</para>
|
|
|
|
<para>Using only the most current 3.x version of
|
|
<application>DocBook <acronym>SGML</acronym> <acronym>DTD</acronym></application> requires the following:</para>
|
|
<screen><userinput><command>cat >> /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version;/catalog << "EOF"</command>
|
|
-- Begin Single Major Version catalog changes --
|
|
|
|
PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "docbook.dtd"
|
|
|
|
-- End Single Major Version catalog changes --
|
|
<command>EOF</command></userinput></screen>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2>
|
|
<title>Contents</title>
|
|
|
|
<para>The <application>DocBook <acronym>SGML</acronym> <acronym>DTD</acronym></application> package contains <filename>DTD</filename> files and
|
|
<filename>MOD</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 <acronym>SGML</acronym> 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>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|
|
|