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 docbook-dsssl-download-http "&sourceforge-dl;/docbook/docbook-dsssl-&docbook-dsssl-version;.tar.bz2">
|
---|
8 | <!ENTITY docbook-dsssl-download-ftp "&gentoo-ftp-repo;/docbook-dsssl-&docbook-dsssl-version;.tar.bz2">
|
---|
9 | <!ENTITY docbook-dsssl-md5sum "bc192d23266b9a664ca0aba4a7794c7c">
|
---|
10 | <!ENTITY docbook-dsssl-size "277 KB">
|
---|
11 | <!ENTITY docbook-dsssl-buildsize "14 MB">
|
---|
12 | <!ENTITY docbook-dsssl-time "less than 0.1 SBU">
|
---|
13 |
|
---|
14 | <!ENTITY docbook-dsssl-doc-download-http "&sourceforge-dl;/docbook/docbook-dsssl-doc-&docbook-dsssl-version;.tar.bz2">
|
---|
15 | <!ENTITY docbook-dsssl-doc-md5sum "9a7b809a21ab7d2749bb328334c380f2">
|
---|
16 | <!ENTITY docbook-dsssl-doc-size "142 KB">
|
---|
17 | ]>
|
---|
18 |
|
---|
19 | <sect1 id="docbook-dsssl"
|
---|
20 | xreflabel="docbook-dsssl-&docbook-dsssl-version;">
|
---|
21 | <?dbhtml filename="docbook-dsssl.html"?>
|
---|
22 |
|
---|
23 |
|
---|
24 | <title>docbook-dsssl-&docbook-dsssl-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="docbook-dsssl">
|
---|
27 | <primary sortas="a-DocBook-DSSSL-Stylesheets">DocBook DSSSL
|
---|
28 | Stylesheets</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to DocBook DSSSL Stylesheets</title>
|
---|
33 |
|
---|
34 | <para>
|
---|
35 | The <application>DocBook DSSSL Stylesheets</application> package
|
---|
36 | contains DSSSL stylesheets. These are used by
|
---|
37 | <application>OpenJade</application> or other tools to transform SGML
|
---|
38 | and XML DocBook files.
|
---|
39 | </para>
|
---|
40 |
|
---|
41 | &lfs120_checked;
|
---|
42 |
|
---|
43 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
44 | <itemizedlist spacing="compact">
|
---|
45 | <listitem>
|
---|
46 | <para>
|
---|
47 | Download (HTTP): <ulink url="&docbook-dsssl-download-http;"/>
|
---|
48 | </para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>
|
---|
52 | Download (FTP): <ulink url="&docbook-dsssl-download-ftp;"/>
|
---|
53 | </para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>
|
---|
57 | Download MD5 sum: &docbook-dsssl-md5sum;
|
---|
58 | </para>
|
---|
59 | </listitem>
|
---|
60 | <listitem>
|
---|
61 | <para>
|
---|
62 | Download size: &docbook-dsssl-size;
|
---|
63 | </para>
|
---|
64 | </listitem>
|
---|
65 | <listitem>
|
---|
66 | <para>
|
---|
67 | Estimated disk space required: &docbook-dsssl-buildsize;
|
---|
68 | </para>
|
---|
69 | </listitem>
|
---|
70 | <listitem>
|
---|
71 | <para>
|
---|
72 | Estimated build time: &docbook-dsssl-time;
|
---|
73 | </para>
|
---|
74 | </listitem>
|
---|
75 | </itemizedlist>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
78 | <itemizedlist spacing='compact'>
|
---|
79 | <title>Documentation and test data</title>
|
---|
80 |
|
---|
81 | <listitem>
|
---|
82 | <para>
|
---|
83 | Download (HTTP):
|
---|
84 | <ulink url="&docbook-dsssl-doc-download-http;"/>
|
---|
85 | </para>
|
---|
86 | </listitem>
|
---|
87 | <listitem>
|
---|
88 | <para>
|
---|
89 | Download MD5 sum: &docbook-dsssl-doc-md5sum;
|
---|
90 | </para>
|
---|
91 | </listitem>
|
---|
92 | <listitem>
|
---|
93 | <para>
|
---|
94 | Download size: &docbook-dsssl-doc-size;
|
---|
95 | </para>
|
---|
96 | </listitem>
|
---|
97 | </itemizedlist>
|
---|
98 |
|
---|
99 | <bridgehead renderas="sect3">DocBook DSSSL Stylesheets
|
---|
100 | Dependencies</bridgehead>
|
---|
101 |
|
---|
102 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
103 | <para role="required">
|
---|
104 | <xref linkend="sgml-common"/>
|
---|
105 | </para>
|
---|
106 |
|
---|
107 | <bridgehead renderas="sect4">Required (to Test the DocBook SGML
|
---|
108 | Toolchain)</bridgehead>
|
---|
109 | <para role="required">
|
---|
110 | <xref linkend="sgml-dtd-3"/>,
|
---|
111 | <xref linkend="sgml-dtd"/>,
|
---|
112 | <xref linkend="opensp"/>, and
|
---|
113 | <xref linkend="openjade"/>
|
---|
114 | </para>
|
---|
115 |
|
---|
116 |
|
---|
117 | </sect2>
|
---|
118 |
|
---|
119 | <sect2 role="installation">
|
---|
120 | <title>Installation of DocBook DSSSL Stylesheets</title>
|
---|
121 |
|
---|
122 | <para>
|
---|
123 | If you downloaded the documentation, run:
|
---|
124 | </para>
|
---|
125 |
|
---|
126 | <screen><userinput>tar -xf ../docbook-dsssl-doc-1.79.tar.bz2 --strip-components=1</userinput></screen>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | Install <application>DocBook DSSSL Stylesheets</application> by running
|
---|
130 | the following commands as the <systemitem
|
---|
131 | class="username">root</systemitem> user:
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <screen role="root"><userinput>install -v -m755 bin/collateindex.pl /usr/bin &&
|
---|
135 | install -v -m644 bin/collateindex.pl.1 /usr/share/man/man1 &&
|
---|
136 | install -v -d -m755 /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version; &&
|
---|
137 | cp -v -R * /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version; &&
|
---|
138 |
|
---|
139 | install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat \
|
---|
140 | /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/catalog &&
|
---|
141 |
|
---|
142 | install-catalog --add /etc/sgml/dsssl-docbook-stylesheets.cat \
|
---|
143 | /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/common/catalog &&
|
---|
144 |
|
---|
145 | install-catalog --add /etc/sgml/sgml-docbook.cat \
|
---|
146 | /etc/sgml/dsssl-docbook-stylesheets.cat</userinput></screen>
|
---|
147 |
|
---|
148 | </sect2>
|
---|
149 |
|
---|
150 | <sect2 role="commands">
|
---|
151 | <title>Command Explanations</title>
|
---|
152 |
|
---|
153 | <para>
|
---|
154 | The above commands create an installation script for this package.
|
---|
155 | </para>
|
---|
156 |
|
---|
157 | </sect2>
|
---|
158 |
|
---|
159 | <sect2 role="testing">
|
---|
160 | <title>Testing the DocBook SGML Toolchain (Optional)</title>
|
---|
161 |
|
---|
162 | <para>
|
---|
163 | The following commands will perform the necessary tests to confirm
|
---|
164 | that your installed DocBook SGML toolchain will produce desired results.
|
---|
165 | You must have the <xref linkend="sgml-dtd-3"/>,
|
---|
166 | <xref linkend="sgml-dtd"/>, <xref linkend="opensp"/>,
|
---|
167 | and <xref linkend="openjade"/> packages installed,
|
---|
168 | and perform the tests as the
|
---|
169 | <systemitem class="username">root</systemitem> user.
|
---|
170 | </para>
|
---|
171 |
|
---|
172 | <para>
|
---|
173 | All tests will be performed from the <filename class='directory'>
|
---|
174 | /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/doc/testdata
|
---|
175 | </filename>
|
---|
176 | directory as the <systemitem class="username">root</systemitem> user:
|
---|
177 | </para>
|
---|
178 |
|
---|
179 | <screen role="root"><userinput>cd /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/doc/testdata</userinput></screen>
|
---|
180 |
|
---|
181 | <para>
|
---|
182 | The first test should produce no output to stdout (your screen) and
|
---|
183 | create a file named <filename>jtest.rtf</filename> in the current
|
---|
184 | directory:
|
---|
185 | </para>
|
---|
186 |
|
---|
187 | <screen role="root"><userinput>openjade -t rtf -d jtest.dsl jtest.sgm</userinput></screen>
|
---|
188 |
|
---|
189 | <para>
|
---|
190 | The next test should return only the following line to stdout:
|
---|
191 | <computeroutput>onsgmls:I: "OpenSP" version "&opensp-version;"</computeroutput>
|
---|
192 | </para>
|
---|
193 |
|
---|
194 | <screen role="root"><userinput>onsgmls -sv test.sgm</userinput></screen>
|
---|
195 |
|
---|
196 | <para>
|
---|
197 | The next test should produce no output to stdout and create a file
|
---|
198 | named <filename>test.rtf</filename> in the current directory:
|
---|
199 | </para>
|
---|
200 |
|
---|
201 | <screen role="root"><userinput>openjade -t rtf \
|
---|
202 | -d /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/print/docbook.dsl \
|
---|
203 | test.sgm</userinput></screen>
|
---|
204 |
|
---|
205 | <para>
|
---|
206 | The last test should produce no output to stdout and create a file
|
---|
207 | named <filename>c1.htm</filename> in the current directory:
|
---|
208 | </para>
|
---|
209 |
|
---|
210 | <screen role="root"><userinput>openjade -t sgml \
|
---|
211 | -d /usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;/html/docbook.dsl \
|
---|
212 | test.sgm</userinput></screen>
|
---|
213 |
|
---|
214 | <para>
|
---|
215 | Finally, clean up:
|
---|
216 | </para>
|
---|
217 |
|
---|
218 | <screen role="root"><userinput>rm jtest.rtf test.rtf c1.htm</userinput></screen>
|
---|
219 |
|
---|
220 | </sect2>
|
---|
221 |
|
---|
222 | <sect2 role="content">
|
---|
223 | <title>Contents</title>
|
---|
224 |
|
---|
225 | <segmentedlist>
|
---|
226 | <segtitle>Installed Program</segtitle>
|
---|
227 | <segtitle>Installed Libraries</segtitle>
|
---|
228 | <segtitle>Installed Files</segtitle>
|
---|
229 | <segtitle>Installed Directory</segtitle>
|
---|
230 |
|
---|
231 | <seglistitem>
|
---|
232 | <seg>collateindex.pl</seg>
|
---|
233 | <seg>None</seg>
|
---|
234 | <seg>DSSSL stylesheets</seg>
|
---|
235 | <seg>/usr/share/sgml/docbook/dsssl-stylesheets-&docbook-dsssl-version;</seg>
|
---|
236 | </seglistitem>
|
---|
237 | </segmentedlist>
|
---|
238 |
|
---|
239 | <variablelist>
|
---|
240 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
241 | <?dbfo list-presentation="list"?>
|
---|
242 | <?dbhtml list-presentation="table"?>
|
---|
243 |
|
---|
244 | <varlistentry id="collateindex.pl">
|
---|
245 | <term><command>collateindex.pl</command></term>
|
---|
246 | <listitem>
|
---|
247 | <para>
|
---|
248 | is a <application>Perl</application> script that creates a
|
---|
249 | DocBook index from raw index data
|
---|
250 | </para>
|
---|
251 | <indexterm zone="docbook-dsssl collateindex.pl">
|
---|
252 | <primary sortas="b-collateindex.pl">collateindex.pl</primary>
|
---|
253 | </indexterm>
|
---|
254 | </listitem>
|
---|
255 | </varlistentry>
|
---|
256 |
|
---|
257 | </variablelist>
|
---|
258 |
|
---|
259 | </sect2>
|
---|
260 |
|
---|
261 | </sect1>
|
---|