[d8a437b8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[44b376e7] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[dc477899] | 6 |
|
---|
[15b3bc29] | 7 | <!ENTITY docbook-xsl-download-http "http://downloads.sourceforge.net/docbook/docbook-xsl-&docbook-xsl-version;.tar.bz2">
|
---|
[a750d96f] | 8 | <!ENTITY docbook-xsl-download-ftp " ">
|
---|
[9deda8e] | 9 | <!ENTITY docbook-xsl-md5sum "6a269abc854ae949b2cfd6377bc17fde">
|
---|
| 10 | <!ENTITY docbook-xsl-size "1.4 MB">
|
---|
| 11 | <!ENTITY docbook-xsl-buildsize "40 MB (includes installing optional documentation)">
|
---|
[33c43b6] | 12 | <!ENTITY docbook-xsl-time "less than 0.1 SBU">
|
---|
| 13 |
|
---|
[15b3bc29] | 14 | <!ENTITY docbook-xsl-doc-download "http://downloads.sourceforge.net/docbook/docbook-xsl-doc-&docbook-xsl-version;.tar.bz2">
|
---|
[9deda8e] | 15 | <!ENTITY docbook-xsl-doc-md5sum "f7844a751a4612c56acddc0790fbc501">
|
---|
| 16 | <!ENTITY docbook-xsl-doc-size "1.3 MB">
|
---|
[44b376e7] | 17 | ]>
|
---|
| 18 |
|
---|
[d8a437b8] | 19 | <sect1 id="docbook-xsl"
|
---|
[c2a37a6] | 20 | xreflabel="DocBook XSL Stylesheets-&docbook-xsl-version;">
|
---|
[d8a437b8] | 21 | <?dbhtml filename="docbook-xsl.html"?>
|
---|
| 22 |
|
---|
| 23 | <sect1info>
|
---|
| 24 | <othername>$LastChangedBy$</othername>
|
---|
| 25 | <date>$Date$</date>
|
---|
| 26 | </sect1info>
|
---|
| 27 |
|
---|
| 28 | <title>DocBook XSL Stylesheets-&docbook-xsl-version;</title>
|
---|
| 29 |
|
---|
| 30 | <indexterm zone="docbook-xsl">
|
---|
| 31 | <primary sortas="a-DocBook-XSL-Stylesheets">DocBook XSL
|
---|
| 32 | Stylesheets</primary>
|
---|
| 33 | </indexterm>
|
---|
| 34 |
|
---|
| 35 | <sect2 role="package">
|
---|
| 36 | <title>Introduction to DocBook XSL Stylesheets</title>
|
---|
| 37 |
|
---|
| 38 | <para>The <application>DocBook XSL Stylesheets</application>
|
---|
| 39 | package contains XSL stylesheets. These are useful for
|
---|
| 40 | performing transformations on XML DocBook files.</para>
|
---|
| 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (HTTP): <ulink url="&docbook-xsl-download-http;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download (FTP): <ulink url="&docbook-xsl-download-ftp;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download MD5 sum: &docbook-xsl-md5sum;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download size: &docbook-xsl-size;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated disk space required: &docbook-xsl-buildsize;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated build time: &docbook-xsl-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
[33c43b6] | 64 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 65 | <itemizedlist spacing="compact">
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>Optional documentation: <ulink
|
---|
| 68 | url="&docbook-xsl-doc-download;"/></para>
|
---|
| 69 | </listitem>
|
---|
[9deda8e] | 70 | <listitem>
|
---|
| 71 | <para>Download MD5 sum: &docbook-xsl-doc-md5sum;</para>
|
---|
| 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>Download size: &docbook-xsl-doc-size;</para>
|
---|
| 75 | </listitem>
|
---|
[33c43b6] | 76 | </itemizedlist>
|
---|
| 77 |
|
---|
[d8a437b8] | 78 | <bridgehead renderas="sect3">DocBook XSL Stylesheets Dependencies</bridgehead>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[d352a28] | 81 | <para role="required"><xref linkend="libxml2"/></para>
|
---|
[d8a437b8] | 82 |
|
---|
[977061b0] | 83 | <para condition="html" role="usernotes">User Notes:
|
---|
| 84 | <ulink url="&blfs-wiki;/docbook-xsl"/></para>
|
---|
| 85 |
|
---|
[d8a437b8] | 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2 role="installation">
|
---|
| 89 | <title>Installation of DocBook XSL Stylesheets</title>
|
---|
| 90 |
|
---|
[33c43b6] | 91 | <para>If you downloaded the optional documentation tarball, unpack it
|
---|
| 92 | when you unpack the source tarball. The documentation tarball unpacks into
|
---|
[9deda8e] | 93 | a <filename class='directory'>doc</filename> subdirectory of the source
|
---|
| 94 | tree.</para>
|
---|
| 95 |
|
---|
| 96 | <para>BLFS does not install the required packages to run the test suite
|
---|
| 97 | and provide meaningful results.</para>
|
---|
[33c43b6] | 98 |
|
---|
[d8a437b8] | 99 | <para>Install <application>DocBook XSL Stylesheets</application>
|
---|
[33c43b6] | 100 | by running the following commands as the
|
---|
| 101 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 102 |
|
---|
| 103 | <screen role="root"><userinput>install -v -m755 -d /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
[9deda8e] | 104 |
|
---|
| 105 | cp -v -R VERSION common eclipse extensions fo highlighting html \
|
---|
| 106 | htmlhelp images javahelp lib manpages params profiling \
|
---|
| 107 | slides template tools website wordml xhtml \
|
---|
| 108 | /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
| 109 |
|
---|
| 110 | install -v -m644 -D README \
|
---|
| 111 | /usr/share/doc/docbook-xsl-&docbook-xsl-version;/README.XSL &&
|
---|
| 112 | install -v -m755 RELEASE-NOTES* NEWS* \
|
---|
[f952748] | 113 | /usr/share/doc/docbook-xsl-&docbook-xsl-version;</userinput></screen>
|
---|
[33c43b6] | 114 |
|
---|
| 115 | <para>If you downloaded the optional documentation tarball, install the
|
---|
[9deda8e] | 116 | documentation by issuing the following command as the
|
---|
[33c43b6] | 117 | <systemitem class="username">root</systemitem> user:</para>
|
---|
| 118 |
|
---|
[9deda8e] | 119 | <screen role="root"><userinput>cp -v -R doc/* /usr/share/doc/docbook-xsl-&docbook-xsl-version;</userinput></screen>
|
---|
[33c43b6] | 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 | <sect2 role="configuration">
|
---|
| 124 | <title>Configuring DocBook XSL Stylesheets</title>
|
---|
| 125 |
|
---|
| 126 | <sect3 id="docbook-xsl-config">
|
---|
| 127 | <title>Config Files</title>
|
---|
| 128 |
|
---|
| 129 | <para><filename>/etc/xml/catalog</filename></para>
|
---|
| 130 |
|
---|
| 131 | <indexterm zone="docbook-xsl docbook-xsl-config">
|
---|
| 132 | <primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 |
|
---|
| 135 | </sect3>
|
---|
| 136 |
|
---|
| 137 | <sect3>
|
---|
| 138 | <title>Configuration Information</title>
|
---|
| 139 |
|
---|
| 140 | <para>Create (or append) and populate the XML catalog file using the
|
---|
| 141 | following commands as the <systemitem class="username">root</systemitem>
|
---|
| 142 | user:</para>
|
---|
| 143 |
|
---|
| 144 | <screen role="root"><userinput>if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi &&
|
---|
| 145 | if [ ! -f /etc/xml/catalog ]; then
|
---|
[b4b813f] | 146 | xmlcatalog --noout --create /etc/xml/catalog
|
---|
| 147 | fi &&
|
---|
[33c43b6] | 148 |
|
---|
[44b376e7] | 149 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[2f5888f] | 150 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
| 151 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[b4b813f] | 152 | /etc/xml/catalog &&
|
---|
[2f5888f] | 153 |
|
---|
[44b376e7] | 154 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[2f5888f] | 155 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
| 156 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[b4b813f] | 157 | /etc/xml/catalog &&
|
---|
[2f5888f] | 158 |
|
---|
[b4b813f] | 159 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[2f5888f] | 160 | "http://docbook.sourceforge.net/release/xsl/current" \
|
---|
| 161 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[b4b813f] | 162 | /etc/xml/catalog &&
|
---|
[2f5888f] | 163 |
|
---|
[b4b813f] | 164 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[2f5888f] | 165 | "http://docbook.sourceforge.net/release/xsl/current" \
|
---|
| 166 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
| 167 | /etc/xml/catalog</userinput></screen>
|
---|
| 168 |
|
---|
| 169 | <para>Occasionally, you may find the need to install other versions of
|
---|
| 170 | the XSL stylesheets as some projects reference a specific version. One
|
---|
[9deda8e] | 171 | example is BLFS-6.0, which required the 1.67.2 version. In these instances
|
---|
[2f5888f] | 172 | you should install any other required version in its own versioned
|
---|
| 173 | directory and create catalog entries as follows (substitute the desired
|
---|
[977061b0] | 174 | version number for <replaceable><version></replaceable>):</para>
|
---|
[2f5888f] | 175 |
|
---|
| 176 | <screen role="root"><userinput>xmlcatalog --noout --add "rewriteSystem" \
|
---|
[977061b0] | 177 | "http://docbook.sourceforge.net/release/xsl/<replaceable><version></replaceable>" \
|
---|
| 178 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable><version></replaceable>" \
|
---|
[2f5888f] | 179 | /etc/xml/catalog &&
|
---|
| 180 |
|
---|
| 181 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[977061b0] | 182 | "http://docbook.sourceforge.net/release/xsl/<replaceable><version></replaceable>" \
|
---|
| 183 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable><version></replaceable>" \
|
---|
[d8a437b8] | 184 | /etc/xml/catalog</userinput></screen>
|
---|
[44b376e7] | 185 |
|
---|
[fcfda3f] | 186 | <!-- Commented uot until be sure that there is no objetions from any of the
|
---|
| 187 | {C,H}LFS editors
|
---|
| 188 |
|
---|
[33c43b6] | 189 | <para>If you will be using the stylesheets from this installation to
|
---|
| 190 | render the LFS and HLFS SVN books, then you need to create a symbolic
|
---|
| 191 | link to the stylesheets directory so that the image files will be
|
---|
| 192 | found. Create the link by issuing the following command as the
|
---|
| 193 | <systemitem class="username">root</systemitem> user:</para>
|
---|
[44b376e7] | 194 |
|
---|
[aba0aec] | 195 | <screen role="root"><userinput>ln -v -sfn xsl-stylesheets-1.69.1 \
|
---|
[33c43b6] | 196 | /usr/share/xml/docbook/xsl-stylesheets-current</userinput></screen>
|
---|
| 197 | -->
|
---|
[d8a437b8] | 198 |
|
---|
| 199 | </sect3>
|
---|
| 200 |
|
---|
| 201 | </sect2>
|
---|
| 202 |
|
---|
| 203 | <sect2 role="content">
|
---|
| 204 | <title>Contents</title>
|
---|
| 205 |
|
---|
| 206 | <segmentedlist>
|
---|
| 207 | <segtitle>Installed Programs</segtitle>
|
---|
| 208 | <segtitle>Installed Libraries</segtitle>
|
---|
| 209 | <segtitle>Installed Files</segtitle>
|
---|
| 210 | <segtitle>Installed Directories</segtitle>
|
---|
| 211 |
|
---|
| 212 | <seglistitem>
|
---|
| 213 | <seg>None</seg>
|
---|
| 214 | <seg>None</seg>
|
---|
| 215 | <seg>XSL style sheets for HTML and FO</seg>
|
---|
| 216 | <seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
|
---|
[33c43b6] | 217 | /usr/share/doc/docbook-xsl-&docbook-xsl-version;</seg>
|
---|
[d8a437b8] | 218 | </seglistitem>
|
---|
| 219 | </segmentedlist>
|
---|
| 220 |
|
---|
| 221 | </sect2>
|
---|
[59bc4e1] | 222 |
|
---|
| 223 | </sect1>
|
---|