source: pst/xml/docbook-xsl.xml@ d352a28

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 d352a28 was d352a28, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Adding automatized scripts generation related tags. Pst part.

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

  • Property mode set to 100644
File size: 9.8 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 <keywordset>
25 <keyword role="package">docbook-xsl-&docbook-xsl-version;.tar</keyword>
26 <keyword role="ftptdir">docbook-xsl</keyword>
27 </keywordset>
28 </sect1info>
29
30 <title>DocBook XSL Stylesheets-&docbook-xsl-version;</title>
31
32 <indexterm zone="docbook-xsl">
33 <primary sortas="a-DocBook-XSL-Stylesheets">DocBook XSL
34 Stylesheets</primary>
35 </indexterm>
36
37 <sect2 role="package">
38 <title>Introduction to DocBook XSL Stylesheets</title>
39
40 <para>The <application>DocBook XSL Stylesheets</application>
41 package contains XSL stylesheets. These are useful for
42 performing transformations on XML DocBook files.</para>
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 <listitem>
69 <para>Optional documentation: <ulink
70 url="&docbook-xsl-doc-download;"/></para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect3">DocBook XSL Stylesheets Dependencies</bridgehead>
75
76 <bridgehead renderas="sect4">Required</bridgehead>
77 <para role="required"><xref linkend="libxml2"/></para>
78
79 </sect2>
80
81 <sect2 role="installation">
82 <title>Installation of DocBook XSL Stylesheets</title>
83
84 <para>If you downloaded the optional documentation tarball, unpack it
85 when you unpack the source tarball. The documentation tarball unpacks into
86 subdirectories of the source tree.</para>
87
88 <para>Install <application>DocBook XSL Stylesheets</application>
89 by running the following commands as the
90 <systemitem class="username">root</systemitem> user:</para>
91
92<screen role="root"><userinput>install -v -m755 -d /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
93cp -v -R VERSION common eclipse extensions fo html \
94 htmlhelp images javahelp lib manpages params \
95 profiling slides template website xhtml \
96 /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;</userinput></screen>
97
98 <para>If you downloaded the optional documentation tarball, install the
99 documentation by issuing the following commands as the
100 <systemitem class="username">root</systemitem> user:</para>
101
102<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/docbook-xsl-&docbook-xsl-version; &amp;&amp;
103cp -v -R doc/* /usr/share/doc/docbook-xsl-&docbook-xsl-version;</userinput></screen>
104
105 </sect2>
106
107 <sect2 role="configuration">
108 <title>Configuring DocBook XSL Stylesheets</title>
109
110 <sect3 id="docbook-xsl-config">
111 <title>Config Files</title>
112
113 <para><filename>/etc/xml/catalog</filename></para>
114
115 <indexterm zone="docbook-xsl docbook-xsl-config">
116 <primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
117 </indexterm>
118
119 </sect3>
120
121 <sect3>
122 <title>Configuration Information</title>
123
124 <para>Create (or append) and populate the XML catalog file using the
125 following commands as the <systemitem class="username">root</systemitem>
126 user:</para>
127
128<screen role="root"><userinput>if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi &amp;&amp;
129if [ ! -f /etc/xml/catalog ]; then
130 xmlcatalog --noout --create /etc/xml/catalog
131fi &amp;&amp;
132
133xmlcatalog --noout --add "rewriteSystem" \
134 "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
135 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
136 /etc/xml/catalog &amp;&amp;
137
138xmlcatalog --noout --add "rewriteURI" \
139 "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
140 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
141 /etc/xml/catalog &amp;&amp;
142
143xmlcatalog --noout --add "rewriteSystem" \
144 "http://docbook.sourceforge.net/release/xsl/current" \
145 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
146 /etc/xml/catalog &amp;&amp;
147
148xmlcatalog --noout --add "rewriteURI" \
149 "http://docbook.sourceforge.net/release/xsl/current" \
150 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
151 /etc/xml/catalog</userinput></screen>
152
153 <para>Occasionally, you may find the need to install other versions of
154 the XSL stylesheets as some projects reference a specific version. One
155 example is BLFS-6.0, which needs the 1.67.2 version. In these instances
156 you should install any other required version in its own versioned
157 directory and create catalog entries as follows (substitute the desired
158 version number for <replaceable>[version]</replaceable>):</para>
159
160<screen role="root"><userinput>xmlcatalog --noout --add "rewriteSystem" \
161 "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
162 "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
163 /etc/xml/catalog &amp;&amp;
164
165xmlcatalog --noout --add "rewriteURI" \
166 "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
167 "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
168 /etc/xml/catalog</userinput></screen>
169
170 <para>If you will be using the stylesheets from this installation to
171 render the LFS and HLFS SVN books, then you need to create a symbolic
172 link to the stylesheets directory so that the image files will be
173 found. Create the link by issuing the following command as the
174 <systemitem class="username">root</systemitem> user:</para>
175
176<screen role="root"><userinput>ln -v -sfn xsl-stylesheets-1.69.1 \
177 /usr/share/xml/docbook/xsl-stylesheets-current</userinput></screen>
178
179<!-- The following removed as recommended by Manuel
180
181if [ ! -f /etc/xml/catalog ]; then
182 xmlcatalog -\-noout -\-create /etc/xml/catalog
183fi &amp;&amp;
184
185xmlcatalog -\-noout -\-add "delegateSystem" \
186 "http://docbook.sourceforge.net/release/xsl/" \
187 "file:///etc/xml/docbook" \
188 /etc/xml/catalog &amp;&amp;
189xmlcatalog -\-noout -\-add "delegateURI" \
190 "http://docbook.sourceforge.net/release/xsl/" \
191 "file:///etc/xml/docbook" \
192 /etc/xml/catalog</userinput></screen>
193
194 <para>The system profile needs to be updated to utilize the new installed
195 catalog. This can be done with the following command:<para>
196
197<screen role="root"><userinput>cat &gt; /etc/profile.d/xsl.sh &lt;&lt; "EOF"
198<literal># Set up Environment Variable for XSL Processing
199export XML_CATALOG_FILES="/usr/share/xml/docbook/\
200xsl-stylesheets-&docbook-xsl-version;/catalog.xml /etc/xml/catalog"</literal>
201EOF</userinput></screen>
202
203 <para>The above installation script creates the files and updates the
204 catalog with the current version of the XML stylesheets. Some project
205 stylesheets reference specific versions of XSL stylesheets, like BLFS-6.0,
206 which needs the 1.67.2 version. The following commands can serve as an
207 example for using a single XSL version to support any hard coded
208 versions, as needed. Use the following as an example to use the current
209 version of the stylesheets for the 1.67.2 version. Edit or add to the
210 commands to suit your particular needs. Issue the commands as the
211 <systemitem class="username">root</systemitem> user:</para>
212
213<screen role="root"><userinput>xmlcatalog -\-noout -\-add "rewriteSystem" \
214 "http://docbook.sourceforge.net/release/xsl/1.67.2" \
215 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
216 /etc/xml/catalog &amp;&amp;
217xmlcatalog -\-noout -\-add "rewriteURI" \
218 "http://docbook.sourceforge.net/release/xsl/1.67.2" \
219 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
220 /etc/xml/catalog</userinput></screen>
221
222-->
223
224 </sect3>
225
226 </sect2>
227
228 <sect2 role="content">
229 <title>Contents</title>
230
231 <segmentedlist>
232 <segtitle>Installed Programs</segtitle>
233 <segtitle>Installed Libraries</segtitle>
234 <segtitle>Installed Files</segtitle>
235 <segtitle>Installed Directories</segtitle>
236
237 <seglistitem>
238 <seg>None</seg>
239 <seg>None</seg>
240 <seg>XSL style sheets for HTML and FO</seg>
241 <seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
242 /usr/share/doc/docbook-xsl-&docbook-xsl-version;</seg>
243 </seglistitem>
244 </segmentedlist>
245
246 </sect2>
247
248</sect1>
Note: See TracBrowser for help on using the repository browser.