[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;">
|
---|
[dd3f20f0] | 14 | <?dbhtml filename="sgml-dtd.html"?>
|
---|
[b028890] | 15 | <title>DocBook SGML DTD-&sgml-dtd-version;</title>
|
---|
[fc1d0ba7] | 16 |
|
---|
[50d3491a] | 17 | <sect2>
|
---|
[cb6de2e] | 18 | <title>Introduction to <application>DocBook <acronym>SGML</acronym>
|
---|
| 19 | <acronym>DTD</acronym></application></title>
|
---|
| 20 |
|
---|
| 21 | <para>The <application>DocBook <acronym>SGML</acronym>
|
---|
| 22 | <acronym>DTD</acronym></application> package contains document type definitions
|
---|
| 23 | for verification of <acronym>SGML</acronym> data files against the DocBook rule
|
---|
| 24 | set. These are useful for structuring books and software documentation to a
|
---|
| 25 | standard allowing you to utilize transformations already written for that
|
---|
[50d3491a] | 26 | standard.</para>
|
---|
| 27 |
|
---|
| 28 | <sect3><title>Package information</title>
|
---|
| 29 | <itemizedlist spacing='compact'>
|
---|
| 30 | <listitem><para>Download (HTTP): <ulink
|
---|
| 31 | url="&sgml-dtd-download-http;"/></para></listitem>
|
---|
| 32 | <listitem><para>Download (FTP): <ulink
|
---|
| 33 | url="&sgml-dtd-download-ftp;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download size: &sgml-dtd-size;</para></listitem>
|
---|
| 35 | <listitem><para>Estimated Disk space required:
|
---|
| 36 | &sgml-dtd-buildsize;</para></listitem>
|
---|
| 37 | <listitem><para>Estimated build time:
|
---|
| 38 | &sgml-dtd-time;</para></listitem></itemizedlist>
|
---|
| 39 | </sect3>
|
---|
| 40 |
|
---|
[cb6de2e] | 41 | <sect3><title><application>DocBook <acronym>SGML</acronym>
|
---|
| 42 | <acronym>DTD</acronym></application> dependencies</title>
|
---|
[50d3491a] | 43 | <sect4><title>Required</title>
|
---|
[cb6de2e] | 44 | <para><xref linkend="sgml-common"/> and <xref linkend="unzip"/></para></sect4>
|
---|
[50d3491a] | 45 | </sect3>
|
---|
| 46 |
|
---|
| 47 | </sect2>
|
---|
| 48 |
|
---|
| 49 | <sect2>
|
---|
[cb6de2e] | 50 | <title>Installation of <application>DocBook <acronym>SGML</acronym>
|
---|
| 51 | <acronym>DTD</acronym></application></title>
|
---|
[50d3491a] | 52 |
|
---|
[cb6de2e] | 53 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../../use-unzip.xml"/>
|
---|
[50d3491a] | 54 |
|
---|
[cb6de2e] | 55 | <para>Install <application>DocBook <acronym>SGML</acronym>
|
---|
| 56 | <acronym>DTD</acronym></application> by running the following commands:</para>
|
---|
| 57 |
|
---|
| 58 | <screen><userinput><command>sed -i -e '/ISO 8879/d' docbook.cat &&
|
---|
| 59 | sed -i -e '/gml/d' docbook.cat &&
|
---|
[50d3491a] | 60 | install -d /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-version; &&
|
---|
| 61 | chown -R root:root . &&
|
---|
| 62 | chmod -R 755 . &&
|
---|
| 63 | install docbook.cat /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-version;/catalog &&
|
---|
| 64 | cp -af *.dtd *.mod *.dcl /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-version; &&
|
---|
| 65 | install-catalog --add /etc/sgml/sgml-docbook-dtd-&sgml-dtd-version;.cat \
|
---|
| 66 | /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-version;/catalog &&
|
---|
| 67 | install-catalog --add /etc/sgml/sgml-docbook-dtd-&sgml-dtd-version;.cat \
|
---|
| 68 | /etc/sgml/sgml-docbook.cat</command></userinput></screen>
|
---|
| 69 |
|
---|
| 70 | </sect2>
|
---|
| 71 |
|
---|
| 72 | <sect2>
|
---|
| 73 | <title>Command explanations</title>
|
---|
| 74 |
|
---|
[cb6de2e] | 75 | <para><screen><command>sed -i -e '/ISO 8879/d' docbook.cat
|
---|
| 76 | sed -i -e '/gml/d' docbook.cat</command></screen>
|
---|
[50d3491a] | 77 | These commands remove the ENT definitions from the catalog file.</para>
|
---|
| 78 |
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2>
|
---|
[cb6de2e] | 82 | <title>Configuring <application>DocBook <acronym>SGML</acronym>
|
---|
| 83 | <acronym>DTD</acronym></application></title>
|
---|
[50d3491a] | 84 |
|
---|
| 85 | <sect3><title>Config files</title>
|
---|
| 86 | <para><filename>/etc/sgml/catalog</filename></para>
|
---|
| 87 | </sect3>
|
---|
| 88 |
|
---|
| 89 | <sect3><title>Configuration Information</title>
|
---|
| 90 |
|
---|
| 91 | <para>The above installation script updates the catalog.
|
---|
| 92 | </para>
|
---|
| 93 |
|
---|
| 94 | <para>Using only the most current 4.x version of <application>DocBook
|
---|
| 95 | <acronym>SGML</acronym> <acronym>DTD</acronym></application> requires the
|
---|
| 96 | following:</para>
|
---|
| 97 | <screen><userinput><command>cat >> /usr/share/sgml/docbook/sgml-dtd-&sgml-dtd-version;/catalog << "EOF"</command>
|
---|
| 98 | -- Begin Single Major Version catalog changes --
|
---|
| 99 |
|
---|
| 100 | PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
|
---|
| 101 | PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
|
---|
| 102 | PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
|
---|
| 103 |
|
---|
| 104 | -- End Single Major Version catalog changes --
|
---|
| 105 | <command>EOF</command></userinput></screen>
|
---|
| 106 |
|
---|
| 107 | </sect3>
|
---|
| 108 |
|
---|
| 109 | </sect2>
|
---|
| 110 |
|
---|
| 111 | <sect2>
|
---|
| 112 | <title>Contents</title>
|
---|
| 113 |
|
---|
[cb6de2e] | 114 | <para>The <application>DocBook <acronym>SGML</acronym>
|
---|
| 115 | <acronym>DTD</acronym></application> package contains <filename>DTD</filename>
|
---|
| 116 | files and <filename>MOD</filename> files.</para>
|
---|
[50d3491a] | 117 |
|
---|
| 118 | </sect2>
|
---|
| 119 |
|
---|
| 120 | <sect2><title>Description</title>
|
---|
| 121 |
|
---|
| 122 | <sect3><title>DTD files</title>
|
---|
[cb6de2e] | 123 | <para><filename>DTD</filename> files contain a document type definition which
|
---|
| 124 | defines the element types and the attribute lists that can be used in the
|
---|
[50d3491a] | 125 | corresponding <acronym>SGML</acronym> files.</para></sect3>
|
---|
| 126 |
|
---|
| 127 | <sect3><title>MOD files</title>
|
---|
[cb6de2e] | 128 | <para><filename>MOD</filename> files contain components of the document type
|
---|
| 129 | definition that are sourced into the <filename>DTD</filename> files.</para>
|
---|
| 130 | </sect3>
|
---|
[50d3491a] | 131 |
|
---|
| 132 | </sect2>
|
---|
[fc1d0ba7] | 133 |
|
---|
| 134 | </sect1>
|
---|
| 135 |
|
---|