[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>
|
---|
| 24 | </sect1info>
|
---|
| 25 |
|
---|
| 26 | <title>DocBook XSL Stylesheets-&docbook-xsl-version;</title>
|
---|
| 27 |
|
---|
| 28 | <indexterm zone="docbook-xsl">
|
---|
| 29 | <primary sortas="a-DocBook-XSL-Stylesheets">DocBook XSL
|
---|
| 30 | Stylesheets</primary>
|
---|
| 31 | </indexterm>
|
---|
| 32 |
|
---|
| 33 | <sect2 role="package">
|
---|
| 34 | <title>Introduction to DocBook XSL Stylesheets</title>
|
---|
| 35 |
|
---|
| 36 | <para>The <application>DocBook XSL Stylesheets</application>
|
---|
| 37 | package contains XSL stylesheets. These are useful for
|
---|
| 38 | performing transformations on XML DocBook files.</para>
|
---|
| 39 |
|
---|
| 40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 41 | <itemizedlist spacing="compact">
|
---|
| 42 | <listitem>
|
---|
| 43 | <para>Download (HTTP): <ulink url="&docbook-xsl-download-http;"/></para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>Download (FTP): <ulink url="&docbook-xsl-download-ftp;"/></para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>Download MD5 sum: &docbook-xsl-md5sum;</para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download size: &docbook-xsl-size;</para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Estimated disk space required: &docbook-xsl-buildsize;</para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Estimated build time: &docbook-xsl-time;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | </itemizedlist>
|
---|
| 61 |
|
---|
[33c43b6] | 62 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 63 | <itemizedlist spacing="compact">
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Optional documentation: <ulink
|
---|
| 66 | url="&docbook-xsl-doc-download;"/></para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
[d8a437b8] | 70 | <bridgehead renderas="sect3">DocBook XSL Stylesheets Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[33c43b6] | 73 | <para><xref linkend="libxml2"/></para>
|
---|
[d8a437b8] | 74 |
|
---|
| 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2 role="installation">
|
---|
| 78 | <title>Installation of DocBook XSL Stylesheets</title>
|
---|
| 79 |
|
---|
[33c43b6] | 80 | <para>If you downloaded the optional documentation tarball, unpack it
|
---|
| 81 | when you unpack the source tarball. The documentation tarball unpacks into
|
---|
| 82 | subdirectories of the source tree.</para>
|
---|
| 83 |
|
---|
[d8a437b8] | 84 | <para>Install <application>DocBook XSL Stylesheets</application>
|
---|
[33c43b6] | 85 | by running the following commands as the
|
---|
| 86 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 87 |
|
---|
| 88 | <screen role="root"><userinput>install -v -m755 -d /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
| 89 | cp -v -R VERSION common eclipse extensions fo html \
|
---|
| 90 | htmlhelp images javahelp lib manpages params \
|
---|
| 91 | profiling slides template website xhtml \
|
---|
| 92 | /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;</userinput></screen>
|
---|
| 93 |
|
---|
| 94 | <para>If you downloaded the optional documentation tarball, install the
|
---|
| 95 | documentation by issuing the following commands as the
|
---|
| 96 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 97 |
|
---|
| 98 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/docbook-xsl-&docbook-xsl-version; &&
|
---|
| 99 | cp -v -R doc/* /usr/share/doc/docbook-xsl-&docbook-xsl-version;</userinput></screen>
|
---|
| 100 |
|
---|
| 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 role="configuration">
|
---|
| 104 | <title>Configuring DocBook XSL Stylesheets</title>
|
---|
| 105 |
|
---|
| 106 | <sect3 id="docbook-xsl-config">
|
---|
| 107 | <title>Config Files</title>
|
---|
| 108 |
|
---|
| 109 | <para><filename>/etc/xml/catalog</filename></para>
|
---|
| 110 |
|
---|
| 111 | <indexterm zone="docbook-xsl docbook-xsl-config">
|
---|
| 112 | <primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
|
---|
| 113 | </indexterm>
|
---|
| 114 |
|
---|
| 115 | </sect3>
|
---|
| 116 |
|
---|
| 117 | <sect3>
|
---|
| 118 | <title>Configuration Information</title>
|
---|
| 119 |
|
---|
| 120 | <para>Create (or append) and populate the XML catalog file using the
|
---|
| 121 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 122 | user:</para>
|
---|
| 123 |
|
---|
| 124 | <screen role="root"><userinput>if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi &&
|
---|
| 125 | if [ ! -f /etc/xml/catalog ]; then
|
---|
[b4b813f] | 126 | xmlcatalog --noout --create /etc/xml/catalog
|
---|
| 127 | fi &&
|
---|
[33c43b6] | 128 |
|
---|
[44b376e7] | 129 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[2f5888f] | 130 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
| 131 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[b4b813f] | 132 | /etc/xml/catalog &&
|
---|
[2f5888f] | 133 |
|
---|
[44b376e7] | 134 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[2f5888f] | 135 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
| 136 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[b4b813f] | 137 | /etc/xml/catalog &&
|
---|
[2f5888f] | 138 |
|
---|
[b4b813f] | 139 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[2f5888f] | 140 | "http://docbook.sourceforge.net/release/xsl/current" \
|
---|
| 141 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[b4b813f] | 142 | /etc/xml/catalog &&
|
---|
[2f5888f] | 143 |
|
---|
[b4b813f] | 144 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[2f5888f] | 145 | "http://docbook.sourceforge.net/release/xsl/current" \
|
---|
| 146 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
| 147 | /etc/xml/catalog</userinput></screen>
|
---|
| 148 |
|
---|
| 149 | <para>Occasionally, you may find the need to install other versions of
|
---|
| 150 | the XSL stylesheets as some projects reference a specific version. One
|
---|
| 151 | example is BLFS-6.0, which needs the 1.67.2 version. In these instances
|
---|
| 152 | you should install any other required version in its own versioned
|
---|
| 153 | directory and create catalog entries as follows (substitute the desired
|
---|
| 154 | version number for <replaceable>[version]</replaceable>):</para>
|
---|
| 155 |
|
---|
| 156 | <screen role="root"><userinput>xmlcatalog --noout --add "rewriteSystem" \
|
---|
| 157 | "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
|
---|
| 158 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
|
---|
| 159 | /etc/xml/catalog &&
|
---|
| 160 |
|
---|
| 161 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 162 | "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
|
---|
| 163 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
|
---|
[d8a437b8] | 164 | /etc/xml/catalog</userinput></screen>
|
---|
[44b376e7] | 165 |
|
---|
[33c43b6] | 166 | <para>If you will be using the stylesheets from this installation to
|
---|
| 167 | render the LFS and HLFS SVN books, then you need to create a symbolic
|
---|
| 168 | link to the stylesheets directory so that the image files will be
|
---|
| 169 | found. Create the link by issuing the following command as the
|
---|
| 170 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[44b376e7] | 171 |
|
---|
[aba0aec] | 172 | <screen role="root"><userinput>ln -v -sfn xsl-stylesheets-1.69.1 \
|
---|
[33c43b6] | 173 | /usr/share/xml/docbook/xsl-stylesheets-current</userinput></screen>
|
---|
[44b376e7] | 174 |
|
---|
[33c43b6] | 175 | <!-- The following removed as recommended by Manuel
|
---|
[d6edeb8] | 176 |
|
---|
[33c43b6] | 177 | if [ ! -f /etc/xml/catalog ]; then
|
---|
| 178 | xmlcatalog -\-noout -\-create /etc/xml/catalog
|
---|
| 179 | fi &&
|
---|
[d8a437b8] | 180 |
|
---|
[33c43b6] | 181 | xmlcatalog -\-noout -\-add "delegateSystem" \
|
---|
| 182 | "http://docbook.sourceforge.net/release/xsl/" \
|
---|
| 183 | "file:///etc/xml/docbook" \
|
---|
| 184 | /etc/xml/catalog &&
|
---|
| 185 | xmlcatalog -\-noout -\-add "delegateURI" \
|
---|
| 186 | "http://docbook.sourceforge.net/release/xsl/" \
|
---|
| 187 | "file:///etc/xml/docbook" \
|
---|
| 188 | /etc/xml/catalog</userinput></screen>
|
---|
[d8a437b8] | 189 |
|
---|
[33c43b6] | 190 | <para>The system profile needs to be updated to utilize the new installed
|
---|
| 191 | catalog. This can be done with the following command:<para>
|
---|
[d8a437b8] | 192 |
|
---|
| 193 | <screen role="root"><userinput>cat > /etc/profile.d/xsl.sh << "EOF"
|
---|
| 194 | <literal># Set up Environment Variable for XSL Processing
|
---|
[5d34b74] | 195 | export XML_CATALOG_FILES="/usr/share/xml/docbook/\
|
---|
[d8a437b8] | 196 | xsl-stylesheets-&docbook-xsl-version;/catalog.xml /etc/xml/catalog"</literal>
|
---|
| 197 | EOF</userinput></screen>
|
---|
| 198 |
|
---|
| 199 | <para>The above installation script creates the files and updates the
|
---|
| 200 | catalog with the current version of the XML stylesheets. Some project
|
---|
| 201 | stylesheets reference specific versions of XSL stylesheets, like BLFS-6.0,
|
---|
| 202 | which needs the 1.67.2 version. The following commands can serve as an
|
---|
| 203 | example for using a single XSL version to support any hard coded
|
---|
| 204 | versions, as needed. Use the following as an example to use the current
|
---|
| 205 | version of the stylesheets for the 1.67.2 version. Edit or add to the
|
---|
| 206 | commands to suit your particular needs. Issue the commands as the
|
---|
| 207 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 208 |
|
---|
[33c43b6] | 209 | <screen role="root"><userinput>xmlcatalog -\-noout -\-add "rewriteSystem" \
|
---|
[90ca10d] | 210 | "http://docbook.sourceforge.net/release/xsl/1.67.2" \
|
---|
[3b1dc849] | 211 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[90ca10d] | 212 | /etc/xml/catalog &&
|
---|
[33c43b6] | 213 | xmlcatalog -\-noout -\-add "rewriteURI" \
|
---|
[90ca10d] | 214 | "http://docbook.sourceforge.net/release/xsl/1.67.2" \
|
---|
[3b1dc849] | 215 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[d8a437b8] | 216 | /etc/xml/catalog</userinput></screen>
|
---|
[c2a37a6] | 217 |
|
---|
[33c43b6] | 218 | -->
|
---|
[d8a437b8] | 219 |
|
---|
| 220 | </sect3>
|
---|
| 221 |
|
---|
| 222 | </sect2>
|
---|
| 223 |
|
---|
| 224 | <sect2 role="content">
|
---|
| 225 | <title>Contents</title>
|
---|
| 226 |
|
---|
| 227 | <segmentedlist>
|
---|
| 228 | <segtitle>Installed Programs</segtitle>
|
---|
| 229 | <segtitle>Installed Libraries</segtitle>
|
---|
| 230 | <segtitle>Installed Files</segtitle>
|
---|
| 231 | <segtitle>Installed Directories</segtitle>
|
---|
| 232 |
|
---|
| 233 | <seglistitem>
|
---|
| 234 | <seg>None</seg>
|
---|
| 235 | <seg>None</seg>
|
---|
| 236 | <seg>XSL style sheets for HTML and FO</seg>
|
---|
| 237 | <seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
|
---|
[33c43b6] | 238 | /usr/share/doc/docbook-xsl-&docbook-xsl-version;</seg>
|
---|
[d8a437b8] | 239 | </seglistitem>
|
---|
| 240 | </segmentedlist>
|
---|
| 241 |
|
---|
| 242 | </sect2>
|
---|
[59bc4e1] | 243 |
|
---|
| 244 | </sect1>
|
---|