source: pst/sgml/docbook-dsssl.xml@ 058dd48

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 058dd48 was 058dd48, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated to DocBook DSSSL Stylesheets-1.79 (with rewrite of the instructions); fixed deprecated tar option in Vim instructions

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

  • Property mode set to 100644
File size: 9.2 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 docbook-dsssl-download-http "http://prdownloads.sourceforge.net/docbook/docbook-dsssl-&docbook-dsssl-version;.tar.bz2">
7 <!ENTITY docbook-dsssl-download-ftp " ">
8 <!ENTITY docbook-dsssl-md5sum "bc192d23266b9a664ca0aba4a7794c7c">
9 <!ENTITY docbook-dsssl-size "277 KB">
10 <!ENTITY docbook-dsssl-buildsize "14 MB">
11 <!ENTITY docbook-dsssl-time "0.01 SBU">
12
13 <!ENTITY docbook-dsssl-doc-download-http "http://prdownloads.sourceforge.net/docbook/docbook-dsssl-doc-&docbook-dsssl-version;.tar.bz2">
14 <!ENTITY docbook-dsssl-doc-md5sum "9a7b809a21ab7d2749bb328334c380f2">
15 <!ENTITY docbook-dsssl-doc-size "142 KB">
16]>
17
18<sect1 id="docbook-dsssl"
19xreflabel="DocBook DSSSL Stylesheets-&docbook-dsssl-version;">
20<sect1info>
21<othername>$LastChangedBy$</othername>
22<date>$Date$</date>
23</sect1info>
24<?dbhtml filename="docbook-dsssl.html"?>
25<title>DocBook DSSSL Stylesheets-&docbook-dsssl-version;</title>
26<indexterm zone="docbook-dsssl">
27<primary sortas="a-DocBook-DSSSL-Stylesheets">DocBook DSSSL
28Stylesheets</primary></indexterm>
29
30<sect2>
31<title>Introduction to <application>DocBook <acronym>DSSSL</acronym>
32Stylesheets</application></title>
33
34<para>The <application>DocBook <acronym>DSSSL</acronym>
35Stylesheets</application> package contains <acronym>DSSSL</acronym>
36stylesheets. These are used by <application>OpenJade</application> or other
37tools to transform <acronym>SGML</acronym> and <acronym>XML</acronym> DocBook
38files.</para>
39
40<sect3><title>Package information</title>
41<itemizedlist spacing='compact'>
42<listitem><para>Download (HTTP):
43<ulink url="&docbook-dsssl-download-http;"/></para></listitem>
44<listitem><para>Download (FTP):
45<ulink url="&docbook-dsssl-download-ftp;"/></para></listitem>
46<listitem><para>Download MD5 sum: &docbook-dsssl-md5sum;</para></listitem>
47<listitem><para>Download size: &docbook-dsssl-size;</para></listitem>
48<listitem><para>Estimated disk space required:
49&docbook-dsssl-buildsize;</para></listitem>
50<listitem><para>Estimated build time:
51&docbook-dsssl-time;</para></listitem></itemizedlist>
52</sect3>
53
54<sect3><title>Additional downloads</title>
55<itemizedlist spacing='compact'>
56<listitem><para>Documentation and test data:
57<ulink url="&docbook-dsssl-doc-download-http;"/></para></listitem>
58<listitem><para>Download MD5 sum: &docbook-dsssl-doc-md5sum;</para></listitem>
59<listitem><para>Download size: &docbook-dsssl-doc-size;</para></listitem>
60</itemizedlist>
61</sect3>
62
63<sect3><title><application>DocBook <acronym>DSSSL</acronym>
64Stylesheets</application> dependencies</title>
65<sect4><title>Required</title>
66<para><xref linkend="sgml-common"/></para>
67</sect4>
68
69<sect4><title>Required (to test the DocBook <acronym>SGML</acronym>
70toolchain)</title>
71<para><xref linkend="sgml-dtd"/>,
72<xref linkend="opensp"/> and
73<xref linkend="openjade"/></para>
74</sect4>
75</sect3>
76
77</sect2>
78
79<sect2>
80<title>Installation of <application>DocBook <acronym>DSSSL</acronym>
81Stylesheets</application></title>
82
83<para>Ensure you unpack both the source and documentation tarballs before
84beginning the build.</para>
85
86<para>Install <application>DocBook <acronym>DSSSL</acronym>
87Stylesheets</application> by running the following commands as the root
88user:</para>
89
90<!--
91<screen><userinput><command>mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/dtds/decls &amp;&amp;
92mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/lib &amp;&amp;
93mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/common &amp;&amp;
94mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/html &amp;&amp;
95mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/print &amp;&amp;
96mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/test &amp;&amp;
97mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/images &amp;&amp;
98install bin/collateindex.pl /usr/bin &amp;&amp;
99cp catalog VERSION /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version; &amp;&amp;
100cp dtds/decls/*.dcl \
101 /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/dtds/decls &amp;&amp;
102cp lib/dblib.dsl /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/lib &amp;&amp;
103cp common/*.dsl /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/common &amp;&amp;
104cp common/*.ent /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/common &amp;&amp;
105cp html/*.dsl /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/html &amp;&amp;
106cp print/*.dsl /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/print &amp;&amp;
107cp images/*.gif /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/images &amp;&amp;
108 -->
109
110<screen><userinput role='root'><command>install -v -m755 bin/collateindex.pl /usr/bin &amp;&amp;
111install -v -m644 bin/collateindex.pl.1 /usr/share/man/man1 &amp;&amp;
112install -v -d -m755 /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version; &amp;&amp;
113cp -v -R * /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version; &amp;&amp;
114install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat \
115 /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/catalog &amp;&amp;
116install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat \
117 /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/common/catalog &amp;&amp;
118install-catalog --add /etc/sgml/sgml-docbook.cat \
119 /etc/sgml/dsssl-docbook-stylesheets.cat</command></userinput></screen>
120
121</sect2>
122
123<sect2>
124<title>Command explanations</title>
125
126<para>The above commands create a <command>make install</command> script
127for this package.</para>
128
129</sect2>
130
131<sect2>
132<title>Testing the DocBook <acronym>SGML</acronym> toolchain (optional)</title>
133
134<para>The following commands will perform the necessary tests to confirm that
135your installed DocBook <acronym>SGML</acronym> toolchain will produce desired
136results. You must have the <xref linkend="sgml-dtd"/>, <xref linkend="opensp"/>
137and <xref linkend="openjade"/> packages installed and perform the tests as the
138root user.</para>
139
140<para>All tests will be performed from the <filename
141class='directory'>/usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/doc/testdata</filename>
142directory:</para>
143
144<screen><userinput role='root'><command>cd /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/doc/testdata</command></userinput></screen>
145
146<para>The first test should produce no output to stdout (your screen) and
147create a file named <filename>jtest.rtf</filename> in the current
148directory:</para>
149
150<screen><userinput role='root'><command>openjade -t rtf -d jtest.dsl jtest.sgm</command></userinput></screen>
151
152<para>The next test should return only the following line to stdout:
153<computeroutput>onsgmls:I: "OpenSP" version "1.5.1"</computeroutput></para>
154
155<screen><userinput role='root'><command>onsgmls -sv test.sgm</command></userinput></screen>
156
157<para>The next test should produce no output to stdout and create a file named
158<filename>test.rtf</filename> in the current directory:</para>
159
160<screen><userinput role='root'><command>openjade -t rtf \
161 -d /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/print/docbook.dsl \
162 test.sgm</command></userinput></screen>
163
164<para>The last test should produce no output to stdout and create a file named
165<filename>c1.htm</filename> in the current directory:</para>
166
167<screen><userinput role='root'><command>openjade -t sgml \
168 -d /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/html/docbook.dsl \
169 test.sgm</command></userinput></screen>
170
171</sect2>
172
173<!--
174<sect2>
175<title>Configuring <application>DocBook <acronym>DSSSL</acronym>
176Stylesheets</application></title>
177
178<sect3><title>Configuration Information</title>
179
180<para>The following configuration is necessary in order to utilize
181<application>OpenJade</application> to convert the <acronym>BLFS</acronym>
182Book from <acronym>XML</acronym> to <acronym>HTML</acronym>:</para>
183
184<screen><userinput><command>ln -sf <replaceable>[your home directory]</replaceable>/BLFS/BOOK/blfs.dsl \
185 /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/html/</command></userinput></screen>
186</sect3>
187
188</sect2>
189-->
190
191<sect2>
192<title>Contents</title>
193
194<segmentedlist>
195<segtitle>Installed Program</segtitle>
196<segtitle>Installed Libraries</segtitle>
197<segtitle>Installed Files</segtitle>
198<segtitle>Installed Directory</segtitle>
199
200<seglistitem>
201<seg>collateindex.pl</seg>
202<seg>None</seg>
203<seg><acronym>DSSSL</acronym> stylesheets</seg>
204<seg>/usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;</seg>
205</seglistitem>
206</segmentedlist>
207
208<variablelist>
209<bridgehead renderas="sect3">Short Descriptions</bridgehead>
210<?dbfo list-presentation="list"?>
211
212<varlistentry id="collateindex.pl">
213<term><command>collateindex.pl</command></term>
214<listitem><para>is a <application>Perl</application> script that creates a
215DocBook index from raw index data.</para>
216<indexterm zone="docbook-dsssl collateindex.pl">
217<primary sortas="b-collateindex.pl">collateindex.pl</primary>
218</indexterm></listitem>
219</varlistentry>
220</variablelist>
221
222</sect2>
223
224</sect1>
225
Note: See TracBrowser for help on using the repository browser.