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"
|
---|
16 | xreflabel="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; &&
|
---|
75 | install -v -d -m755 /etc/xml &&
|
---|
76 | chown -R root:root . &&
|
---|
77 | cp -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; &&
|
---|
80 | install -v -d -m755 /usr/share/doc/xml &&
|
---|
81 | cp -v -af doc/* /usr/share/doc/xml &&
|
---|
82 | cd /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
83 | sh 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
|
---|
91 | fi &&
|
---|
92 | if [ ! -f /etc/xml/docbook ]; then
|
---|
93 | xmlcatalog --noout --create /etc/xml/docbook
|
---|
94 | fi &&
|
---|
95 | xmlcatalog --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 &&
|
---|
99 | xmlcatalog --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 &&
|
---|
103 | xmlcatalog --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 &&
|
---|
107 | xmlcatalog --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 &&
|
---|
111 | xmlcatalog --noout --add "delegateSystem" \
|
---|
112 | "http://docbook.sourceforge.net/release/xsl/" \
|
---|
113 | "file:///etc/xml/docbook" \
|
---|
114 | /etc/xml/catalog &&
|
---|
115 | xmlcatalog --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 > /etc/profile.d/xsl.sh << "EOF"
|
---|
151 | <literal># Set up Environment Variable for XSL Processing
|
---|
152 | export XML_CATALOG_FILES="/usr/share/xml/docbook/\
|
---|
153 | xsl-stylesheets-&docbook-xsl-version;/catalog.xml /etc/xml/catalog"</literal>
|
---|
154 | EOF</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 &&
|
---|
170 | xmlcatalog --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 &&
|
---|
183 | xmlcatalog --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 | <!--
|
---|
189 | The following is very specific to LFS 6.0, the first sentence for
|
---|
190 | make and the remainder for 'make pdf', If it stays, it needs to be removed
|
---|
191 | after BLFS 6.0
|
---|
192 |
|
---|
193 | <para>For LFS 6.0, version 1.65.1 of this package should be
|
---|
194 | installed. 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/ &&
|
---|
197 | ln -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>
|
---|