[d8a437b8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[44b376e7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[dc477899] | 6 |
|
---|
[a750d96f] | 7 | <!ENTITY docbook-xsl-download-http "http://prdownloads.sourceforge.net/docbook/docbook-xsl-&docbook-xsl-version;.tar.bz2">
|
---|
| 8 | <!ENTITY docbook-xsl-download-ftp " ">
|
---|
[33c43b6] | 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">
|
---|
[44b376e7] | 15 | ]>
|
---|
| 16 |
|
---|
[d8a437b8] | 17 | <sect1 id="docbook-xsl"
|
---|
[c2a37a6] | 18 | xreflabel="DocBook XSL Stylesheets-&docbook-xsl-version;">
|
---|
[d8a437b8] | 19 | <?dbhtml filename="docbook-xsl.html"?>
|
---|
| 20 |
|
---|
| 21 | <sect1info>
|
---|
| 22 | <othername>$LastChangedBy$</othername>
|
---|
| 23 | <date>$Date$</date>
|
---|
[d352a28] | 24 | <keywordset>
|
---|
| 25 | <keyword role="package">docbook-xsl-&docbook-xsl-version;.tar</keyword>
|
---|
[f1283d3f] | 26 | <keyword role="ftpdir">docbook-xsl</keyword>
|
---|
[d352a28] | 27 | </keywordset>
|
---|
[d8a437b8] | 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 |
|
---|
[33c43b6] | 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 |
|
---|
[d8a437b8] | 74 | <bridgehead renderas="sect3">DocBook XSL Stylesheets Dependencies</bridgehead>
|
---|
| 75 |
|
---|
| 76 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[d352a28] | 77 | <para role="required"><xref linkend="libxml2"/></para>
|
---|
[d8a437b8] | 78 |
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2 role="installation">
|
---|
| 82 | <title>Installation of DocBook XSL Stylesheets</title>
|
---|
| 83 |
|
---|
[33c43b6] | 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 |
|
---|
[d8a437b8] | 88 | <para>Install <application>DocBook XSL Stylesheets</application>
|
---|
[33c43b6] | 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; &&
|
---|
| 93 | cp -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; &&
|
---|
| 103 | cp -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 &&
|
---|
| 129 | if [ ! -f /etc/xml/catalog ]; then
|
---|
[b4b813f] | 130 | xmlcatalog --noout --create /etc/xml/catalog
|
---|
| 131 | fi &&
|
---|
[33c43b6] | 132 |
|
---|
[44b376e7] | 133 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[2f5888f] | 134 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
| 135 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[b4b813f] | 136 | /etc/xml/catalog &&
|
---|
[2f5888f] | 137 |
|
---|
[44b376e7] | 138 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[2f5888f] | 139 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
| 140 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[b4b813f] | 141 | /etc/xml/catalog &&
|
---|
[2f5888f] | 142 |
|
---|
[b4b813f] | 143 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[2f5888f] | 144 | "http://docbook.sourceforge.net/release/xsl/current" \
|
---|
| 145 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[b4b813f] | 146 | /etc/xml/catalog &&
|
---|
[2f5888f] | 147 |
|
---|
[b4b813f] | 148 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[2f5888f] | 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 &&
|
---|
| 164 |
|
---|
| 165 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 166 | "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
|
---|
| 167 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
|
---|
[d8a437b8] | 168 | /etc/xml/catalog</userinput></screen>
|
---|
[44b376e7] | 169 |
|
---|
[33c43b6] | 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>
|
---|
[44b376e7] | 175 |
|
---|
[aba0aec] | 176 | <screen role="root"><userinput>ln -v -sfn xsl-stylesheets-1.69.1 \
|
---|
[33c43b6] | 177 | /usr/share/xml/docbook/xsl-stylesheets-current</userinput></screen>
|
---|
[44b376e7] | 178 |
|
---|
[33c43b6] | 179 | <!-- The following removed as recommended by Manuel
|
---|
[d6edeb8] | 180 |
|
---|
[33c43b6] | 181 | if [ ! -f /etc/xml/catalog ]; then
|
---|
| 182 | xmlcatalog -\-noout -\-create /etc/xml/catalog
|
---|
| 183 | fi &&
|
---|
[d8a437b8] | 184 |
|
---|
[33c43b6] | 185 | xmlcatalog -\-noout -\-add "delegateSystem" \
|
---|
| 186 | "http://docbook.sourceforge.net/release/xsl/" \
|
---|
| 187 | "file:///etc/xml/docbook" \
|
---|
| 188 | /etc/xml/catalog &&
|
---|
| 189 | xmlcatalog -\-noout -\-add "delegateURI" \
|
---|
| 190 | "http://docbook.sourceforge.net/release/xsl/" \
|
---|
| 191 | "file:///etc/xml/docbook" \
|
---|
| 192 | /etc/xml/catalog</userinput></screen>
|
---|
[d8a437b8] | 193 |
|
---|
[33c43b6] | 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>
|
---|
[d8a437b8] | 196 |
|
---|
| 197 | <screen role="root"><userinput>cat > /etc/profile.d/xsl.sh << "EOF"
|
---|
| 198 | <literal># Set up Environment Variable for XSL Processing
|
---|
[5d34b74] | 199 | export XML_CATALOG_FILES="/usr/share/xml/docbook/\
|
---|
[d8a437b8] | 200 | xsl-stylesheets-&docbook-xsl-version;/catalog.xml /etc/xml/catalog"</literal>
|
---|
| 201 | EOF</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 |
|
---|
[33c43b6] | 213 | <screen role="root"><userinput>xmlcatalog -\-noout -\-add "rewriteSystem" \
|
---|
[90ca10d] | 214 | "http://docbook.sourceforge.net/release/xsl/1.67.2" \
|
---|
[3b1dc849] | 215 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[90ca10d] | 216 | /etc/xml/catalog &&
|
---|
[33c43b6] | 217 | xmlcatalog -\-noout -\-add "rewriteURI" \
|
---|
[90ca10d] | 218 | "http://docbook.sourceforge.net/release/xsl/1.67.2" \
|
---|
[3b1dc849] | 219 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[d8a437b8] | 220 | /etc/xml/catalog</userinput></screen>
|
---|
[c2a37a6] | 221 |
|
---|
[33c43b6] | 222 | -->
|
---|
[d8a437b8] | 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
|
---|
[33c43b6] | 242 | /usr/share/doc/docbook-xsl-&docbook-xsl-version;</seg>
|
---|
[d8a437b8] | 243 | </seglistitem>
|
---|
| 244 | </segmentedlist>
|
---|
| 245 |
|
---|
| 246 | </sect2>
|
---|
[59bc4e1] | 247 |
|
---|
| 248 | </sect1>
|
---|