source: pst/sgml/sgml-dtd-3.xml@ cb6de2e

10.0 10.1 11.0 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since cb6de2e was cb6de2e, checked in by Randy McMurchy <randy@…>, 18 years ago

Added FTP download location to OpenSP; changed FTP download location and removed redundant sed command in DocBook-DTD-3.1 instructions; added UnZip as an optional dependency and changed sed commands to in-place edits on DocBook-DTD instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2503 af4574ff-66df-0310-9fd7-8a98e5e911e0

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