aboutsummaryrefslogtreecommitdiffstats
path: root/pst/xml/docbook.xml
blob: 6e6efed8f8acecb3b3eacb229d96b6b5d20ed53c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
   "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;

  <!ENTITY DocBook-download-http "http://www.docbook.org/xml/&DocBook-version;/docbook-xml-&DocBook-version;.zip">
  <!ENTITY DocBook-download-ftp  "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/docbook-xml-&DocBook-version;.zip">
  <!ENTITY DocBook-md5sum        "cbb04e9a700955d88c50962ef22c1634">
  <!ENTITY DocBook-size          "96 KB">
  <!ENTITY DocBook-buildsize     "1.2 MB">
  <!ENTITY DocBook-time          "less than 0.1 SBU">
]>

<sect1 id="DocBook" xreflabel="DocBook XML DTD-&DocBook-version;">
  <?dbhtml filename="DocBook.html"?>

  <sect1info>
    <othername>$LastChangedBy$</othername>
    <date>$Date$</date>
  </sect1info>

  <title>DocBook XML DTD-&DocBook-version;</title>

  <indexterm zone="DocBook">
    <primary sortas="a-DocBook-XML-DTD">DocBook XML DTD</primary>
  </indexterm>

  <sect2 role="package">
    <title>Introduction to DocBook XML DTD</title>

    <para>The <application>DocBook XML DTD</application>-&DocBook-version;
    package contains document type definitions for verification of XML data
    files against the DocBook rule set. These are useful for structuring books
    and software documentation to a standard allowing you to utilize
    transformations already written for that standard.</para>

    <bridgehead renderas="sect3">Package Information</bridgehead>
    <itemizedlist spacing="compact">
      <listitem>
        <para>Download (HTTP): <ulink url="&DocBook-download-http;"/></para>
      </listitem>
      <listitem>
        <para>Download (FTP): <ulink url="&DocBook-download-ftp;"/></para>
      </listitem>
      <listitem>
        <para>Download MD5 sum: &DocBook-md5sum;</para>
      </listitem>
      <listitem>
        <para>Download size: &DocBook-size;</para>
      </listitem>
      <listitem>
        <para>Estimated disk space required: &DocBook-buildsize;</para>
      </listitem>
      <listitem>
        <para>Estimated build time: &DocBook-time;</para>
      </listitem>
    </itemizedlist>

    <bridgehead renderas="sect3">DocBook XML DTD Dependencies</bridgehead>

    <bridgehead renderas="sect4">Required</bridgehead>
    <para role="required"><xref linkend="libxml2"/> and
    <xref linkend="unzip"/></para>

    <para condition="html" role="usernotes">User Notes:
    <ulink url="&blfs-wiki;/docbook"/></para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of DocBook XML DTD</title>

    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    href="../../xincludes/use-unzip.xml"/>

    <para>Install <application>DocBook XML DTD</application> by running the
    following commands as the <systemitem class="username">root</systemitem>
    user:</para>

<screen role="root"><userinput>install -v -d -m755 /usr/share/xml/docbook/xml-dtd-&DocBook-version; &amp;&amp;
install -v -d -m755 /etc/xml &amp;&amp;
chown -R root:root . &amp;&amp;
cp -v -af docbook.cat *.dtd ent/ *.mod \
    /usr/share/xml/docbook/xml-dtd-&DocBook-version;</userinput></screen>

    <para>Create (or update) and populate the
    <filename>/etc/xml/docbook</filename> catalog file by running the following
    commands as the <systemitem class="username">root</systemitem> user:</para>

<screen role="root"><userinput>if [ ! -e /etc/xml/docbook ]; then
    xmlcatalog --noout --create /etc/xml/docbook
fi &amp;&amp;
xmlcatalog --noout --add "public" \
    "-//OASIS//DTD DocBook XML V&DocBook-version;//EN" \
    "http://www.oasis-open.org/docbook/xml/&DocBook-version;/docbookx.dtd" \
    /etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
    "-//OASIS//DTD DocBook XML CALS Table Model V&DocBook-version;//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/calstblx.dtd" \
    /etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
    "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/soextblx.dtd" \
    /etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
    "-//OASIS//ELEMENTS DocBook XML Information Pool V&DocBook-version;//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbpoolx.mod" \
    /etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
    "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V&DocBook-version;//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbhierx.mod" \
    /etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
    "-//OASIS//ELEMENTS DocBook XML HTML Tables V&DocBook-version;//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/htmltblx.mod" \
    /etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
    "-//OASIS//ENTITIES DocBook XML Notations V&DocBook-version;//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbnotnx.mod" \
    /etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
    "-//OASIS//ENTITIES DocBook XML Character Entities V&DocBook-version;//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbcentx.mod" \
    /etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "public" \
    "-//OASIS//ENTITIES DocBook XML Additional General Entities V&DocBook-version;//EN" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbgenent.mod" \
    /etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "rewriteSystem" \
    "http://www.oasis-open.org/docbook/xml/&DocBook-version;" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
    /etc/xml/docbook &amp;&amp;
xmlcatalog --noout --add "rewriteURI" \
    "http://www.oasis-open.org/docbook/xml/&DocBook-version;" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
    /etc/xml/docbook</userinput></screen>

    <para>Create (or update) and populate the
    <filename>/etc/xml/catalog</filename> catalog file by running the following
    commands as the <systemitem class="username">root</systemitem> user:</para>

<screen role="root"><userinput>if [ ! -e /etc/xml/catalog ]; then
    xmlcatalog --noout --create /etc/xml/catalog
fi &amp;&amp;
xmlcatalog --noout --add "delegatePublic" \
    "-//OASIS//ENTITIES DocBook XML" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "delegatePublic" \
    "-//OASIS//DTD DocBook XML" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "delegateSystem" \
    "http://www.oasis-open.org/docbook/" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "delegateURI" \
    "http://www.oasis-open.org/docbook/" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog</userinput></screen>

  </sect2>

  <sect2 role="configuration">
    <title>Configuring DocBook XML DTD</title>

    <sect3 id="docbook-config">
      <title>Config Files</title>

      <para><filename>/etc/xml/catalog</filename>,
      <filename>/etc/xml/docbook</filename></para>

      <indexterm zone="DocBook docbook-config">
        <primary sortas="e-etc-xml-docbook">/etc/xml/docbook</primary>
      </indexterm>

      <indexterm zone="DocBook docbook-config">
        <primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
      </indexterm>

    </sect3>

    <sect3>
      <title>Configuration Information</title>

      <para>The above installation creates the files and updates the catalogs.
      In order to install <application>ScrollKeeper</application> or to
      utilize <application>DocBook XML DTD</application> V&DocBook-version;
      when any version 4.x is requested in the System Identifier, you need to
      add additional statements to the catalog files. If you have any of the
      <application>DocBook XML DTD</application>'s referenced below already
      installed on your system, remove those entries from the
      <command>for</command> command below (issue the commands as the
      <systemitem class="username">root</systemitem> user):</para>

<screen role="root"><userinput>for DTDVERSION in 4.1.2 4.2 4.3
do
  xmlcatalog --noout --add "public" \
    "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
    /etc/xml/docbook
  xmlcatalog --noout --add "rewriteSystem" \
    "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
    /etc/xml/docbook
  xmlcatalog --noout --add "rewriteURI" \
    "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
    "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
    /etc/xml/docbook
  xmlcatalog --noout --add "delegateSystem" \
    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog
  xmlcatalog --noout --add "delegateURI" \
    "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
    "file:///etc/xml/docbook" \
    /etc/xml/catalog
done</userinput></screen>

    </sect3>

  </sect2>

  <sect2 role="content">
    <title>Contents</title>

    <segmentedlist>
      <segtitle>Installed Programs</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Files</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>None</seg>
        <seg>None</seg>
        <seg>DTD, MOD and ENT files</seg>
        <seg>/etc/xml and /usr/share/xml/docbook/xml-dtd-&DocBook-version;</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="DTD-files">
        <term><filename>DTD files</filename></term>
        <listitem>
          <para>contain a document type definition which defines the element
          types and the attribute lists that can be used in the corresponding
          <filename>XML</filename> files.</para>
          <indexterm zone="DocBook DTD-files">
            <primary sortas="g-DTD-files">DTD Files</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="MOD-files">
        <term><filename>MOD files</filename></term>
        <listitem>
          <para>files contain components of the document type definition that
          are sourced into the <filename>DTD</filename> files.</para>
          <indexterm zone="DocBook MOD-files">
            <primary sortas="g-MOD-files">MOD files</primary>
          </indexterm>
        </listitem>
      </varlistentry>

      <varlistentry id="ENT-files">
        <term><filename>ENT files</filename></term>
        <listitem>
          <para>files contain lists of named character entities allowed in
          HTML.</para>
          <indexterm zone="DocBook ENT-files">
            <primary sortas="g-ENT-files">ENT-files</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>