[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 " ">
|
---|
[b4b813f] | 9 | <!ENTITY docbook-xsl-md5sum "f4985efbc0f3411af8106928f8752fc5">
|
---|
| 10 | <!ENTITY docbook-xsl-size "967 KB">
|
---|
| 11 | <!ENTITY docbook-xsl-buildsize "26.4 MB">
|
---|
[44b376e7] | 12 | <!ENTITY docbook-xsl-time "0.01 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[d8a437b8] | 15 | <sect1 id="docbook-xsl"
|
---|
[c2a37a6] | 16 | xreflabel="DocBook XSL Stylesheets-&docbook-xsl-version;">
|
---|
[d8a437b8] | 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; &&
|
---|
[b4b813f] | 75 | install -v -d -m755 /etc/xml &&
|
---|
[93dda11b] | 76 | chown -R root:root . &&
|
---|
[b4b813f] | 77 | cp -v -af INSTALL VERSION common eclipse extensions fo html htmlhelp \
|
---|
[5d34b74] | 78 | images javahelp lib manpages params profiling template xhtml \
|
---|
[44b376e7] | 79 | /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
[b4b813f] | 80 | install -v -d -m755 /usr/share/doc/xml &&
|
---|
| 81 | cp -v -af doc/* /usr/share/doc/xml &&
|
---|
[a750d96f] | 82 | cd /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
[d8a437b8] | 83 | sh INSTALL</userinput></screen>
|
---|
[b4b813f] | 84 |
|
---|
[d8a437b8] | 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>
|
---|
[b4b813f] | 88 |
|
---|
[d8a437b8] | 89 | <screen role="root"><userinput>if [ ! -f /etc/xml/catalog ]; then
|
---|
[b4b813f] | 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 &&
|
---|
[44b376e7] | 95 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[dc477899] | 96 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
[b4b813f] | 97 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
| 98 | /etc/xml/catalog &&
|
---|
[44b376e7] | 99 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[dc477899] | 100 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
[b4b813f] | 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 &&
|
---|
[44b376e7] | 111 | xmlcatalog --noout --add "delegateSystem" \
|
---|
| 112 | "http://docbook.sourceforge.net/release/xsl/" \
|
---|
[b4b813f] | 113 | "file:///etc/xml/docbook" \
|
---|
| 114 | /etc/xml/catalog &&
|
---|
[44b376e7] | 115 | xmlcatalog --noout --add "delegateURI" \
|
---|
| 116 | "http://docbook.sourceforge.net/release/xsl/" \
|
---|
[b4b813f] | 117 | "file:///etc/xml/docbook" \
|
---|
[d8a437b8] | 118 | /etc/xml/catalog</userinput></screen>
|
---|
[44b376e7] | 119 |
|
---|
[d8a437b8] | 120 | </sect2>
|
---|
[44b376e7] | 121 |
|
---|
[d8a437b8] | 122 | <sect2 role="commands">
|
---|
| 123 | <title>Command Explanations</title>
|
---|
[d6edeb8] | 124 |
|
---|
[d8a437b8] | 125 | <para><command>sh INSTALL</command>: This command creates a local
|
---|
| 126 | catalog for the XSL files.</para>
|
---|
[d6edeb8] | 127 |
|
---|
[d8a437b8] | 128 | </sect2>
|
---|
[d6edeb8] | 129 |
|
---|
[d8a437b8] | 130 | <sect2 role="configuration">
|
---|
| 131 | <title>Configuring DocBook XSL Stylesheets</title>
|
---|
[44b376e7] | 132 |
|
---|
[d8a437b8] | 133 | <sect3 id="docbook-xsl-config">
|
---|
| 134 | <title>Config Files</title>
|
---|
[44b376e7] | 135 |
|
---|
[d8a437b8] | 136 | <para><filename>/etc/xml/catalog</filename></para>
|
---|
[44b376e7] | 137 |
|
---|
[d8a437b8] | 138 | <indexterm zone="docbook-xsl docbook-xsl-config">
|
---|
| 139 | <primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
|
---|
| 140 | </indexterm>
|
---|
[d6edeb8] | 141 |
|
---|
[d8a437b8] | 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
|
---|
[5d34b74] | 152 | export XML_CATALOG_FILES="/usr/share/xml/docbook/\
|
---|
[d8a437b8] | 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" \
|
---|
[90ca10d] | 167 | "http://docbook.sourceforge.net/release/xsl/1.67.2" \
|
---|
[3b1dc849] | 168 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[90ca10d] | 169 | /etc/xml/catalog &&
|
---|
| 170 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 171 | "http://docbook.sourceforge.net/release/xsl/1.67.2" \
|
---|
[3b1dc849] | 172 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[d8a437b8] | 173 | /etc/xml/catalog</userinput></screen>
|
---|
[c2a37a6] | 174 |
|
---|
[d8a437b8] | 175 | <para>Alternatively, other versions can be installed in their own
|
---|
| 176 | versioned directories and catalog entries made in the following
|
---|
| 177 | form:</para>
|
---|
[c2a37a6] | 178 |
|
---|
[d8a437b8] | 179 | <screen role="root"><userinput>xmlcatalog --noout --add "rewriteSystem" \
|
---|
[a750d96f] | 180 | "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
|
---|
[3b1dc849] | 181 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
|
---|
| 182 | /etc/xml/catalog &&
|
---|
[a750d96f] | 183 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 184 | "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
|
---|
[3b1dc849] | 185 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
|
---|
[d8a437b8] | 186 | /etc/xml/catalog</userinput></screen>
|
---|
[c2a37a6] | 187 |
|
---|
[d8a437b8] | 188 | <!--
|
---|
[b4b813f] | 189 | The following is very specific to LFS 6.0, the first sentence for
|
---|
[d8a437b8] | 190 | make and the remainder for 'make pdf', If it stays, it needs to be removed
|
---|
[b4b813f] | 191 | after BLFS 6.0
|
---|
[c2a37a6] | 192 |
|
---|
[d8a437b8] | 193 | <para>For LFS 6.0, version 1.65.1 of this package should be
|
---|
[a568da2] | 194 | installed. In addition, you need to make a symbolic link as described in the
|
---|
[d8a437b8] | 195 | <filename>INSTALL</filename> file of LFS 6.0.</para>
|
---|
[a568da2] | 196 | <screen><userinput><command>cd /usr/share/xml/docbook/ &&
|
---|
| 197 | ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current</command></userinput></screen>
|
---|
[b4b813f] | 198 | -->
|
---|
[d8a437b8] | 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>
|
---|
[59bc4e1] | 223 |
|
---|
| 224 | </sect1>
|
---|