1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
2 | "http://www.oasis-open.org/docbook/xml/4.4/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"
|
---|
19 | xreflabel="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
|
---|
28 | Stylesheets</primary></indexterm>
|
---|
29 |
|
---|
30 | <sect2>
|
---|
31 | <title>Introduction to <application>DocBook <acronym>DSSSL</acronym>
|
---|
32 | Stylesheets</application></title>
|
---|
33 |
|
---|
34 | <para>The <application>DocBook <acronym>DSSSL</acronym>
|
---|
35 | Stylesheets</application> package contains <acronym>DSSSL</acronym>
|
---|
36 | stylesheets. These are used by <application>OpenJade</application> or other
|
---|
37 | tools to transform <acronym>SGML</acronym> and <acronym>XML</acronym> DocBook
|
---|
38 | files.</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>
|
---|
64 | Stylesheets</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>
|
---|
70 | toolchain)</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>
|
---|
81 | Stylesheets</application></title>
|
---|
82 |
|
---|
83 | <para>Ensure you unpack both the source and documentation tarballs before
|
---|
84 | beginning the build.</para>
|
---|
85 |
|
---|
86 | <para>Install <application>DocBook <acronym>DSSSL</acronym>
|
---|
87 | Stylesheets</application> by running the following commands as the root
|
---|
88 | user:</para>
|
---|
89 |
|
---|
90 | <!--
|
---|
91 | <screen><userinput><command>mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/dtds/decls &&
|
---|
92 | mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/lib &&
|
---|
93 | mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/common &&
|
---|
94 | mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/html &&
|
---|
95 | mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/print &&
|
---|
96 | mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/test &&
|
---|
97 | mkdir -p /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/images &&
|
---|
98 | install bin/collateindex.pl /usr/bin &&
|
---|
99 | cp catalog VERSION /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version; &&
|
---|
100 | cp dtds/decls/*.dcl \
|
---|
101 | /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/dtds/decls &&
|
---|
102 | cp lib/dblib.dsl /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/lib &&
|
---|
103 | cp common/*.dsl /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/common &&
|
---|
104 | cp common/*.ent /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/common &&
|
---|
105 | cp html/*.dsl /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/html &&
|
---|
106 | cp print/*.dsl /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/print &&
|
---|
107 | cp images/*.gif /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/images &&
|
---|
108 | -->
|
---|
109 |
|
---|
110 | <screen><userinput role='root'><command>install -v -m755 bin/collateindex.pl /usr/bin &&
|
---|
111 | install -v -m644 bin/collateindex.pl.1 /usr/share/man/man1 &&
|
---|
112 | install -v -d -m755 /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version; &&
|
---|
113 | cp -v -R * /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version; &&
|
---|
114 | install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat \
|
---|
115 | /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/catalog &&
|
---|
116 | install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat \
|
---|
117 | /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/common/catalog &&
|
---|
118 | install-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
|
---|
127 | for 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
|
---|
135 | your installed DocBook <acronym>SGML</acronym> toolchain will produce desired
|
---|
136 | results. You must have the <xref linkend="sgml-dtd"/>, <xref linkend="opensp"/>
|
---|
137 | and <xref linkend="openjade"/> packages installed and perform the tests as the
|
---|
138 | root user.</para>
|
---|
139 |
|
---|
140 | <para>All tests will be performed from the <filename
|
---|
141 | class='directory'>/usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/doc/testdata</filename>
|
---|
142 | directory:</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
|
---|
147 | create a file named <filename>jtest.rtf</filename> in the current
|
---|
148 | directory:</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>
|
---|
176 | Stylesheets</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>
|
---|
182 | Book 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
|
---|
215 | DocBook 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 |
|
---|