source: pst/xml/docbook-45-xml.xml@ 99498cb4

12.0 12.1 12.2 gimp3 ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since 99498cb4 was 66e1c88, checked in by Xi Ruoyao <xry111@…>, 15 months ago

docbook-45-xml: Use --no-preserve=ownership instead of chown root:root

This avoids leaving root-owned files in the build directory, so it will
be easier to remove it as a normal user.

  • Property mode set to 100644
File size: 11.6 KB
RevLine 
[1210cce]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[44b376e7]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[c2a37a6]6
[c6b192c]7 <!ENTITY DocBook-download-http "https://www.docbook.org/xml/&docBook-45-xml-version;/docbook-xml-&docBook-45-xml-version;.zip">
[05ba905]8 <!ENTITY DocBook-download-ftp " ">
[875b36d7]9 <!ENTITY DocBook-md5sum "03083e288e87a7e829e437358da7ef9e">
[0fa91c66]10 <!ENTITY DocBook-size "96 KB">
11 <!ENTITY DocBook-buildsize "1.2 MB">
[f1c4e895]12 <!ENTITY DocBook-time "less than 0.1 SBU">
[44b376e7]13]>
14
[6633f56]15<sect1 id="DocBook" xreflabel="docbook-xml-&docBook-45-xml-version;">
[7d68b92]16 <?dbhtml filename="docbook.html"?>
[1210cce]17
18
[6633f56]19 <title>docbook-xml-&docBook-45-xml-version;</title>
[1210cce]20
21 <indexterm zone="DocBook">
22 <primary sortas="a-DocBook-XML-DTD">DocBook XML DTD</primary>
23 </indexterm>
24
25 <sect2 role="package">
[6633f56]26 <title>Introduction to DocBook-4.5 XML DTD</title>
[1210cce]27
[fa3edfef]28 <para>
[6633f56]29 The <application>DocBook-4.5 XML DTD</application>-&docBook-45-xml-version;
[fa3edfef]30 package contains document type definitions for verification of XML data
31 files against the DocBook rule set. These are useful for structuring
32 books and software documentation to a standard allowing you to utilize
33 transformations already written for that standard.
34 </para>
[1210cce]35
[15445ab]36 &lfs113_checked;
[00555b0f]37
[1210cce]38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
[fa3edfef]41 <para>
42 Download (HTTP): <ulink url="&DocBook-download-http;"/>
43 </para>
[1210cce]44 </listitem>
45 <listitem>
[fa3edfef]46 <para>
47 Download (FTP): <ulink url="&DocBook-download-ftp;"/>
48 </para>
[1210cce]49 </listitem>
50 <listitem>
[fa3edfef]51 <para>
52 Download MD5 sum: &DocBook-md5sum;
53 </para>
[1210cce]54 </listitem>
55 <listitem>
[fa3edfef]56 <para>
57 Download size: &DocBook-size;
58 </para>
[1210cce]59 </listitem>
60 <listitem>
[fa3edfef]61 <para>
62 Estimated disk space required: &DocBook-buildsize;
63 </para>
[1210cce]64 </listitem>
65 <listitem>
[fa3edfef]66 <para>
67 Estimated build time: &DocBook-time;
68 </para>
[1210cce]69 </listitem>
70 </itemizedlist>
71
[6633f56]72 <bridgehead renderas="sect3">DocBook-4.5 XML DTD Dependencies</bridgehead>
[1210cce]73
74 <bridgehead renderas="sect4">Required</bridgehead>
[7b273030]75 <para role="required">
76 <xref linkend="libxml2"/>,
77 <xref linkend="sgml-common"/>, and
78 <xref linkend="unzip"/>
79 </para>
[1210cce]80
[977061b0]81 <para condition="html" role="usernotes">User Notes:
[918348b]82 <ulink url="&blfs-wiki;/docbook-xml"/></para>
[977061b0]83
[1210cce]84 </sect2>
85
86 <sect2 role="installation">
[6633f56]87 <title>Installation of DocBook-4.5 XML DTD</title>
[1210cce]88
[e05cd03f]89 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[ebabf24]90 href="../../xincludes/use-unzip.xml"/>
[1210cce]91
[fa3edfef]92 <para>
93 Install <application>DocBook XML DTD</application> by running the
94 following commands as the <systemitem class="username">root</systemitem>
95 user:
96 </para>
[1210cce]97
[6633f56]98<screen role="root"><userinput>install -v -d -m755 /usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version; &amp;&amp;
[0fa91c66]99install -v -d -m755 /etc/xml &amp;&amp;
[66e1c88]100cp -v -af --no-preserve=ownership docbook.cat *.dtd ent/ *.mod \
[6633f56]101 /usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;</userinput></screen>
[0fa91c66]102
[fa3edfef]103 <para>
104 Create (or update) and populate the <filename>/etc/xml/docbook</filename>
105 catalog file by running the following
106 commands as the <systemitem class="username">root</systemitem> user:
107 </para>
[0fa91c66]108
[8e37798]109<screen role="root"><?dbfo keep-together="auto"?><userinput>if [ ! -e /etc/xml/docbook ]; then
[0fa91c66]110 xmlcatalog --noout --create /etc/xml/docbook
111fi &amp;&amp;
[44b376e7]112xmlcatalog --noout --add "public" \
[6633f56]113 "-//OASIS//DTD DocBook XML V&docBook-45-xml-version;//EN" \
114 "http://www.oasis-open.org/docbook/xml/&docBook-45-xml-version;/docbookx.dtd" \
[44b376e7]115 /etc/xml/docbook &amp;&amp;
116xmlcatalog --noout --add "public" \
[6633f56]117 "-//OASIS//DTD DocBook XML CALS Table Model V&docBook-45-xml-version;//EN" \
118 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;/calstblx.dtd" \
[44b376e7]119 /etc/xml/docbook &amp;&amp;
120xmlcatalog --noout --add "public" \
[0fa91c66]121 "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \
[6633f56]122 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;/soextblx.dtd" \
[44b376e7]123 /etc/xml/docbook &amp;&amp;
124xmlcatalog --noout --add "public" \
[6633f56]125 "-//OASIS//ELEMENTS DocBook XML Information Pool V&docBook-45-xml-version;//EN" \
126 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;/dbpoolx.mod" \
[44b376e7]127 /etc/xml/docbook &amp;&amp;
128xmlcatalog --noout --add "public" \
[6633f56]129 "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V&docBook-45-xml-version;//EN" \
130 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;/dbhierx.mod" \
[44b376e7]131 /etc/xml/docbook &amp;&amp;
132xmlcatalog --noout --add "public" \
[6633f56]133 "-//OASIS//ELEMENTS DocBook XML HTML Tables V&docBook-45-xml-version;//EN" \
134 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;/htmltblx.mod" \
[46b7c0d]135 /etc/xml/docbook &amp;&amp;
[0fa91c66]136xmlcatalog --noout --add "public" \
[6633f56]137 "-//OASIS//ENTITIES DocBook XML Notations V&docBook-45-xml-version;//EN" \
138 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;/dbnotnx.mod" \
[44b376e7]139 /etc/xml/docbook &amp;&amp;
140xmlcatalog --noout --add "public" \
[6633f56]141 "-//OASIS//ENTITIES DocBook XML Character Entities V&docBook-45-xml-version;//EN" \
142 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;/dbcentx.mod" \
[0fa91c66]143 /etc/xml/docbook &amp;&amp;
144xmlcatalog --noout --add "public" \
[6633f56]145 "-//OASIS//ENTITIES DocBook XML Additional General Entities V&docBook-45-xml-version;//EN" \
146 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;/dbgenent.mod" \
[44b376e7]147 /etc/xml/docbook &amp;&amp;
148xmlcatalog --noout --add "rewriteSystem" \
[6633f56]149 "http://www.oasis-open.org/docbook/xml/&docBook-45-xml-version;" \
150 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;" \
[44b376e7]151 /etc/xml/docbook &amp;&amp;
152xmlcatalog --noout --add "rewriteURI" \
[6633f56]153 "http://www.oasis-open.org/docbook/xml/&docBook-45-xml-version;" \
154 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;" \
[1210cce]155 /etc/xml/docbook</userinput></screen>
[0fa91c66]156
[fa3edfef]157 <para>
158 Create (or update) and populate the
159 <filename>/etc/xml/catalog</filename> catalog file by running the
160 following commands as the <systemitem class="username">root</systemitem>
161 user:
162 </para>
[0fa91c66]163
[1210cce]164<screen role="root"><userinput>if [ ! -e /etc/xml/catalog ]; then
[0fa91c66]165 xmlcatalog --noout --create /etc/xml/catalog
166fi &amp;&amp;
[44b376e7]167xmlcatalog --noout --add "delegatePublic" \
168 "-//OASIS//ENTITIES DocBook XML" \
[9c9fb93c]169 "file:///etc/xml/docbook" \
170 /etc/xml/catalog &amp;&amp;
[44b376e7]171xmlcatalog --noout --add "delegatePublic" \
172 "-//OASIS//DTD DocBook XML" \
[9c9fb93c]173 "file:///etc/xml/docbook" \
174 /etc/xml/catalog &amp;&amp;
[44b376e7]175xmlcatalog --noout --add "delegateSystem" \
176 "http://www.oasis-open.org/docbook/" \
[9c9fb93c]177 "file:///etc/xml/docbook" \
178 /etc/xml/catalog &amp;&amp;
[44b376e7]179xmlcatalog --noout --add "delegateURI" \
180 "http://www.oasis-open.org/docbook/" \
[9c9fb93c]181 "file:///etc/xml/docbook" \
[1210cce]182 /etc/xml/catalog</userinput></screen>
183
184 </sect2>
185
186 <sect2 role="configuration">
[6633f56]187 <title>Configuring DocBook-4.5 XML DTD</title>
[1210cce]188
189 <sect3 id="docbook-config">
190 <title>Config Files</title>
191
[fa3edfef]192 <para>
193 <filename>/etc/xml/catalog</filename> and
194 <filename>/etc/xml/docbook</filename>
195 </para>
[1210cce]196
197 <indexterm zone="DocBook docbook-config">
198 <primary sortas="e-etc-xml-docbook">/etc/xml/docbook</primary>
199 </indexterm>
200
201 <indexterm zone="DocBook docbook-config">
202 <primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
203 </indexterm>
204
205 </sect3>
206
207 <sect3>
208 <title>Configuration Information</title>
[8558044]209
[2908b00]210 <caution>
211 <para>
[9ba32ade]212 Various BLFS packages request
[2908b00]213 <application>DocBook XML DTD</application> version 4.x before
214 V&docBook-45-xml-version;, so the following step must be done for
215 those packages to be built successfully.
216 </para>
217 </caution>
[1210cce]218
[fa3edfef]219 <para>
220 The above installation creates the files and updates the catalogs.
221 In order to utilize <application>DocBook XML DTD</application>
[6633f56]222 V&docBook-45-xml-version; when any version 4.x is requested in the System
[fa3edfef]223 Identifier, you need to add additional statements to the catalog
224 files. If you have any of the <application>DocBook XML
225 DTD</application>'s referenced below already installed on your
226 system, remove those entries from the <command>for</command> command
227 below (issue the commands as the <systemitem
228 class="username">root</systemitem> user):
229 </para>
[1210cce]230
[875b36d7]231<screen role="root"><userinput>for DTDVERSION in 4.1.2 4.2 4.3 4.4
[0fa91c66]232do
233 xmlcatalog --noout --add "public" \
234 "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \
235 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \
[9c9fb93c]236 /etc/xml/docbook
[0fa91c66]237 xmlcatalog --noout --add "rewriteSystem" \
238 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
[6633f56]239 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;" \
[9c9fb93c]240 /etc/xml/docbook
[0fa91c66]241 xmlcatalog --noout --add "rewriteURI" \
242 "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \
[6633f56]243 "file:///usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;" \
[9c9fb93c]244 /etc/xml/docbook
[0fa91c66]245 xmlcatalog --noout --add "delegateSystem" \
246 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
247 "file:///etc/xml/docbook" \
[9c9fb93c]248 /etc/xml/catalog
[0fa91c66]249 xmlcatalog --noout --add "delegateURI" \
250 "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \
251 "file:///etc/xml/docbook" \
[9c9fb93c]252 /etc/xml/catalog
[1210cce]253done</userinput></screen>
254
255 </sect3>
256
257 </sect2>
258
259 <sect2 role="content">
260 <title>Contents</title>
261
262 <segmentedlist>
263 <segtitle>Installed Programs</segtitle>
264 <segtitle>Installed Libraries</segtitle>
265 <segtitle>Installed Files</segtitle>
266 <segtitle>Installed Directories</segtitle>
267
268 <seglistitem>
269 <seg>None</seg>
270 <seg>None</seg>
271 <seg>DTD, MOD and ENT files</seg>
[6633f56]272 <seg>/etc/xml and /usr/share/xml/docbook/xml-dtd-&docBook-45-xml-version;</seg>
[1210cce]273 </seglistitem>
274 </segmentedlist>
275
276 <variablelist>
277 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
278 <?dbfo list-presentation="list"?>
279 <?dbhtml list-presentation="table"?>
280
281 <varlistentry id="DTD-files">
282 <term><filename>DTD files</filename></term>
283 <listitem>
[fa3edfef]284 <para>
285 contain a document type definition which defines the element
286 types and the attribute lists that can be used in the corresponding
[4c24eb0a]287 <filename>XML</filename> files
[fa3edfef]288 </para>
[1210cce]289 <indexterm zone="DocBook DTD-files">
[f6be42d]290 <primary sortas="g-XML-DTD-files">XML DTD Files</primary>
[1210cce]291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="MOD-files">
296 <term><filename>MOD files</filename></term>
297 <listitem>
[fa3edfef]298 <para>
299 contain components of the document type definition that
[4c24eb0a]300 are sourced into the <filename>DTD</filename> files
[fa3edfef]301 </para>
[1210cce]302 <indexterm zone="DocBook MOD-files">
[f6be42d]303 <primary sortas="g-XML-MOD-files">XML MOD files</primary>
[1210cce]304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="ENT-files">
309 <term><filename>ENT files</filename></term>
310 <listitem>
[fa3edfef]311 <para>
[4c24eb0a]312 contain lists of named character entities allowed in HTML
[fa3edfef]313 </para>
[1210cce]314 <indexterm zone="DocBook ENT-files">
[f6be42d]315 <primary sortas="g-XML-ENT-files">XML entity files</primary>
[1210cce]316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 </variablelist>
321
322 </sect2>
[eae931b]323
324</sect1>
Note: See TracBrowser for help on using the repository browser.