mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-24 23:32:12 +08:00
f89fc455b9
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@15909 af4574ff-66df-0310-9fd7-8a98e5e911e0
203 lines
6.9 KiB
XML
203 lines
6.9 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY sgml-dtd-3-download-http "http://www.docbook.org/sgml/&sgml-dtd-3-version;/docbk31.zip">
|
|
<!ENTITY sgml-dtd-3-download-ftp "ftp://ftp.kde.org/pub/kde/devel/docbook/SOURCES/docbk31.zip">
|
|
<!ENTITY sgml-dtd-3-md5sum "432749c0c806dbae81c8bcb70da3b5d3">
|
|
<!ENTITY sgml-dtd-3-size "55 KB">
|
|
<!ENTITY sgml-dtd-3-buildsize "676 KB">
|
|
<!ENTITY sgml-dtd-3-time "0.01 SBU">
|
|
]>
|
|
|
|
<sect1 id="sgml-dtd-3" xreflabel="docbook-&sgml-dtd-3-version;">
|
|
<?dbhtml filename="sgml-dtd-3.html"?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>docbook-&sgml-dtd-3-version;</title>
|
|
|
|
<indexterm zone="sgml-dtd-3">
|
|
<primary sortas="a-DocBook-SGML-DTD-&sgml-dtd-3-version;">DocBook SGML
|
|
DTD-&sgml-dtd-3-version;</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to DocBook SGML DTD</title>
|
|
|
|
<para>The <application>DocBook SGML DTD</application> package contains
|
|
document type definitions for verification of SGML 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>
|
|
|
|
&lfs77_checked; &gcc5_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<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 MD5 sum: &sgml-dtd-3-md5sum;</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>
|
|
|
|
<bridgehead renderas="sect3">DocBook SGML DTD Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required"><xref linkend="sgml-common"/> and
|
|
<xref linkend="unzip"/></para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/sgml-dtd-3"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of DocBook SGML DTD</title>
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
href="../../xincludes/use-unzip.xml"/>
|
|
|
|
<para>Install <application>DocBook SGML DTD</application> by running
|
|
the following commands:</para>
|
|
|
|
<screen><userinput>sed -i -e '/ISO 8879/d' \
|
|
-e 's|DTDDECL "-//OASIS//DTD DocBook V&sgml-dtd-3-version;//EN"|SGMLDECL|g' \
|
|
docbook.cat</userinput></screen>
|
|
|
|
<para>This package does not come with a test suite.</para>
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
<screen role="root"><userinput>install -v -d -m755 /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version; &&
|
|
chown -R root:root . &&
|
|
install -v docbook.cat /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version;/catalog &&
|
|
cp -v -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</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para><command>sed -i -e '/ISO 8879/d' docbook.cat</command>: This command
|
|
removes the ENT definitions from the catalog file.</para>
|
|
|
|
<para><command>sed -i -e 's|DTDDECL
|
|
"-//OASIS//DTD Docbook V&sgml-dtd-3-version;//EN"|SGMLDECL|g'
|
|
docbook.cat</command>: This command replaces the DTDDECL catalog entry,
|
|
which is not supported by Linux SGML tools, with the SGMLDECL catalog
|
|
entry.</para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="configuration">
|
|
<title>Configuring DocBook SGML DTD</title>
|
|
|
|
<sect3 id="sgml-dtd-3-config">
|
|
<title>Config Files</title>
|
|
|
|
<para><filename>/etc/sgml/catalog</filename></para>
|
|
|
|
<indexterm zone="sgml-dtd-3 sgml-dtd-3-config">
|
|
<primary sortas="e-etc-sgml-catalog">/etc/sgml/catalog</primary>
|
|
</indexterm>
|
|
|
|
</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
|
|
SGML DTD</application> requires the following (perform as the
|
|
<systemitem class="username">root</systemitem> user):</para>
|
|
|
|
<screen role="root"><userinput>cat >> /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version;/catalog << "EOF"
|
|
<literal> -- Begin Single Major Version catalog changes --
|
|
|
|
PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "docbook.dtd"
|
|
|
|
-- End Single Major Version catalog changes --</literal>
|
|
EOF</userinput></screen>
|
|
|
|
</sect3>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Programs</segtitle>
|
|
<segtitle>Installed Libraries</segtitle>
|
|
<segtitle>Installed Files</segtitle>
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>None</seg>
|
|
<seg>None</seg>
|
|
<seg>SGML DTD and MOD files</seg>
|
|
<seg>/usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version;</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="SGML-DTD-files">
|
|
<term><filename>SGML DTD files</filename></term>
|
|
<listitem>
|
|
<para>contain a document type definition which defines the element
|
|
types and the attribute lists that can be used in the corresponding
|
|
SGML files.</para>
|
|
<indexterm zone="sgml-dtd-3 SGML-DTD-files">
|
|
<primary sortas="g-SGML-DTD-files">SGML DTD files</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="SGML-MOD-files">
|
|
<term><filename>SGML MOD files</filename></term>
|
|
<listitem>
|
|
<para>contain components of the document type definition that are
|
|
sourced into the <filename>DTD</filename> files.</para>
|
|
<indexterm zone="sgml-dtd-3 SGML-MOD-files">
|
|
<primary sortas="g-SGML-MOD-files">SGML MOD files</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|