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 DocBook-download-http "http://www.docbook.org/xml/4.3/docbook-xml-&DocBook-version;.zip">
|
---|
7 | <!ENTITY DocBook-download-ftp "ftp://ftp.fu-berlin.de/unix/linux/mirrors/gentoo/distfiles/docbook-xml-&DocBook-version;.zip">
|
---|
8 | <!ENTITY DocBook-md5sum "ab200202b9e136a144db1e0864c45074">
|
---|
9 | <!ENTITY DocBook-size "83 KB">
|
---|
10 | <!ENTITY DocBook-buildsize "482 KB">
|
---|
11 | <!ENTITY DocBook-time "0.01 SBU">
|
---|
12 | ]>
|
---|
13 |
|
---|
14 | <sect1 id="DocBook" xreflabel="DocBook XML DTD-&DocBook-version;">
|
---|
15 | <sect1info>
|
---|
16 | <othername>$LastChangedBy$</othername>
|
---|
17 | <date>$Date$</date>
|
---|
18 | </sect1info>
|
---|
19 | <?dbhtml filename="DocBook.html"?>
|
---|
20 | <title>DocBook XML DTD-&DocBook-version;</title>
|
---|
21 |
|
---|
22 | <sect2>
|
---|
23 | <title>Introduction to <application>DocBook <acronym>XML</acronym>
|
---|
24 | <acronym>DTD</acronym></application></title>
|
---|
25 |
|
---|
26 | <para>The <application>DocBook <acronym>XML</acronym>
|
---|
27 | <acronym>DTD</acronym></application>-&DocBook-version; package contains
|
---|
28 | document type definitions for verification of <acronym>XML</acronym> data
|
---|
29 | files against the DocBook rule set. These are useful for structuring books
|
---|
30 | and software documentation to a standard allowing you to utilize
|
---|
31 | transformations already written for that standard.</para>
|
---|
32 |
|
---|
33 | <sect3><title>Package information</title>
|
---|
34 | <itemizedlist spacing='compact'>
|
---|
35 | <listitem><para>Download (HTTP):
|
---|
36 | <ulink url="&DocBook-download-http;"/></para></listitem>
|
---|
37 | <listitem><para>Download (FTP):
|
---|
38 | <ulink url="&DocBook-download-ftp;"/></para></listitem>
|
---|
39 | <listitem><para>Download MD5 sum: &DocBook-md5sum;</para></listitem>
|
---|
40 | <listitem><para>Download size: &DocBook-size;</para></listitem>
|
---|
41 | <listitem><para>Estimated disk space required:
|
---|
42 | &DocBook-buildsize;</para></listitem>
|
---|
43 | <listitem><para>Estimated build time:
|
---|
44 | &DocBook-time;</para></listitem></itemizedlist>
|
---|
45 | </sect3>
|
---|
46 |
|
---|
47 | <sect3><title><application>DocBook <acronym>XML</acronym>
|
---|
48 | <acronym>DTD</acronym></application> &DocBook-version; dependencies</title>
|
---|
49 | <sect4><title>Required</title>
|
---|
50 | <para><xref linkend="libxml2"/> and <xref linkend="unzip"/></para>
|
---|
51 | </sect4>
|
---|
52 | </sect3>
|
---|
53 |
|
---|
54 | </sect2>
|
---|
55 |
|
---|
56 | <sect2>
|
---|
57 | <title>Installation of <application>DocBook <acronym>XML</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>XML</acronym>
|
---|
63 | <acronym>DTD</acronym></application> by running the following commands:</para>
|
---|
64 |
|
---|
65 | <screen><userinput><command>install -d /usr/share/xml/docbook/xml-dtd-&DocBook-version; &&
|
---|
66 | chown -R root:root . &&
|
---|
67 | cp -af docbook.cat *.dtd ent/ *.mod \
|
---|
68 | /usr/share/xml/docbook/xml-dtd-&DocBook-version; &&
|
---|
69 | if [ ! -e /etc/xml/catalog ]; then mkdir -p /etc/xml; xmlcatalog \
|
---|
70 | --noout --create /etc/xml/catalog; fi &&
|
---|
71 | if [ ! -e /etc/xml/docbook ]; then xmlcatalog --noout --create \
|
---|
72 | /etc/xml/docbook; fi &&
|
---|
73 | xmlcatalog --noout --add "public" \
|
---|
74 | "-//OASIS//ELEMENTS DocBook XML Information Pool V&DocBook-version;//EN" \
|
---|
75 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbpoolx.mod" \
|
---|
76 | /etc/xml/docbook &&
|
---|
77 | xmlcatalog --noout --add "public" \
|
---|
78 | "-//OASIS//DTD DocBook XML V&DocBook-version;//EN" \
|
---|
79 | "http://www.oasis-open.org/docbook/xml/&DocBook-version;/docbookx.dtd" \
|
---|
80 | /etc/xml/docbook &&
|
---|
81 | xmlcatalog --noout --add "public" \
|
---|
82 | "-//OASIS//ENTITIES DocBook XML Character Entities V&DocBook-version;//EN" \
|
---|
83 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbcentx.mod" \
|
---|
84 | /etc/xml/docbook &&
|
---|
85 | xmlcatalog --noout --add "public" \
|
---|
86 | "-//OASIS//ENTITIES DocBook XML Notations V&DocBook-version;//EN" \
|
---|
87 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbnotnx.mod" \
|
---|
88 | /etc/xml/docbook &&
|
---|
89 | xmlcatalog --noout --add "public" \
|
---|
90 | "-//OASIS//ENTITIES DocBook XML Additional General Entities V&DocBook-version;//EN" \
|
---|
91 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbgenent.mod" \
|
---|
92 | /etc/xml/docbook &&
|
---|
93 | xmlcatalog --noout --add "public" \
|
---|
94 | "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V&DocBook-version;//EN" \
|
---|
95 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/dbhierx.mod" \
|
---|
96 | /etc/xml/docbook &&
|
---|
97 | xmlcatalog --noout --add "public" \
|
---|
98 | "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
|
---|
99 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/soextblx.dtd" \
|
---|
100 | /etc/xml/docbook &&
|
---|
101 | xmlcatalog --noout --add "public" \
|
---|
102 | "-//OASIS//DTD DocBook XML CALS Table Model V&DocBook-version;//EN" \
|
---|
103 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;/calstblx.dtd" \
|
---|
104 | /etc/xml/docbook &&
|
---|
105 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
106 | "http://www.oasis-open.org/docbook/xml/&DocBook-version;" \
|
---|
107 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
|
---|
108 | /etc/xml/docbook &&
|
---|
109 | xmlcatalog --noout --add "rewriteURI" \
|
---|
110 | "http://www.oasis-open.org/docbook/xml/&DocBook-version;" \
|
---|
111 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
|
---|
112 | /etc/xml/docbook &&
|
---|
113 | xmlcatalog --noout --add "delegatePublic" \
|
---|
114 | "-//OASIS//ENTITIES DocBook XML" \
|
---|
115 | "file:///etc/xml/docbook" /etc/xml/catalog &&
|
---|
116 | xmlcatalog --noout --add "delegatePublic" \
|
---|
117 | "-//OASIS//DTD DocBook XML" \
|
---|
118 | "file:///etc/xml/docbook" /etc/xml/catalog &&
|
---|
119 | xmlcatalog --noout --add "delegateSystem" \
|
---|
120 | "http://www.oasis-open.org/docbook/" \
|
---|
121 | "file:///etc/xml/docbook" /etc/xml/catalog &&
|
---|
122 | xmlcatalog --noout --add "delegateURI" \
|
---|
123 | "http://www.oasis-open.org/docbook/" \
|
---|
124 | "file:///etc/xml/docbook" /etc/xml/catalog</command></userinput></screen>
|
---|
125 |
|
---|
126 | </sect2>
|
---|
127 |
|
---|
128 | <sect2>
|
---|
129 | <title>Configuring <application>DocBook <acronym>XML</acronym>
|
---|
130 | <acronym>DTD</acronym></application></title>
|
---|
131 |
|
---|
132 | <sect3 id="docbook-config"><title>Config files</title>
|
---|
133 | <para><filename>/etc/xml/catalog</filename>,
|
---|
134 | <filename>/etc/xml/docbook</filename></para>
|
---|
135 | <indexterm zone="DocBook docbook-config"><primary
|
---|
136 | sortas="e-etc-xml-docbook">/etc/xml/docbook</primary></indexterm>
|
---|
137 | <indexterm zone="DocBook docbook-config"><primary
|
---|
138 | sortas="e-etc-xml-catalog">/etc/xml/catalog</primary></indexterm>
|
---|
139 | </sect3>
|
---|
140 |
|
---|
141 | <sect3><title>Configuration Information</title>
|
---|
142 |
|
---|
143 | <para>The above installation script creates the files and updates the catalog.
|
---|
144 | In order to install <application>ScrollKeeper</application> or to utilize
|
---|
145 | <application>DocBook <acronym>XML</acronym>
|
---|
146 | <acronym>DTD</acronym></application> V&DocBook-version; when any version 4 is
|
---|
147 | requested in the System Identifier, make the following entry:</para>
|
---|
148 | <screen><userinput><command>xmlcatalog --noout --add "public" \
|
---|
149 | "-//OASIS//DTD DocBook XML V4.1.2//EN" \
|
---|
150 | "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" \
|
---|
151 | /etc/xml/docbook &&
|
---|
152 | xmlcatalog --noout --add "delegateSystem" \
|
---|
153 | "http://www.oasis-open.org/docbook/xml/4.1.2/" \
|
---|
154 | "file:///etc/xml/docbook" /etc/xml/catalog &&
|
---|
155 | xmlcatalog --noout --add "delegateURI" \
|
---|
156 | "http://www.oasis-open.org/docbook/xml/4.1.2/" \
|
---|
157 | "file:///etc/xml/docbook" /etc/xml/catalog &&
|
---|
158 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
159 | "http://www.oasis-open.org/docbook/xml/4.1.2" \
|
---|
160 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
|
---|
161 | /etc/xml/docbook &&
|
---|
162 | xmlcatalog --noout --add "rewriteURI" \
|
---|
163 | "http://www.oasis-open.org/docbook/xml/4.1.2" \
|
---|
164 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
|
---|
165 | /etc/xml/docbook &&
|
---|
166 | xmlcatalog --noout --add "rewriteURI" \
|
---|
167 | "http://www.oasis-open.org/docbook/xml/4.2" \
|
---|
168 | "file:///usr/share/xml/docbook/xml-dtd-&DocBook-version;" \
|
---|
169 | /etc/xml/docbook</command></userinput></screen>
|
---|
170 | </sect3>
|
---|
171 |
|
---|
172 | </sect2>
|
---|
173 |
|
---|
174 | <sect2>
|
---|
175 | <title>Contents</title>
|
---|
176 |
|
---|
177 | <para>The <application>DocBook <acronym>XML</acronym>
|
---|
178 | <acronym>DTD</acronym></application> package contains <filename>DTD</filename>
|
---|
179 | files, <filename>MOD</filename> files and <filename>ENT</filename> files.</para>
|
---|
180 |
|
---|
181 | </sect2>
|
---|
182 |
|
---|
183 | <sect2><title>Description</title>
|
---|
184 |
|
---|
185 | <sect3><title>DTD files</title>
|
---|
186 | <para><filename>DTD</filename> files contain a document type definition which
|
---|
187 | defines the element types and the attribute lists that can be used in the
|
---|
188 | corresponding <filename>XML</filename> files.</para></sect3>
|
---|
189 |
|
---|
190 | <sect3><title>MOD files</title>
|
---|
191 | <para><filename>MOD</filename> files contain components of the document type
|
---|
192 | definition that are sourced into the <filename>DTD</filename> files.</para>
|
---|
193 | </sect3>
|
---|
194 |
|
---|
195 | <sect3><title>ENT files</title>
|
---|
196 | <para><filename>ENT</filename> files contain lists of named character entities
|
---|
197 | allowed in <acronym>HTML</acronym>.</para></sect3>
|
---|
198 |
|
---|
199 | </sect2>
|
---|
200 |
|
---|
201 | </sect1>
|
---|
202 |
|
---|