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