[50d3491a] | 1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 2 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 4 | %general-entities;
|
---|
[b650556] | 5 |
|
---|
[50d3491a] | 6 | <!ENTITY sgml-dtd-3-download-http "http://www.docbook.org/sgml/3.1/docbk31.zip">
|
---|
[cb6de2e] | 7 | <!ENTITY sgml-dtd-3-download-ftp "ftp://ftp.kde.org/pub/kde/devel/docbook/SOURCES/docbk31.zip">
|
---|
[50d3491a] | 8 | <!ENTITY sgml-dtd-3-size "60 KB">
|
---|
| 9 | <!ENTITY sgml-dtd-3-buildsize "336 KB">
|
---|
| 10 | <!ENTITY sgml-dtd-3-time "0.01 SBU">
|
---|
| 11 | ]>
|
---|
| 12 |
|
---|
[b028890] | 13 | <sect1 id="sgml-dtd-3" xreflabel="DocBook SGML DTD-&sgml-dtd-3-version;">
|
---|
[a0f03b0] | 14 | <sect1info>
|
---|
[5cd0959d] | 15 | <othername>$LastChangedBy$</othername>
|
---|
| 16 | <date>$Date$</date>
|
---|
[a0f03b0] | 17 | </sect1info>
|
---|
[dd3f20f0] | 18 | <?dbhtml filename="sgml-dtd-3.html"?>
|
---|
[b028890] | 19 | <title>DocBook SGML DTD-&sgml-dtd-3-version;</title>
|
---|
[fc1d0ba7] | 20 |
|
---|
[50d3491a] | 21 | <sect2>
|
---|
[cb6de2e] | 22 | <title>Introduction to <application>DocBook <acronym>SGML</acronym>
|
---|
| 23 | <acronym>DTD</acronym></application></title>
|
---|
| 24 |
|
---|
| 25 | <para>The <application>DocBook <acronym>SGML</acronym>
|
---|
| 26 | <acronym>DTD</acronym></application> package contains document type definitions
|
---|
| 27 | for verification of <acronym>SGML</acronym> data files against the DocBook rule
|
---|
| 28 | set. These are useful for structuring books and software documentation to a
|
---|
| 29 | standard allowing you to utilize transformations already written for that
|
---|
[50d3491a] | 30 | standard.</para>
|
---|
| 31 |
|
---|
| 32 | <sect3><title>Package information</title>
|
---|
| 33 | <itemizedlist spacing='compact'>
|
---|
| 34 | <listitem><para>Download (HTTP): <ulink
|
---|
| 35 | url="&sgml-dtd-3-download-http;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download (FTP): <ulink
|
---|
| 37 | url="&sgml-dtd-3-download-ftp;"/></para></listitem>
|
---|
| 38 | <listitem><para>Download size: &sgml-dtd-3-size;</para></listitem>
|
---|
[518538f] | 39 | <listitem><para>Estimated disk space required:
|
---|
[50d3491a] | 40 | &sgml-dtd-3-buildsize;</para></listitem>
|
---|
| 41 | <listitem><para>Estimated build time:
|
---|
| 42 | &sgml-dtd-3-time;</para></listitem></itemizedlist>
|
---|
| 43 | </sect3>
|
---|
| 44 |
|
---|
[cb6de2e] | 45 | <sect3><title><application>DocBook <acronym>SGML</acronym>
|
---|
| 46 | <acronym>DTD</acronym></application> dependencies</title>
|
---|
[50d3491a] | 47 | <sect4><title>Required</title>
|
---|
[b650556] | 48 | <para><xref linkend="sgml-common"/> and <xref linkend="unzip"/></para>
|
---|
| 49 | </sect4>
|
---|
[50d3491a] | 50 | </sect3>
|
---|
| 51 |
|
---|
| 52 | </sect2>
|
---|
| 53 |
|
---|
| 54 | <sect2>
|
---|
[cb6de2e] | 55 | <title>Installation of <application>DocBook <acronym>SGML</acronym>
|
---|
| 56 | <acronym>DTD</acronym></application></title>
|
---|
| 57 |
|
---|
| 58 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../use-unzip.xml"/>
|
---|
[50d3491a] | 59 |
|
---|
[cb6de2e] | 60 | <para>Install <application>DocBook <acronym>SGML</acronym>
|
---|
| 61 | <acronym>DTD</acronym></application> by running the following commands:</para>
|
---|
[50d3491a] | 62 |
|
---|
[b650556] | 63 | <screen><userinput><command>sed -i -e '/ISO 8879/d' \
|
---|
| 64 | -e 's|DTDDECL "-//OASIS//DTD DocBook V&sgml-dtd-3-version;//EN"|SGMLDECL|g' \
|
---|
[cb6de2e] | 65 | docbook.cat &&
|
---|
[50d3491a] | 66 | install -d /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version; &&
|
---|
| 67 | chown -R root:root . &&
|
---|
| 68 | install docbook.cat /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version;/catalog &&
|
---|
| 69 | cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version; &&
|
---|
| 70 | install-catalog --add /etc/sgml/sgml-docbook-dtd-&sgml-dtd-3-version;.cat \
|
---|
| 71 | /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version;/catalog &&
|
---|
| 72 | install-catalog --add /etc/sgml/sgml-docbook-dtd-&sgml-dtd-3-version;.cat \
|
---|
| 73 | /etc/sgml/sgml-docbook.cat</command></userinput></screen>
|
---|
| 74 |
|
---|
| 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2>
|
---|
| 78 | <title>Command explanations</title>
|
---|
| 79 |
|
---|
[cb6de2e] | 80 | <para><command>sed -i -e '/ISO 8879/d' docbook.cat</command>: This command
|
---|
| 81 | removes the ENT definitions from the catalog file.</para>
|
---|
[50d3491a] | 82 |
|
---|
[cb6de2e] | 83 | <para><command>sed -i -e 's|DTDDECL "-//OASIS//DTD Docbook V&sgml-dtd-3-version;//EN"|SGMLDECL|g'
|
---|
| 84 | docbook.cat</command>: This command replaces the DTDDECL catalog entry,
|
---|
| 85 | which is not supported by Linux <acronym>SGML</acronym> tools, with the
|
---|
| 86 | SGMLDECL catalog entry.</para>
|
---|
[50d3491a] | 87 |
|
---|
| 88 | </sect2>
|
---|
| 89 |
|
---|
| 90 | <sect2>
|
---|
[cb6de2e] | 91 | <title>Configuring <application>DocBook <acronym>SGML</acronym>
|
---|
| 92 | <acronym>DTD</acronym></application></title>
|
---|
[50d3491a] | 93 |
|
---|
| 94 | <sect3><title>Config files</title>
|
---|
| 95 | <para><filename>/etc/sgml/catalog</filename></para>
|
---|
| 96 | </sect3>
|
---|
| 97 |
|
---|
| 98 | <sect3><title>Configuration Information</title>
|
---|
| 99 |
|
---|
| 100 | <para>The above installation script updates the catalog.</para>
|
---|
| 101 |
|
---|
[cb6de2e] | 102 | <para>Using only the most current 3.x version of <application>DocBook
|
---|
| 103 | <acronym>SGML</acronym> <acronym>DTD</acronym></application> requires the
|
---|
| 104 | following:</para>
|
---|
[b650556] | 105 |
|
---|
[50d3491a] | 106 | <screen><userinput><command>cat >> /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-3-version;/catalog << "EOF"</command>
|
---|
| 107 | -- Begin Single Major Version catalog changes --
|
---|
| 108 |
|
---|
| 109 | PUBLIC "-//Davenport//DTD DocBook V3.0//EN" "docbook.dtd"
|
---|
| 110 |
|
---|
| 111 | -- End Single Major Version catalog changes --
|
---|
| 112 | <command>EOF</command></userinput></screen>
|
---|
| 113 |
|
---|
| 114 | </sect3>
|
---|
| 115 |
|
---|
| 116 | </sect2>
|
---|
| 117 |
|
---|
| 118 | <sect2>
|
---|
| 119 | <title>Contents</title>
|
---|
| 120 |
|
---|
[cb6de2e] | 121 | <para>The <application>DocBook <acronym>SGML</acronym>
|
---|
| 122 | <acronym>DTD</acronym></application> package contains <filename>DTD</filename>
|
---|
| 123 | files and <filename>MOD</filename> files.</para>
|
---|
[50d3491a] | 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2><title>Description</title>
|
---|
| 128 |
|
---|
| 129 | <sect3><title>DTD files</title>
|
---|
| 130 | <para><filename>DTD</filename> files contain a document type definition which
|
---|
| 131 | defines the element types and the attribute lists that can be used in the
|
---|
| 132 | corresponding <acronym>SGML</acronym> files.</para></sect3>
|
---|
| 133 |
|
---|
| 134 | <sect3><title>MOD files</title>
|
---|
| 135 | <para><filename>MOD</filename> files contain components of the document type
|
---|
[cb6de2e] | 136 | definition that are sourced into the <filename>DTD</filename> files.</para>
|
---|
| 137 | </sect3>
|
---|
[50d3491a] | 138 |
|
---|
| 139 | </sect2>
|
---|
[fc1d0ba7] | 140 |
|
---|
| 141 | </sect1>
|
---|
| 142 |
|
---|