source: pst/xml/docbook-xsl.xml@ 4fb71d8e

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 4fb71d8e was 2f5888f, checked in by Randy McMurchy <randy@…>, 19 years ago

Minor corrections to the XSL Stylesheets as suggested by Manuel

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

  • Property mode set to 100644
File size: 9.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY docbook-xsl-download-http "http://prdownloads.sourceforge.net/docbook/docbook-xsl-&docbook-xsl-version;.tar.bz2">
8 <!ENTITY docbook-xsl-download-ftp " ">
9 <!ENTITY docbook-xsl-md5sum "6ebd29a67f2dcc3f2220f475ee6f6552">
10 <!ENTITY docbook-xsl-size "1.0 MB">
11 <!ENTITY docbook-xsl-buildsize "35.9 MB (includes installing optional documentation)">
12 <!ENTITY docbook-xsl-time "less than 0.1 SBU">
13
14 <!ENTITY docbook-xsl-doc-download "http://prdownloads.sourceforge.net/docbook/docbook-xsl-doc-&docbook-xsl-version;.tar.bz2">
15]>
16
17<sect1 id="docbook-xsl"
18xreflabel="DocBook XSL Stylesheets-&docbook-xsl-version;">
19 <?dbhtml filename="docbook-xsl.html"?>
20
21 <sect1info>
22 <othername>$LastChangedBy$</othername>
23 <date>$Date$</date>
24 </sect1info>
25
26 <title>DocBook XSL Stylesheets-&docbook-xsl-version;</title>
27
28 <indexterm zone="docbook-xsl">
29 <primary sortas="a-DocBook-XSL-Stylesheets">DocBook XSL
30 Stylesheets</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to DocBook XSL Stylesheets</title>
35
36 <para>The <application>DocBook XSL Stylesheets</application>
37 package contains XSL stylesheets. These are useful for
38 performing transformations on XML DocBook files.</para>
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>Download (HTTP): <ulink url="&docbook-xsl-download-http;"/></para>
44 </listitem>
45 <listitem>
46 <para>Download (FTP): <ulink url="&docbook-xsl-download-ftp;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download MD5 sum: &docbook-xsl-md5sum;</para>
50 </listitem>
51 <listitem>
52 <para>Download size: &docbook-xsl-size;</para>
53 </listitem>
54 <listitem>
55 <para>Estimated disk space required: &docbook-xsl-buildsize;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated build time: &docbook-xsl-time;</para>
59 </listitem>
60 </itemizedlist>
61
62 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
63 <itemizedlist spacing="compact">
64 <listitem>
65 <para>Optional documentation: <ulink
66 url="&docbook-xsl-doc-download;"/></para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">DocBook XSL Stylesheets Dependencies</bridgehead>
71
72 <bridgehead renderas="sect4">Required</bridgehead>
73 <para><xref linkend="libxml2"/></para>
74
75 </sect2>
76
77 <sect2 role="installation">
78 <title>Installation of DocBook XSL Stylesheets</title>
79
80 <para>If you downloaded the optional documentation tarball, unpack it
81 when you unpack the source tarball. The documentation tarball unpacks into
82 subdirectories of the source tree.</para>
83
84 <para>Install <application>DocBook XSL Stylesheets</application>
85 by running the following commands as the
86 <systemitem class="username">root</systemitem> user:</para>
87
88<screen role="root"><userinput>install -v -m755 -d /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
89cp -v -R VERSION common eclipse extensions fo html \
90 htmlhelp images javahelp lib manpages params \
91 profiling slides template website xhtml \
92 /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;</userinput></screen>
93
94 <para>If you downloaded the optional documentation tarball, install the
95 documentation by issuing the following commands as the
96 <systemitem class="username">root</systemitem> user:</para>
97
98<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/docbook-xsl-&docbook-xsl-version; &amp;&amp;
99cp -v -R doc/* /usr/share/doc/docbook-xsl-&docbook-xsl-version;</userinput></screen>
100
101 </sect2>
102
103 <sect2 role="configuration">
104 <title>Configuring DocBook XSL Stylesheets</title>
105
106 <sect3 id="docbook-xsl-config">
107 <title>Config Files</title>
108
109 <para><filename>/etc/xml/catalog</filename></para>
110
111 <indexterm zone="docbook-xsl docbook-xsl-config">
112 <primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
113 </indexterm>
114
115 </sect3>
116
117 <sect3>
118 <title>Configuration Information</title>
119
120 <para>Create (or append) and populate the XML catalog file using the
121 following commands as the <systemitem class="username">root</systemitem>
122 user:</para>
123
124<screen role="root"><userinput>if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi &amp;&amp;
125if [ ! -f /etc/xml/catalog ]; then
126 xmlcatalog --noout --create /etc/xml/catalog
127fi &amp;&amp;
128
129xmlcatalog --noout --add "rewriteSystem" \
130 "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
131 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
132 /etc/xml/catalog &amp;&amp;
133
134xmlcatalog --noout --add "rewriteURI" \
135 "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
136 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
137 /etc/xml/catalog &amp;&amp;
138
139xmlcatalog --noout --add "rewriteSystem" \
140 "http://docbook.sourceforge.net/release/xsl/current" \
141 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
142 /etc/xml/catalog &amp;&amp;
143
144xmlcatalog --noout --add "rewriteURI" \
145 "http://docbook.sourceforge.net/release/xsl/current" \
146 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
147 /etc/xml/catalog</userinput></screen>
148
149 <para>Occasionally, you may find the need to install other versions of
150 the XSL stylesheets as some projects reference a specific version. One
151 example is BLFS-6.0, which needs the 1.67.2 version. In these instances
152 you should install any other required version in its own versioned
153 directory and create catalog entries as follows (substitute the desired
154 version number for <replaceable>[version]</replaceable>):</para>
155
156<screen role="root"><userinput>xmlcatalog --noout --add "rewriteSystem" \
157 "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
158 "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
159 /etc/xml/catalog &amp;&amp;
160
161xmlcatalog --noout --add "rewriteURI" \
162 "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
163 "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
164 /etc/xml/catalog</userinput></screen>
165
166 <para>If you will be using the stylesheets from this installation to
167 render the LFS and HLFS SVN books, then you need to create a symbolic
168 link to the stylesheets directory so that the image files will be
169 found. Create the link by issuing the following command as the
170 <systemitem class="username">root</systemitem> user:</para>
171
172<screen role="root"><userinput>ln -v -sfn xsl-stylesheets-1.69.1 \
173 /usr/share/xml/docbook/xsl-stylesheets-current</userinput></screen>
174
175<!-- The following removed as recommended by Manuel
176
177if [ ! -f /etc/xml/catalog ]; then
178 xmlcatalog -\-noout -\-create /etc/xml/catalog
179fi &amp;&amp;
180
181xmlcatalog -\-noout -\-add "delegateSystem" \
182 "http://docbook.sourceforge.net/release/xsl/" \
183 "file:///etc/xml/docbook" \
184 /etc/xml/catalog &amp;&amp;
185xmlcatalog -\-noout -\-add "delegateURI" \
186 "http://docbook.sourceforge.net/release/xsl/" \
187 "file:///etc/xml/docbook" \
188 /etc/xml/catalog</userinput></screen>
189
190 <para>The system profile needs to be updated to utilize the new installed
191 catalog. This can be done with the following command:<para>
192
193<screen role="root"><userinput>cat &gt; /etc/profile.d/xsl.sh &lt;&lt; "EOF"
194<literal># Set up Environment Variable for XSL Processing
195export XML_CATALOG_FILES="/usr/share/xml/docbook/\
196xsl-stylesheets-&docbook-xsl-version;/catalog.xml /etc/xml/catalog"</literal>
197EOF</userinput></screen>
198
199 <para>The above installation script creates the files and updates the
200 catalog with the current version of the XML stylesheets. Some project
201 stylesheets reference specific versions of XSL stylesheets, like BLFS-6.0,
202 which needs the 1.67.2 version. The following commands can serve as an
203 example for using a single XSL version to support any hard coded
204 versions, as needed. Use the following as an example to use the current
205 version of the stylesheets for the 1.67.2 version. Edit or add to the
206 commands to suit your particular needs. Issue the commands as the
207 <systemitem class="username">root</systemitem> user:</para>
208
209<screen role="root"><userinput>xmlcatalog -\-noout -\-add "rewriteSystem" \
210 "http://docbook.sourceforge.net/release/xsl/1.67.2" \
211 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
212 /etc/xml/catalog &amp;&amp;
213xmlcatalog -\-noout -\-add "rewriteURI" \
214 "http://docbook.sourceforge.net/release/xsl/1.67.2" \
215 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
216 /etc/xml/catalog</userinput></screen>
217
218-->
219
220 </sect3>
221
222 </sect2>
223
224 <sect2 role="content">
225 <title>Contents</title>
226
227 <segmentedlist>
228 <segtitle>Installed Programs</segtitle>
229 <segtitle>Installed Libraries</segtitle>
230 <segtitle>Installed Files</segtitle>
231 <segtitle>Installed Directories</segtitle>
232
233 <seglistitem>
234 <seg>None</seg>
235 <seg>None</seg>
236 <seg>XSL style sheets for HTML and FO</seg>
237 <seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
238 /usr/share/doc/docbook-xsl-&docbook-xsl-version;</seg>
239 </seglistitem>
240 </segmentedlist>
241
242 </sect2>
243
244</sect1>
Note: See TracBrowser for help on using the repository browser.