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

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 b4b813f was b4b813f, checked in by Randy McMurchy <randy@…>, 19 years ago

Updated to DocBook XSL Stylesheets-1.68.1

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

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