1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY docbook51-download-http "https://docbook.org/xml/5.1/docbook-v5.1-os.zip">
|
---|
8 | <!ENTITY docbook51-download-ftp " ">
|
---|
9 | <!ENTITY docbook51-md5sum "d8bea8ddfc5743578a31cb18f9ae1f5a">
|
---|
10 | <!ENTITY docbook51-size "752 KB">
|
---|
11 | <!ENTITY docbook51-buildsize "8.5 MB">
|
---|
12 | <!ENTITY docbook51-time "less than 0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="docbook51" xreflabel="docbook-xml-5.1">
|
---|
16 | <?dbhtml filename="docbook51.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>docbook-xml-5.1</title>
|
---|
24 |
|
---|
25 | <indexterm zone="docbook51">
|
---|
26 | <primary sortas="a-DocBook51-XML-DTD">DocBook XML Schemas 5.1</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to DocBook XML Schemas 5.1</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | The <application>DocBook XML Schecmas</application>-5.1 package
|
---|
34 | contains schema files and Schematron rules for verification of XML data
|
---|
35 | files against the DocBook rule set. These are useful for structuring books
|
---|
36 | and software documentation to a standard allowing you to utilize
|
---|
37 | transformations already written for that standard.
|
---|
38 | </para>
|
---|
39 |
|
---|
40 | &lfs90_checked;
|
---|
41 |
|
---|
42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
43 | <itemizedlist spacing="compact">
|
---|
44 | <listitem>
|
---|
45 | <para>Download (HTTP): <ulink url="&docbook51-download-http;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download (FTP): <ulink url="&docbook51-download-ftp;"/></para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download MD5 sum: &docbook51-md5sum;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Download size: &docbook51-size;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated disk space required: &docbook51-buildsize;</para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>Estimated build time: &docbook51-time;</para>
|
---|
61 | </listitem>
|
---|
62 | </itemizedlist>
|
---|
63 |
|
---|
64 | <bridgehead renderas="sect3">DocBook XML Schemas 5.1 Dependencies</bridgehead>
|
---|
65 |
|
---|
66 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
67 | <para role="required">
|
---|
68 | <xref linkend="libxml2"/>,
|
---|
69 | <xref linkend="sgml-common"/>, and
|
---|
70 | <xref linkend="unzip"/>
|
---|
71 | </para>
|
---|
72 |
|
---|
73 | <para condition="html" role="usernotes">User Notes:
|
---|
74 | <ulink url="&blfs-wiki;/docbook51-xml"/></para>
|
---|
75 |
|
---|
76 | </sect2>
|
---|
77 |
|
---|
78 | <sect2 role="installation">
|
---|
79 | <title>Installation of DocBook XML Schemas 5.1</title>
|
---|
80 |
|
---|
81 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
82 | href="../../xincludes/use-unzip.xml"/>
|
---|
83 |
|
---|
84 | <para>
|
---|
85 | Install <application>DocBook XML Schemas</application>
|
---|
86 | by running the following commands as the
|
---|
87 | <systemitem class="username">root</systemitem> user:
|
---|
88 | </para>
|
---|
89 |
|
---|
90 | <screen role="root"><userinput>install -vdm755 /usr/share/xml/docbook/schema/{rng,sch}/5.1 &&
|
---|
91 | install -m644 schemas/rng/* /usr/share/xml/docbook/schema/rng/5.1 &&
|
---|
92 | install -m644 schemas/sch/* /usr/share/xml/docbook/schema/sch/5.1 &&
|
---|
93 | install -m755 tools/db4-entities.pl /usr/bin &&
|
---|
94 | install -vdm755 /usr/share/xml/docbook/stylesheet/docbook5 &&
|
---|
95 | install -m644 tools/db4-upgrade.xsl \
|
---|
96 | /usr/share/xml/docbook/stylesheet/docbook5</userinput></screen>
|
---|
97 |
|
---|
98 | <para>
|
---|
99 | Create (or update) and populate the
|
---|
100 | <filename>/etc/xml/docbook-5.1</filename> catalog file by running the
|
---|
101 | following commands as the <systemitem class="username">root</systemitem>
|
---|
102 | user:
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <screen role="root"><?dbfo keep-together="auto"?><userinput>if [ ! -e /etc/xml/docbook-5.1 ]; then
|
---|
106 | xmlcatalog --noout --create /etc/xml/docbook-5.1
|
---|
107 | fi &&
|
---|
108 |
|
---|
109 | xmlcatalog --noout --add "uri" \
|
---|
110 | "http://www.oasis-open.org/docbook/xml/5.1/rng/docbook.rng" \
|
---|
111 | "file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rng" \
|
---|
112 | /etc/xml/docbook-5.1 &&
|
---|
113 | xmlcatalog --noout --add "uri" \
|
---|
114 | "http://docbook.org/xml/5.1/rng/docbook.rng" \
|
---|
115 | "file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rng" \
|
---|
116 | /etc/xml/docbook-5.1 &&
|
---|
117 | xmlcatalog --noout --add "uri" \
|
---|
118 | "http://www.oasis-open.org/docbook/xml/5.1/rng/docbookxi.rng" \
|
---|
119 | "file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rng" \
|
---|
120 | /etc/xml/docbook-5.1 &&
|
---|
121 | xmlcatalog --noout --add "uri" \
|
---|
122 | "http://docbook.org/xml/5.1/rng/docbookxi.rng" \
|
---|
123 | "file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rng" \
|
---|
124 | /etc/xml/docbook-5.1 &&
|
---|
125 | xmlcatalog --noout --add "uri" \
|
---|
126 | "http://www.oasis-open.org/docbook/xml/5.1/rnc/docbook.rnc" \
|
---|
127 | "file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rnc" \
|
---|
128 | /etc/xml/docbook-5.1 &&
|
---|
129 | xmlcatalog --noout --add "uri" \
|
---|
130 | "http://docbook.org/xml/5.1/rng/docbook.rnc" \
|
---|
131 | "file:///usr/share/xml/docbook/schema/rng/5.1/docbook.rnc" \
|
---|
132 | /etc/xml/docbook-5.1 &&
|
---|
133 | xmlcatalog --noout --add "uri" \
|
---|
134 | "http://www.oasis-open.org/docbook/xml/5.1/rnc/docbookxi.rnc" \
|
---|
135 | "file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rnc" \
|
---|
136 | /etc/xml/docbook-5.1 &&
|
---|
137 | xmlcatalog --noout --add "uri" \
|
---|
138 | "http://docbook.org/xml/5.1/rng/docbookxi.rnc" \
|
---|
139 | "file:///usr/share/xml/docbook/schema/rng/5.1/docbookxi.rnc" \
|
---|
140 | /etc/xml/docbook-5.1 &&
|
---|
141 |
|
---|
142 | xmlcatalog --noout --add "uri" \
|
---|
143 | "http://www.oasis-open.org/docbook/xml/5.1/sch/docbook.sch" \
|
---|
144 | "file:///usr/share/xml/docbook/schema/sch/5.1/docbook.sch" \
|
---|
145 | /etc/xml/docbook-5.1 &&
|
---|
146 | xmlcatalog --noout --add "uri" \
|
---|
147 | "http://docbook.org/xml/5.1/sch/docbook.sch" \
|
---|
148 | "file:///usr/share/xml/docbook/schema/sch/5.1/docbook.sch" \
|
---|
149 | /etc/xml/docbook-5.1</userinput></screen>
|
---|
150 |
|
---|
151 |
|
---|
152 | <para>
|
---|
153 | While again as the <systemitem class="username">root</systemitem> user,
|
---|
154 | create the individual catalogs:
|
---|
155 | </para>
|
---|
156 |
|
---|
157 | <screen role="root"><userinput>xmlcatalog --noout --create /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
|
---|
158 |
|
---|
159 | xmlcatalog --noout --add "uri" \
|
---|
160 | "http://docbook.org/xml/5.1/schemas/rng/docbook.schemas/rng" \
|
---|
161 | "docbook.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
|
---|
162 | xmlcatalog --noout --add "uri" \
|
---|
163 | "http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbook.schemas/rng" \
|
---|
164 | "docbook.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
|
---|
165 | xmlcatalog --noout --add "uri" \
|
---|
166 | "http://docbook.org/xml/5.1/schemas/rng/docbookxi.schemas/rng" \
|
---|
167 | "docbookxi.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
|
---|
168 | xmlcatalog --noout --add "uri" \
|
---|
169 | "http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbookxi.schemas/rng" \
|
---|
170 | "docbookxi.schemas/rng" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
|
---|
171 | xmlcatalog --noout --add "uri" \
|
---|
172 | "http://docbook.org/xml/5.1/schemas/rng/docbook.rnc" \
|
---|
173 | "docbook.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
|
---|
174 | xmlcatalog --noout --add "uri" \
|
---|
175 | "http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbook.rnc" \
|
---|
176 | "docbook.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
|
---|
177 | xmlcatalog --noout --add "uri" \
|
---|
178 | "http://docbook.org/xml/5.1/schemas/rng/docbookxi.rnc" \
|
---|
179 | "docbookxi.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml &&
|
---|
180 | xmlcatalog --noout --add "uri" \
|
---|
181 | "http://www.oasis-open.org/docbook/xml/5.1/schemas/rng/docbookxi.rnc" \
|
---|
182 | "docbookxi.rnc" /usr/share/xml/docbook/schema/rng/5.1/catalog.xml
|
---|
183 | xmlcatalog --noout --create /usr/share/xml/docbook/schema/sch/5.1/catalog.xml &&
|
---|
184 |
|
---|
185 | xmlcatalog --noout --add "uri" \
|
---|
186 | "http://docbook.org/xml/5.1/schemas/sch/docbook.schemas/sch" \
|
---|
187 | "docbook.schemas/sch" /usr/share/xml/docbook/schema/sch/5.1/catalog.xml &&
|
---|
188 | xmlcatalog --noout --add "uri" \
|
---|
189 | "http://www.oasis-open.org/docbook/xml/5.1/schemas/sch/docbook.schemas/sch" \
|
---|
190 | "docbook.schemas/sch" /usr/share/xml/docbook/schema/sch/5.1/catalog.xml</userinput></screen>
|
---|
191 |
|
---|
192 | <para>
|
---|
193 | Create (or update) and populate the system XML catalog
|
---|
194 | (<filename>/etc/xml/catalog</filename>) by running the
|
---|
195 | following commands as the <systemitem class="username">root</systemitem>
|
---|
196 | user:
|
---|
197 | </para>
|
---|
198 |
|
---|
199 | <screen role="root"><userinput>if [ ! -e /etc/xml/catalog ]; then
|
---|
200 | xmlcatalog --noout --create /etc/xml/catalog
|
---|
201 | fi &&
|
---|
202 | xmlcatalog --noout --add "delegatePublic" \
|
---|
203 | "-//OASIS//DTD DocBook XML 5.1//EN" \
|
---|
204 | "file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \
|
---|
205 | /etc/xml/catalog &&
|
---|
206 | xmlcatalog --noout --add "delegateSystem" \
|
---|
207 | "http://docbook.org/xml/5.1/dtd/" \
|
---|
208 | "file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \
|
---|
209 | /etc/xml/catalog &&
|
---|
210 | xmlcatalog --noout --add "delegateURI" \
|
---|
211 | "http://docbook.org/xml/5.1/dtd/" \
|
---|
212 | "file:///usr/share/xml/docbook/schema/dtd/5.1/catalog.xml" \
|
---|
213 | /etc/xml/catalog &&
|
---|
214 | xmlcatalog --noout --add "delegateURI" \
|
---|
215 | "http://docbook.org/xml/5.1/rng/" \
|
---|
216 | "file:///usr/share/xml/docbook/schema/rng/5.1/catalog.xml" \
|
---|
217 | /etc/xml/catalog &&
|
---|
218 | xmlcatalog --noout --add "delegateURI" \
|
---|
219 | "http://docbook.org/xml/5.1/sch/" \
|
---|
220 | "file:///usr/share/xml/docbook/schema/sch/5.1/catalog.xml" \
|
---|
221 | /etc/xml/catalog &&
|
---|
222 | xmlcatalog --noout --add "delegateURI" \
|
---|
223 | "http://docbook.org/xml/5.1/xsd/" \
|
---|
224 | "file:///usr/share/xml/docbook/schema/xsd/5.1/catalog.xml" \
|
---|
225 | /etc/xml/catalog</userinput></screen>
|
---|
226 |
|
---|
227 | </sect2>
|
---|
228 |
|
---|
229 | <sect2 role="configuration">
|
---|
230 | <title>Configuring DocBook XML Schemas 5.1</title>
|
---|
231 |
|
---|
232 | <sect3 id="docbook51-config">
|
---|
233 | <title>Config Files</title>
|
---|
234 |
|
---|
235 | <para><filename>/etc/xml/catalog</filename>,
|
---|
236 | <filename>/etc/xml/docbook-5.1</filename></para>
|
---|
237 |
|
---|
238 | <indexterm zone="docbook51 docbook-config">
|
---|
239 | <primary sortas="e-etc-xml-docbook51">/etc/xml/docbook-5.1</primary>
|
---|
240 | </indexterm>
|
---|
241 |
|
---|
242 | <indexterm zone="docbook51 docbook-config">
|
---|
243 | <primary sortas="e-etc-xml-catalog51">/etc/xml/catalog</primary>
|
---|
244 | </indexterm>
|
---|
245 |
|
---|
246 | </sect3>
|
---|
247 |
|
---|
248 | </sect2>
|
---|
249 |
|
---|
250 | <sect2 role="content">
|
---|
251 | <title>Contents</title>
|
---|
252 |
|
---|
253 | <segmentedlist>
|
---|
254 | <segtitle>Installed Programs</segtitle>
|
---|
255 | <segtitle>Installed Files</segtitle>
|
---|
256 | <segtitle>Installed Directories</segtitle>
|
---|
257 |
|
---|
258 | <seglistitem>
|
---|
259 | <seg>db4-entities.pl</seg>
|
---|
260 | <seg>RNC, RNG, SCH, and XSL files</seg>
|
---|
261 | <seg>/etc/xml, /usr/share/xml/docbook/stylesheets, and
|
---|
262 | /usr/share/xml/docbook/schema/{rng,sch}/5.1</seg>
|
---|
263 | </seglistitem>
|
---|
264 | </segmentedlist>
|
---|
265 |
|
---|
266 | <variablelist>
|
---|
267 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
268 | <?dbfo list-presentation="list"?>
|
---|
269 | <?dbhtml list-presentation="table"?>
|
---|
270 |
|
---|
271 | <varlistentry id="db4-entries-pl">
|
---|
272 | <term><filename>db4-entities.pl</filename></term>
|
---|
273 | <listitem>
|
---|
274 | <para>
|
---|
275 | is a script to convert DocBook 4.x filed to DocBook 5.1.
|
---|
276 | </para>
|
---|
277 | <indexterm zone="docbook51 db4-entries-pl">
|
---|
278 | <primary sortas="b-db4-entries-pl">db4-entities.pl</primary>
|
---|
279 | </indexterm>
|
---|
280 | </listitem>
|
---|
281 | </varlistentry>
|
---|
282 |
|
---|
283 | <varlistentry id="Schema51-files">
|
---|
284 | <term><filename>RNC, RNG, and SCH files</filename></term>
|
---|
285 | <listitem>
|
---|
286 | <para>
|
---|
287 | contain the Docbook 5.1 RelaxNG, RelaxNG Compact, and Schematron
|
---|
288 | schema definitions.
|
---|
289 | </para>
|
---|
290 | <indexterm zone="docbook51 Schema51-files">
|
---|
291 | <primary sortas="g-XML-Schema-files">XML Schema files</primary>
|
---|
292 | </indexterm>
|
---|
293 | </listitem>
|
---|
294 | </varlistentry>
|
---|
295 |
|
---|
296 | <varlistentry id="db4-upgrade-xsl">
|
---|
297 | <term><filename>db4-upgrade.xsl</filename></term>
|
---|
298 | <listitem>
|
---|
299 | <para>
|
---|
300 | is an XSL stylesheet to assist in coversion from DcoBook 4.x files
|
---|
301 | to DocBook 5.1.
|
---|
302 | </para>
|
---|
303 | <indexterm zone="docbook51 db4-upgrade-xsl">
|
---|
304 | <primary sortas="g-XSL-Stylesheets">XSL Stylesheets</primary>
|
---|
305 | </indexterm>
|
---|
306 | </listitem>
|
---|
307 | </varlistentry>
|
---|
308 |
|
---|
309 | </variablelist>
|
---|
310 |
|
---|
311 | </sect2>
|
---|
312 |
|
---|
313 | </sect1>
|
---|