[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;
|
---|
[cb6de2e] | 5 |
|
---|
[50d3491a] | 6 | <!ENTITY sgml-dtd-download-http "http://www.docbook.org/sgml/4.3/docbook-&sgml-dtd-version;.zip">
|
---|
| 7 | <!ENTITY sgml-dtd-download-ftp " ">
|
---|
| 8 | <!ENTITY sgml-dtd-size "76 KB">
|
---|
| 9 | <!ENTITY sgml-dtd-buildsize "389 KB">
|
---|
| 10 | <!ENTITY sgml-dtd-time "0.01 SBU">
|
---|
| 11 | ]>
|
---|
| 12 |
|
---|
[b028890] | 13 | <sect1 id="sgml-dtd" xreflabel="DocBook SGML DTD-&sgml-dtd-version;">
|
---|
[a0f03b0] | 14 | <sect1info>
|
---|
[5cd0959d] | 15 | <othername>$LastChangedBy$</othername>
|
---|
| 16 | <date>$Date$</date>
|
---|
[a0f03b0] | 17 | </sect1info>
|
---|
[dd3f20f0] | 18 | <?dbhtml filename="sgml-dtd.html"?>
|
---|
[b028890] | 19 | <title>DocBook SGML DTD-&sgml-dtd-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-download-http;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download (FTP): <ulink
|
---|
| 37 | url="&sgml-dtd-download-ftp;"/></para></listitem>
|
---|
| 38 | <listitem><para>Download size: &sgml-dtd-size;</para></listitem>
|
---|
[518538f] | 39 | <listitem><para>Estimated disk space required:
|
---|
[50d3491a] | 40 | &sgml-dtd-buildsize;</para></listitem>
|
---|
| 41 | <listitem><para>Estimated build time:
|
---|
| 42 | &sgml-dtd-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>
|
---|
[50d3491a] | 57 |
|
---|
[cb6de2e] | 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>
|
---|
| 62 |
|
---|
[b650556] | 63 | <screen><userinput><command>sed -i -e '/ISO 8879/d' \
|
---|
| 64 | -e '/gml/d' docbook.cat &&
|
---|
[50d3491a] | 65 | install -d /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-version; &&
|
---|
| 66 | chown -R root:root . &&
|
---|
| 67 | install docbook.cat /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-version;/catalog &&
|
---|
| 68 | cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-version; &&
|
---|
| 69 | install-catalog --add /etc/sgml/sgml-docbook-dtd-&sgml-dtd-version;.cat \
|
---|
| 70 | /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-version;/catalog &&
|
---|
| 71 | install-catalog --add /etc/sgml/sgml-docbook-dtd-&sgml-dtd-version;.cat \
|
---|
| 72 | /etc/sgml/sgml-docbook.cat</command></userinput></screen>
|
---|
| 73 |
|
---|
| 74 | </sect2>
|
---|
| 75 |
|
---|
| 76 | <sect2>
|
---|
| 77 | <title>Command explanations</title>
|
---|
| 78 |
|
---|
[b650556] | 79 | <para><command>sed -i -e '/ISO 8879/d' -e '/gml/d' docbook.cat</command>:
|
---|
| 80 | This command removes the ENT definitions from the catalog file.</para>
|
---|
[50d3491a] | 81 |
|
---|
| 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | <sect2>
|
---|
[cb6de2e] | 85 | <title>Configuring <application>DocBook <acronym>SGML</acronym>
|
---|
| 86 | <acronym>DTD</acronym></application></title>
|
---|
[50d3491a] | 87 |
|
---|
| 88 | <sect3><title>Config files</title>
|
---|
| 89 | <para><filename>/etc/sgml/catalog</filename></para>
|
---|
| 90 | </sect3>
|
---|
| 91 |
|
---|
| 92 | <sect3><title>Configuration Information</title>
|
---|
| 93 |
|
---|
[b650556] | 94 | <para>The above installation script updates the catalog.</para>
|
---|
[50d3491a] | 95 |
|
---|
| 96 | <para>Using only the most current 4.x version of <application>DocBook
|
---|
| 97 | <acronym>SGML</acronym> <acronym>DTD</acronym></application> requires the
|
---|
| 98 | following:</para>
|
---|
[b650556] | 99 |
|
---|
[50d3491a] | 100 | <screen><userinput><command>cat >> /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-version;/catalog << "EOF"</command>
|
---|
| 101 | -- Begin Single Major Version catalog changes --
|
---|
| 102 |
|
---|
| 103 | PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
|
---|
| 104 | PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
|
---|
| 105 | PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
|
---|
| 106 |
|
---|
| 107 | -- End Single Major Version catalog changes --
|
---|
| 108 | <command>EOF</command></userinput></screen>
|
---|
| 109 |
|
---|
| 110 | </sect3>
|
---|
| 111 |
|
---|
| 112 | </sect2>
|
---|
| 113 |
|
---|
| 114 | <sect2>
|
---|
| 115 | <title>Contents</title>
|
---|
| 116 |
|
---|
[cb6de2e] | 117 | <para>The <application>DocBook <acronym>SGML</acronym>
|
---|
| 118 | <acronym>DTD</acronym></application> package contains <filename>DTD</filename>
|
---|
| 119 | files and <filename>MOD</filename> files.</para>
|
---|
[50d3491a] | 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 | <sect2><title>Description</title>
|
---|
| 124 |
|
---|
| 125 | <sect3><title>DTD files</title>
|
---|
[cb6de2e] | 126 | <para><filename>DTD</filename> files contain a document type definition which
|
---|
| 127 | defines the element types and the attribute lists that can be used in the
|
---|
[50d3491a] | 128 | corresponding <acronym>SGML</acronym> files.</para></sect3>
|
---|
| 129 |
|
---|
| 130 | <sect3><title>MOD files</title>
|
---|
[cb6de2e] | 131 | <para><filename>MOD</filename> files contain components of the document type
|
---|
| 132 | definition that are sourced into the <filename>DTD</filename> files.</para>
|
---|
| 133 | </sect3>
|
---|
[50d3491a] | 134 |
|
---|
| 135 | </sect2>
|
---|
[fc1d0ba7] | 136 |
|
---|
| 137 | </sect1>
|
---|
| 138 |
|
---|