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-xsl-download-http "&sourceforge-repo;/docbook/docbook-xsl-&docbook-xsl-version;.tar.bz2">
|
---|
8 | <!ENTITY docbook-xsl-download-ftp " ">
|
---|
9 | <!ENTITY docbook-xsl-md5sum "b48cbf929a2ad85e6672f710777ca7bc">
|
---|
10 | <!ENTITY docbook-xsl-size "21 MB">
|
---|
11 | <!ENTITY docbook-xsl-buildsize "49 MB (includes installing optional documentation)">
|
---|
12 | <!ENTITY docbook-xsl-time "less than 0.1 SBU">
|
---|
13 |
|
---|
14 | <!ENTITY docbook-xsl-doc-download "&sourceforge-repo;/docbook/docbook-xsl-doc-&docbook-xsl-version;.tar.bz2">
|
---|
15 | <!ENTITY docbook-xsl-doc-md5sum "7eb51958e1bf97f3c5b013c42eb61e31">
|
---|
16 | <!ENTITY docbook-xsl-doc-size "1.0 MB">
|
---|
17 | ]>
|
---|
18 |
|
---|
19 | <sect1 id="docbook-xsl"
|
---|
20 | xreflabel="docbook-xsl-&docbook-xsl-version;">
|
---|
21 | <?dbhtml filename="docbook-xsl.html"?>
|
---|
22 |
|
---|
23 | <sect1info>
|
---|
24 | <othername>$LastChangedBy$</othername>
|
---|
25 | <date>$Date$</date>
|
---|
26 | </sect1info>
|
---|
27 |
|
---|
28 | <title>docbook-xsl-&docbook-xsl-version;</title>
|
---|
29 |
|
---|
30 | <indexterm zone="docbook-xsl">
|
---|
31 | <primary sortas="a-DocBook-XSL-Stylesheets">DocBook XSL
|
---|
32 | Stylesheets</primary>
|
---|
33 | </indexterm>
|
---|
34 |
|
---|
35 | <sect2 role="package">
|
---|
36 | <title>Introduction to DocBook XSL Stylesheets</title>
|
---|
37 |
|
---|
38 | <para>The <application>DocBook XSL Stylesheets</application>
|
---|
39 | package contains XSL stylesheets. These are useful for
|
---|
40 | performing transformations on XML DocBook files.</para>
|
---|
41 |
|
---|
42 | &lfs78_checked;
|
---|
43 |
|
---|
44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
45 | <itemizedlist spacing="compact">
|
---|
46 | <listitem>
|
---|
47 | <para>Download (HTTP): <ulink url="&docbook-xsl-download-http;"/></para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>Download (FTP): <ulink url="&docbook-xsl-download-ftp;"/></para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>Download MD5 sum: &docbook-xsl-md5sum;</para>
|
---|
54 | </listitem>
|
---|
55 | <listitem>
|
---|
56 | <para>Download size: &docbook-xsl-size;</para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>Estimated disk space required: &docbook-xsl-buildsize;</para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>Estimated build time: &docbook-xsl-time;</para>
|
---|
63 | </listitem>
|
---|
64 | </itemizedlist>
|
---|
65 |
|
---|
66 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
67 | <itemizedlist spacing="compact">
|
---|
68 | <title>Optional documentation</title>
|
---|
69 | <listitem>
|
---|
70 | <para>Download (HTTP): <ulink url="&docbook-xsl-doc-download;"/></para>
|
---|
71 | </listitem>
|
---|
72 | <listitem>
|
---|
73 | <para>Download MD5 sum: &docbook-xsl-doc-md5sum;</para>
|
---|
74 | </listitem>
|
---|
75 | <listitem>
|
---|
76 | <para>Download size: &docbook-xsl-doc-size;</para>
|
---|
77 | </listitem>
|
---|
78 | </itemizedlist>
|
---|
79 |
|
---|
80 | <bridgehead renderas="sect3">DocBook XSL Stylesheets Dependencies</bridgehead>
|
---|
81 |
|
---|
82 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
83 | <para role="recommended"><xref linkend="libxml2"/></para>
|
---|
84 |
|
---|
85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
86 | <para role="optional">
|
---|
87 | <xref linkend="apache-ant"/> (to produce <quote>webhelp</quote> documents),
|
---|
88 | <xref linkend="libxslt"/> (or any other XSLT processor, to process
|
---|
89 | Docbook documents),
|
---|
90 | <xref linkend="python2"/> or <xref linkend="python3"/> (to use
|
---|
91 | <quote>extensions</quote>),
|
---|
92 | <xref linkend="ruby"/> (to utilize the <quote>epub</quote> stylesheets),
|
---|
93 | <xref linkend="zip"/> (to produce <quote>epub3</quote> documents), and
|
---|
94 | <ulink url="http://sourceforge.net/projects/saxon/files/saxon6/">
|
---|
95 | Saxon6
|
---|
96 | </ulink> and
|
---|
97 | <ulink url="http://xerces.apache.org/xerces2-j/">Xerces2 Java</ulink>
|
---|
98 | (used with <xref linkend="apache-ant"/> to produce <quote>webhelp</quote>
|
---|
99 | documents)
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <para condition="html" role="usernotes">User Notes:
|
---|
103 | <ulink url="&blfs-wiki;/docbook-xsl"/></para>
|
---|
104 |
|
---|
105 | </sect2>
|
---|
106 |
|
---|
107 | <sect2 role="installation">
|
---|
108 | <title>Installation of DocBook XSL Stylesheets</title>
|
---|
109 |
|
---|
110 | <para>If you downloaded the optional documentation tarball, unpack it
|
---|
111 | with the following command:</para>
|
---|
112 |
|
---|
113 | <screen><userinput>tar -xf ../docbook-xsl-doc-&docbook-xsl-version;.tar.bz2 --strip-components=1</userinput></screen>
|
---|
114 |
|
---|
115 | <para>BLFS does not install the required packages to run the test suite
|
---|
116 | and provide meaningful results.</para>
|
---|
117 |
|
---|
118 | <para>Install <application>DocBook XSL Stylesheets</application>
|
---|
119 | by running the following commands as the
|
---|
120 | <systemitem class="username">root</systemitem> user:</para>
|
---|
121 |
|
---|
122 | <screen role="root"><userinput>install -v -m755 -d /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
123 |
|
---|
124 | cp -v -R VERSION assembly common eclipse epub epub3 extensions fo \
|
---|
125 | highlighting html htmlhelp images javahelp lib manpages params \
|
---|
126 | profiling roundtrip slides template tests tools webhelp website \
|
---|
127 | xhtml xhtml-1_1 xhtml5 \
|
---|
128 | /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
129 |
|
---|
130 | ln -s VERSION /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;/VERSION.xsl &&
|
---|
131 |
|
---|
132 | install -v -m644 -D README \
|
---|
133 | /usr/share/doc/docbook-xsl-&docbook-xsl-version;/README.txt &&
|
---|
134 | install -v -m644 RELEASE-NOTES* NEWS* \
|
---|
135 | /usr/share/doc/docbook-xsl-&docbook-xsl-version;</userinput></screen>
|
---|
136 |
|
---|
137 | <para>If you downloaded the optional documentation tarball, install the
|
---|
138 | documentation by issuing the following command as the
|
---|
139 | <systemitem class="username">root</systemitem> user:</para>
|
---|
140 |
|
---|
141 | <screen role="root"><userinput>cp -v -R doc/* /usr/share/doc/docbook-xsl-&docbook-xsl-version;</userinput></screen>
|
---|
142 |
|
---|
143 | </sect2>
|
---|
144 |
|
---|
145 | <sect2 role="configuration">
|
---|
146 | <title>Configuring DocBook XSL Stylesheets</title>
|
---|
147 |
|
---|
148 | <sect3 id="docbook-xsl-config">
|
---|
149 | <title>Config Files</title>
|
---|
150 |
|
---|
151 | <para><filename>/etc/xml/catalog</filename></para>
|
---|
152 |
|
---|
153 | <indexterm zone="docbook-xsl docbook-xsl-config">
|
---|
154 | <primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
|
---|
155 | </indexterm>
|
---|
156 |
|
---|
157 | </sect3>
|
---|
158 |
|
---|
159 | <sect3>
|
---|
160 | <title>Configuration Information</title>
|
---|
161 |
|
---|
162 | <para>Create (or append) and populate the XML catalog file using the
|
---|
163 | following commands as the <systemitem class="username">root</systemitem>
|
---|
164 | user:</para>
|
---|
165 |
|
---|
166 | <screen role="root"><userinput>if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi &&
|
---|
167 | if [ ! -f /etc/xml/catalog ]; then
|
---|
168 | xmlcatalog --noout --create /etc/xml/catalog
|
---|
169 | fi &&
|
---|
170 |
|
---|
171 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
172 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
173 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
174 | /etc/xml/catalog &&
|
---|
175 |
|
---|
176 | xmlcatalog --noout --add "rewriteURI" \
|
---|
177 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
178 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
179 | /etc/xml/catalog &&
|
---|
180 |
|
---|
181 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
182 | "http://docbook.sourceforge.net/release/xsl/current" \
|
---|
183 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
184 | /etc/xml/catalog &&
|
---|
185 |
|
---|
186 | xmlcatalog --noout --add "rewriteURI" \
|
---|
187 | "http://docbook.sourceforge.net/release/xsl/current" \
|
---|
188 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
189 | /etc/xml/catalog</userinput></screen>
|
---|
190 |
|
---|
191 | <para>Occasionally, you may find the need to install other versions of
|
---|
192 | the XSL stylesheets as some projects reference a specific version. One
|
---|
193 | example is BLFS-6.0, which required the 1.67.2 version. In these instances
|
---|
194 | you should install any other required version in its own versioned
|
---|
195 | directory and create catalog entries as follows (substitute the desired
|
---|
196 | version number for <replaceable><version></replaceable>):</para>
|
---|
197 |
|
---|
198 | <screen role="root"><userinput>xmlcatalog --noout --add "rewriteSystem" \
|
---|
199 | "http://docbook.sourceforge.net/release/xsl/<replaceable><version></replaceable>" \
|
---|
200 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable><version></replaceable>" \
|
---|
201 | /etc/xml/catalog &&
|
---|
202 |
|
---|
203 | xmlcatalog --noout --add "rewriteURI" \
|
---|
204 | "http://docbook.sourceforge.net/release/xsl/<replaceable><version></replaceable>" \
|
---|
205 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable><version></replaceable>" \
|
---|
206 | /etc/xml/catalog</userinput></screen>
|
---|
207 |
|
---|
208 | <!-- Commented uot until be sure that there is no objetions from any of the
|
---|
209 | {C,H}LFS editors
|
---|
210 |
|
---|
211 | <para>If you will be using the stylesheets from this installation to
|
---|
212 | render the LFS and HLFS SVN books, then you need to create a symbolic
|
---|
213 | link to the stylesheets directory so that the image files will be
|
---|
214 | found. Create the link by issuing the following command as the
|
---|
215 | <systemitem class="username">root</systemitem> user:</para>
|
---|
216 |
|
---|
217 | <screen role="root"><userinput>ln -v -sfn xsl-stylesheets-1.69.1 \
|
---|
218 | /usr/share/xml/docbook/xsl-stylesheets-current</userinput></screen>
|
---|
219 | -->
|
---|
220 |
|
---|
221 | </sect3>
|
---|
222 |
|
---|
223 | </sect2>
|
---|
224 |
|
---|
225 | <sect2 role="content">
|
---|
226 | <title>Contents</title>
|
---|
227 |
|
---|
228 | <segmentedlist>
|
---|
229 | <segtitle>Installed Programs</segtitle>
|
---|
230 | <segtitle>Installed Libraries</segtitle>
|
---|
231 | <segtitle>Installed Directories</segtitle>
|
---|
232 |
|
---|
233 | <seglistitem>
|
---|
234 | <seg>None</seg>
|
---|
235 | <seg>None</seg>
|
---|
236 | <seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
|
---|
237 | /usr/share/doc/docbook-xsl-&docbook-xsl-version;</seg>
|
---|
238 | </seglistitem>
|
---|
239 | </segmentedlist>
|
---|
240 |
|
---|
241 | </sect2>
|
---|
242 |
|
---|
243 | </sect1>
|
---|