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