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

10.0 10.1 11.0 11.1 11.2 6.0 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 krejzi/svn lazarus nosym perl-modules plabs/python-mods qt5new systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since c2a37a6 was c2a37a6, checked in by Randy McMurchy <randy@…>, 18 years ago

Added md5sums to Chapter 42-44 package instructions

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

  • Property mode set to 100644
File size: 7.1 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 "deb1864e3e190465dcc26145d2667a84">
9 <!ENTITY docbook-xsl-size "975 KB">
10 <!ENTITY docbook-xsl-buildsize "25 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
23<sect2>
24<title>Introduction to <application>DocBook <acronym>XSL</acronym>
25Stylesheets</application></title>
26
27<para>The <application>DocBook <acronym>XSL</acronym> Stylesheets</application>
28package contains <acronym>XSL</acronym> stylesheets. These are useful for
29performing transformations on <acronym>XML</acronym> DocBook files.</para>
30
31<sect3><title>Package information</title>
32<itemizedlist spacing='compact'>
33<listitem><para>Download (HTTP): <ulink
34url="&docbook-xsl-download-http;"/></para></listitem>
35<listitem><para>Download (FTP): <ulink
36url="&docbook-xsl-download-ftp;"/></para></listitem>
37<listitem><para>Download MD5 sum: &docbook-xsl-md5sum;</para></listitem>
38<listitem><para>Download size: &docbook-xsl-size;</para></listitem>
39<listitem><para>Estimated disk space required:
40&docbook-xsl-buildsize;</para></listitem>
41<listitem><para>Estimated build time:
42&docbook-xsl-time;</para></listitem></itemizedlist>
43</sect3>
44
45<sect3><title><application>DocBook <acronym>XSL</acronym>
46Stylesheets</application> dependencies</title>
47<sect4><title>Required</title>
48<para><xref linkend="libxslt"/></para>
49</sect4>
50</sect3>
51
52</sect2>
53
54<sect2>
55<title>Installation of <application>DocBook <acronym>XSL</acronym>
56Stylesheets</application></title>
57
58<para>Install <application>DocBook <acronym>XSL</acronym>
59Stylesheets</application> by running the following commands:</para>
60
61<screen><userinput><command>install -d /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
62chown -R root:root . &amp;&amp;
63cp -af INSTALL VERSION common eclipse extensions fo html htmlhelp \
64 images javahelp lib manpages params profiling template xhtml \
65 /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
66install -d /usr/share/doc/xml &amp;&amp;
67cp -af doc/* /usr/share/doc/xml &amp;&amp;
68cd /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
69sh INSTALL &amp;&amp;
70if [ ! -f /etc/xml/catalog ]; then mkdir -p /etc/xml; xmlcatalog \
71 --noout --create /etc/xml/catalog; fi &amp;&amp;
72if [ ! -e /etc/xml/docbook ]; then xmlcatalog --noout --create \
73 /etc/xml/docbook; fi &amp;&amp;
74xmlcatalog --noout --add "rewriteSystem" \
75 "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
76 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" /etc/xml/catalog &amp;&amp;
77xmlcatalog --noout --add "rewriteURI" \
78 "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
79 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" /etc/xml/catalog &amp;&amp;
80xmlcatalog --noout --add "delegateSystem" \
81 "http://docbook.sourceforge.net/release/xsl/" \
82 "file:///etc/xml/docbook" /etc/xml/catalog &amp;&amp;
83xmlcatalog --noout --add "delegateURI" \
84 "http://docbook.sourceforge.net/release/xsl/" \
85 "file:///etc/xml/docbook" /etc/xml/catalog</command></userinput></screen>
86
87</sect2>
88
89<sect2>
90<title>Command explanations</title>
91
92<para><command>sh INSTALL</command>: This command creates a local
93catalog for the <acronym>XSL</acronym> files.</para>
94
95</sect2>
96
97
98<sect2>
99<title>Configuring <application>DocBook <acronym>XSL</acronym>
100Stylesheets</application></title>
101
102<sect3 id="docbook-xsl-config"><title>Config files</title>
103<para><filename>/etc/xml/catalog</filename></para>
104<indexterm zone="docbook-xsl docbook-xsl-config"><primary
105sortas="e-etc-xml-catalog">/etc/xml/catalog</primary></indexterm>
106</sect3>
107
108<sect3><title>Configuration Information</title>
109
110<para>The system profile needs to be updated to utilize the new
111installed catalog. This can be done with the following command:</para>
112
113<screen><userinput><command>cat &gt; /etc/profile.d/xsl.sh &lt;&lt; "EOF"</command>
114# Set up Environment Variable for XSL Processing
115export XML_CATALOG_FILES="/usr/share/xml/docbook/\
116xsl-stylesheets-&docbook-xsl-version;/catalog.xml /etc/xml/catalog"
117<command>EOF</command></userinput></screen>
118
119<para>The above installation script creates the files and updates the
120catalog. Some project stylesheets reference specific versions of
121<acronym>XSL</acronym> stylesheets, like <acronym>BLFS</acronym>, which
122needs the following additional commands. These commands can also serve
123as an example for using a single <acronym>XSL</acronym> version to support
124any hard coded versions, as needed.</para>
125
126<screen><userinput><command>xmlcatalog --noout --add "rewriteSystem" \
127 "http://docbook.sourceforge.net/release/xsl/1.65.1" \
128 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
129 /etc/xml/catalog &amp;&amp;
130xmlcatalog --noout --add "rewriteURI" \
131 "http://docbook.sourceforge.net/release/xsl/1.65.1" \
132 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
133 /etc/xml/catalog</command></userinput></screen>
134
135<para>Alternatively, other versions can be installed in their own
136versioned directories and catalog entries made in the following
137form:</para>
138
139<screen><userinput><command>xmlcatalog --noout --add "rewriteSystem" \
140 "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
141 "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
142 /etc/xml/catalog &amp;&amp;
143xmlcatalog --noout --add "rewriteURI" \
144 "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
145 "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
146 /etc/xml/catalog</command></userinput></screen>
147
148<!-- The following is very specific to LFS 6.0, the first sentence for
149make and the remainder for 'make pdf', If it stays, it needs to be removed
150after BLFS 6.0-->
151
152<para>For <acronym>LFS</acronym> 6.0, version 1.65.1 of this package should be
153installed. In addition, you need to make a symbolic link as described in the
154<filename>INSTALL</filename> file of <acronym>LFS</acronym> 6.0.</para>
155<screen><userinput><command>cd /usr/share/xml/docbook/ &amp;&amp;
156ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current</command></userinput></screen>
157
158</sect3>
159
160</sect2>
161
162<sect2>
163<title>Contents</title>
164<segmentedlist>
165<segtitle>Installed Files</segtitle>
166<segtitle>Installed Directories</segtitle>
167<seglistitem><seg><acronym>XSL</acronym>
168style sheets for <acronym>HTML</acronym> and <acronym>FO</acronym></seg>
169<seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
170/usr/share/doc/xml</seg>
171</seglistitem>
172</segmentedlist>
173
174</sect2>
175
176</sect1>
Note: See TracBrowser for help on using the repository browser.