source: pst/xml/docbook-xsl.xml@ 845e9193

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 845e9193 was d8a437b8, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Tagged docbook-xsl.xml

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

  • Property mode set to 100644
File size: 8.5 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 "f4985efbc0f3411af8106928f8752fc5">
10 <!ENTITY docbook-xsl-size "967 KB">
11 <!ENTITY docbook-xsl-buildsize "26.4 MB">
12 <!ENTITY docbook-xsl-time "0.01 SBU">
13]>
14
15<sect1 id="docbook-xsl"
16xreflabel="DocBook XSL Stylesheets-&docbook-xsl-version;">
17 <?dbhtml filename="docbook-xsl.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>DocBook XSL Stylesheets-&docbook-xsl-version;</title>
25
26 <indexterm zone="docbook-xsl">
27 <primary sortas="a-DocBook-XSL-Stylesheets">DocBook XSL
28 Stylesheets</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to DocBook XSL Stylesheets</title>
33
34 <para>The <application>DocBook XSL Stylesheets</application>
35 package contains XSL stylesheets. These are useful for
36 performing transformations on XML DocBook files.</para>
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&docbook-xsl-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&docbook-xsl-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &docbook-xsl-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &docbook-xsl-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &docbook-xsl-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &docbook-xsl-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">DocBook XSL Stylesheets Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Required</bridgehead>
63 <para><xref linkend="libxslt"/></para>
64
65 </sect2>
66
67 <sect2 role="installation">
68 <title>Installation of DocBook XSL Stylesheets</title>
69
70 <para>Install <application>DocBook XSL Stylesheets</application>
71 by running the following commands as the <systemitem
72 class="username">root</systemitem> user:</para>
73
74<screen role="root"><userinput>install -v -d -m755 /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
75install -v -d -m755 /etc/xml &amp;&amp;
76chown -R root:root . &amp;&amp;
77cp -v -af INSTALL VERSION common eclipse extensions fo html htmlhelp \
78 images javahelp lib manpages params profiling template xhtml \
79 /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
80install -v -d -m755 /usr/share/doc/xml &amp;&amp;
81cp -v -af doc/* /usr/share/doc/xml &amp;&amp;
82cd /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
83sh INSTALL</userinput></screen>
84
85 <para>Create (or append to) and populate the XML catalog files using the
86 following commands as the <systemitem class="username">root</systemitem>
87 user:</para>
88
89<screen role="root"><userinput>if [ ! -f /etc/xml/catalog ]; then
90 xmlcatalog --noout --create /etc/xml/catalog
91fi &amp;&amp;
92if [ ! -f /etc/xml/docbook ]; then
93 xmlcatalog --noout --create /etc/xml/docbook
94fi &amp;&amp;
95xmlcatalog --noout --add "rewriteSystem" \
96 "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
97 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
98 /etc/xml/catalog &amp;&amp;
99xmlcatalog --noout --add "rewriteURI" \
100 "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
101 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
102 /etc/xml/catalog &amp;&amp;
103xmlcatalog --noout --add "rewriteSystem" \
104 "http://docbook.sourceforge.net/release/xsl/current" \
105 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
106 /etc/xml/catalog &amp;&amp;
107xmlcatalog --noout --add "rewriteURI" \
108 "http://docbook.sourceforge.net/release/xsl/current" \
109 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
110 /etc/xml/catalog &amp;&amp;
111xmlcatalog --noout --add "delegateSystem" \
112 "http://docbook.sourceforge.net/release/xsl/" \
113 "file:///etc/xml/docbook" \
114 /etc/xml/catalog &amp;&amp;
115xmlcatalog --noout --add "delegateURI" \
116 "http://docbook.sourceforge.net/release/xsl/" \
117 "file:///etc/xml/docbook" \
118 /etc/xml/catalog</userinput></screen>
119
120 </sect2>
121
122 <sect2 role="commands">
123 <title>Command Explanations</title>
124
125 <para><command>sh INSTALL</command>: This command creates a local
126 catalog for the XSL files.</para>
127
128 </sect2>
129
130 <sect2 role="configuration">
131 <title>Configuring DocBook XSL Stylesheets</title>
132
133 <sect3 id="docbook-xsl-config">
134 <title>Config Files</title>
135
136 <para><filename>/etc/xml/catalog</filename></para>
137
138 <indexterm zone="docbook-xsl docbook-xsl-config">
139 <primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
140 </indexterm>
141
142 </sect3>
143
144 <sect3>
145 <title>Configuration Information</title>
146
147 <para>The system profile needs to be updated to utilize the new
148 installed catalog. This can be done with the following command:</para>
149
150<screen role="root"><userinput>cat &gt; /etc/profile.d/xsl.sh &lt;&lt; "EOF"
151<literal># Set up Environment Variable for XSL Processing
152export XML_CATALOG_FILES="/usr/share/xml/docbook/\
153xsl-stylesheets-&docbook-xsl-version;/catalog.xml /etc/xml/catalog"</literal>
154EOF</userinput></screen>
155
156 <para>The above installation script creates the files and updates the
157 catalog with the current version of the XML stylesheets. Some project
158 stylesheets reference specific versions of XSL stylesheets, like BLFS-6.0,
159 which needs the 1.67.2 version. The following commands can serve as an
160 example for using a single XSL version to support any hard coded
161 versions, as needed. Use the following as an example to use the current
162 version of the stylesheets for the 1.67.2 version. Edit or add to the
163 commands to suit your particular needs. Issue the commands as the
164 <systemitem class="username">root</systemitem> user:</para>
165
166<screen role="root"><userinput>xmlcatalog --noout --add "rewriteSystem" \
167 "http://docbook.sourceforge.net/release/xsl/1.67.2" \
168 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
169 /etc/xml/catalog &amp;&amp;
170xmlcatalog --noout --add "rewriteURI" \
171 "http://docbook.sourceforge.net/release/xsl/1.67.2" \
172 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
173 /etc/xml/catalog</userinput></screen>
174
175 <para>Alternatively, other versions can be installed in their own
176 versioned directories and catalog entries made in the following
177 form:</para>
178
179<screen role="root"><userinput>xmlcatalog --noout --add "rewriteSystem" \
180 "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
181 "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
182 /etc/xml/catalog &amp;&amp;
183xmlcatalog --noout --add "rewriteURI" \
184 "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
185 "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
186 /etc/xml/catalog</userinput></screen>
187
188<!--
189The following is very specific to LFS 6.0, the first sentence for
190make and the remainder for 'make pdf', If it stays, it needs to be removed
191after BLFS 6.0
192
193<para>For LFS 6.0, version 1.65.1 of this package should be
194installed. In addition, you need to make a symbolic link as described in the
195<filename>INSTALL</filename> file of LFS 6.0.</para>
196<screen><userinput><command>cd /usr/share/xml/docbook/ &amp;&amp;
197ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current</command></userinput></screen>
198 -->
199
200 </sect3>
201
202 </sect2>
203
204 <sect2 role="content">
205 <title>Contents</title>
206
207 <segmentedlist>
208 <segtitle>Installed Programs</segtitle>
209 <segtitle>Installed Libraries</segtitle>
210 <segtitle>Installed Files</segtitle>
211 <segtitle>Installed Directories</segtitle>
212
213 <seglistitem>
214 <seg>None</seg>
215 <seg>None</seg>
216 <seg>XSL style sheets for HTML and FO</seg>
217 <seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
218 /usr/share/doc/xml</seg>
219 </seglistitem>
220 </segmentedlist>
221
222 </sect2>
223
224</sect1>
Note: See TracBrowser for help on using the repository browser.