[ff769b8c] | 1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 2 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[44b376e7] | 3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 4 | %general-entities;
|
---|
[dc477899] | 5 |
|
---|
[a750d96f] | 6 | <!ENTITY docbook-xsl-download-http "http://prdownloads.sourceforge.net/docbook/docbook-xsl-&docbook-xsl-version;.tar.bz2">
|
---|
| 7 | <!ENTITY docbook-xsl-download-ftp " ">
|
---|
[b4b813f] | 8 | <!ENTITY docbook-xsl-md5sum "f4985efbc0f3411af8106928f8752fc5">
|
---|
| 9 | <!ENTITY docbook-xsl-size "967 KB">
|
---|
| 10 | <!ENTITY docbook-xsl-buildsize "26.4 MB">
|
---|
[44b376e7] | 11 | <!ENTITY docbook-xsl-time "0.01 SBU">
|
---|
| 12 | ]>
|
---|
| 13 |
|
---|
[c2a37a6] | 14 | <sect1 id="docbook-xsl"
|
---|
| 15 | xreflabel="DocBook XSL Stylesheets-&docbook-xsl-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[dd3f20f0] | 20 | <?dbhtml filename="docbook-xsl.html"?>
|
---|
[b028890] | 21 | <title>DocBook XSL Stylesheets-&docbook-xsl-version;</title>
|
---|
[b4b813f] | 22 | <indexterm zone="docbook-xsl">
|
---|
| 23 | <primary sortas="a-DocBook-XSL-Stylesheets">DocBook XSL
|
---|
| 24 | Stylesheets</primary></indexterm>
|
---|
[59bc4e1] | 25 |
|
---|
[44b376e7] | 26 | <sect2>
|
---|
[93dda11b] | 27 | <title>Introduction to <application>DocBook <acronym>XSL</acronym>
|
---|
| 28 | Stylesheets</application></title>
|
---|
[44b376e7] | 29 |
|
---|
| 30 | <para>The <application>DocBook <acronym>XSL</acronym> Stylesheets</application>
|
---|
[93dda11b] | 31 | package contains <acronym>XSL</acronym> stylesheets. These are useful for
|
---|
| 32 | performing transformations on <acronym>XML</acronym> DocBook files.</para>
|
---|
[44b376e7] | 33 |
|
---|
| 34 | <sect3><title>Package information</title>
|
---|
| 35 | <itemizedlist spacing='compact'>
|
---|
| 36 | <listitem><para>Download (HTTP): <ulink
|
---|
| 37 | url="&docbook-xsl-download-http;"/></para></listitem>
|
---|
| 38 | <listitem><para>Download (FTP): <ulink
|
---|
| 39 | url="&docbook-xsl-download-ftp;"/></para></listitem>
|
---|
[c2a37a6] | 40 | <listitem><para>Download MD5 sum: &docbook-xsl-md5sum;</para></listitem>
|
---|
[44b376e7] | 41 | <listitem><para>Download size: &docbook-xsl-size;</para></listitem>
|
---|
[3b1dc849] | 42 | <listitem><para>Estimated disk space required:
|
---|
[44b376e7] | 43 | &docbook-xsl-buildsize;</para></listitem>
|
---|
| 44 | <listitem><para>Estimated build time:
|
---|
| 45 | &docbook-xsl-time;</para></listitem></itemizedlist>
|
---|
| 46 | </sect3>
|
---|
| 47 |
|
---|
[93dda11b] | 48 | <sect3><title><application>DocBook <acronym>XSL</acronym>
|
---|
| 49 | Stylesheets</application> dependencies</title>
|
---|
[44b376e7] | 50 | <sect4><title>Required</title>
|
---|
[dc477899] | 51 | <para><xref linkend="libxslt"/></para>
|
---|
| 52 | </sect4>
|
---|
[44b376e7] | 53 | </sect3>
|
---|
| 54 |
|
---|
| 55 | </sect2>
|
---|
| 56 |
|
---|
| 57 | <sect2>
|
---|
[93dda11b] | 58 | <title>Installation of <application>DocBook <acronym>XSL</acronym>
|
---|
| 59 | Stylesheets</application></title>
|
---|
[44b376e7] | 60 |
|
---|
[93dda11b] | 61 | <para>Install <application>DocBook <acronym>XSL</acronym>
|
---|
[b4b813f] | 62 | Stylesheets</application> by running the following commands as the root
|
---|
| 63 | user:</para>
|
---|
[44b376e7] | 64 |
|
---|
[b4b813f] | 65 | <screen><userinput role='root'><command>install -v -d -m755 /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
| 66 | install -v -d -m755 /etc/xml &&
|
---|
[93dda11b] | 67 | chown -R root:root . &&
|
---|
[b4b813f] | 68 | cp -v -af INSTALL VERSION common eclipse extensions fo html htmlhelp \
|
---|
[5d34b74] | 69 | images javahelp lib manpages params profiling template xhtml \
|
---|
[44b376e7] | 70 | /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
[b4b813f] | 71 | install -v -d -m755 /usr/share/doc/xml &&
|
---|
| 72 | cp -v -af doc/* /usr/share/doc/xml &&
|
---|
[a750d96f] | 73 | cd /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
[b4b813f] | 74 | sh INSTALL</command></userinput></screen>
|
---|
| 75 |
|
---|
| 76 | <para>Create (or append to) and populate the <acronym>XML</acronym> catalog
|
---|
| 77 | files using the following commands as the root user:</para>
|
---|
| 78 |
|
---|
| 79 | <screen><userinput role='root'><command>if [ ! -f /etc/xml/catalog ]; then
|
---|
| 80 | xmlcatalog --noout --create /etc/xml/catalog
|
---|
| 81 | fi &&
|
---|
| 82 | if [ ! -f /etc/xml/docbook ]; then
|
---|
| 83 | xmlcatalog --noout --create /etc/xml/docbook
|
---|
| 84 | fi &&
|
---|
[44b376e7] | 85 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[dc477899] | 86 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
[b4b813f] | 87 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
| 88 | /etc/xml/catalog &&
|
---|
[44b376e7] | 89 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[dc477899] | 90 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
[b4b813f] | 91 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
| 92 | /etc/xml/catalog &&
|
---|
| 93 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
| 94 | "http://docbook.sourceforge.net/release/xsl/current" \
|
---|
| 95 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
| 96 | /etc/xml/catalog &&
|
---|
| 97 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 98 | "http://docbook.sourceforge.net/release/xsl/current" \
|
---|
| 99 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
| 100 | /etc/xml/catalog &&
|
---|
[44b376e7] | 101 | xmlcatalog --noout --add "delegateSystem" \
|
---|
| 102 | "http://docbook.sourceforge.net/release/xsl/" \
|
---|
[b4b813f] | 103 | "file:///etc/xml/docbook" \
|
---|
| 104 | /etc/xml/catalog &&
|
---|
[44b376e7] | 105 | xmlcatalog --noout --add "delegateURI" \
|
---|
| 106 | "http://docbook.sourceforge.net/release/xsl/" \
|
---|
[b4b813f] | 107 | "file:///etc/xml/docbook" \
|
---|
| 108 | /etc/xml/catalog</command></userinput></screen>
|
---|
[44b376e7] | 109 |
|
---|
| 110 | </sect2>
|
---|
| 111 |
|
---|
[d6edeb8] | 112 | <sect2>
|
---|
| 113 | <title>Command explanations</title>
|
---|
| 114 |
|
---|
| 115 | <para><command>sh INSTALL</command>: This command creates a local
|
---|
| 116 | catalog for the <acronym>XSL</acronym> files.</para>
|
---|
| 117 |
|
---|
| 118 | </sect2>
|
---|
| 119 |
|
---|
[44b376e7] | 120 | <sect2>
|
---|
[93dda11b] | 121 | <title>Configuring <application>DocBook <acronym>XSL</acronym>
|
---|
| 122 | Stylesheets</application></title>
|
---|
[44b376e7] | 123 |
|
---|
[7302427] | 124 | <sect3 id="docbook-xsl-config"><title>Config files</title>
|
---|
[44b376e7] | 125 | <para><filename>/etc/xml/catalog</filename></para>
|
---|
[d6edeb8] | 126 | <indexterm zone="docbook-xsl docbook-xsl-config"><primary
|
---|
[71d04e9] | 127 | sortas="e-etc-xml-catalog">/etc/xml/catalog</primary></indexterm>
|
---|
[44b376e7] | 128 | </sect3>
|
---|
| 129 |
|
---|
| 130 | <sect3><title>Configuration Information</title>
|
---|
| 131 |
|
---|
[d6edeb8] | 132 | <para>The system profile needs to be updated to utilize the new
|
---|
| 133 | installed catalog. This can be done with the following command:</para>
|
---|
| 134 |
|
---|
| 135 | <screen><userinput><command>cat > /etc/profile.d/xsl.sh << "EOF"</command>
|
---|
| 136 | # Set up Environment Variable for XSL Processing
|
---|
[5d34b74] | 137 | export XML_CATALOG_FILES="/usr/share/xml/docbook/\
|
---|
| 138 | xsl-stylesheets-&docbook-xsl-version;/catalog.xml /etc/xml/catalog"
|
---|
[d6edeb8] | 139 | <command>EOF</command></userinput></screen>
|
---|
| 140 |
|
---|
[44b376e7] | 141 | <para>The above installation script creates the files and updates the
|
---|
[90ca10d] | 142 | catalog with the current version of the <acronym>XML</acronym> stylesheets.
|
---|
| 143 | Some project stylesheets reference specific versions of
|
---|
[b4b813f] | 144 | <acronym>XSL</acronym> stylesheets, like <acronym>BLFS</acronym>-6.0, which
|
---|
[90ca10d] | 145 | needs the 1.67.2 version. The following commands can serve as an example for
|
---|
| 146 | using a single <acronym>XSL</acronym> version to support any hard coded
|
---|
[d0a1a90] | 147 | versions, as needed. Use the following as an example to use the current
|
---|
[90ca10d] | 148 | version of the stylesheets for the 1.67.2 version. Edit or add to the
|
---|
| 149 | commands to suit your particular needs. Issue the commands as the root
|
---|
| 150 | user:</para>
|
---|
| 151 |
|
---|
| 152 | <screen><userinput><command>xmlcatalog --noout --add "rewriteSystem" \
|
---|
| 153 | "http://docbook.sourceforge.net/release/xsl/1.67.2" \
|
---|
[3b1dc849] | 154 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[90ca10d] | 155 | /etc/xml/catalog &&
|
---|
| 156 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 157 | "http://docbook.sourceforge.net/release/xsl/1.67.2" \
|
---|
[3b1dc849] | 158 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
[90ca10d] | 159 | /etc/xml/catalog</command></userinput></screen>
|
---|
[c2a37a6] | 160 |
|
---|
[a750d96f] | 161 | <para>Alternatively, other versions can be installed in their own
|
---|
| 162 | versioned directories and catalog entries made in the following
|
---|
| 163 | form:</para>
|
---|
[c2a37a6] | 164 |
|
---|
[a750d96f] | 165 | <screen><userinput><command>xmlcatalog --noout --add "rewriteSystem" \
|
---|
| 166 | "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
|
---|
[3b1dc849] | 167 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
|
---|
| 168 | /etc/xml/catalog &&
|
---|
[a750d96f] | 169 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 170 | "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
|
---|
[3b1dc849] | 171 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
|
---|
| 172 | /etc/xml/catalog</command></userinput></screen>
|
---|
[c2a37a6] | 173 |
|
---|
[b4b813f] | 174 | <!--
|
---|
| 175 | The following is very specific to LFS 6.0, the first sentence for
|
---|
[a568da2] | 176 | make and the remainder for 'make pdf', If it stays, it needs to be removed
|
---|
[b4b813f] | 177 | after BLFS 6.0
|
---|
[c2a37a6] | 178 |
|
---|
[a568da2] | 179 | <para>For <acronym>LFS</acronym> 6.0, version 1.65.1 of this package should be
|
---|
| 180 | installed. In addition, you need to make a symbolic link as described in the
|
---|
| 181 | <filename>INSTALL</filename> file of <acronym>LFS</acronym> 6.0.</para>
|
---|
| 182 | <screen><userinput><command>cd /usr/share/xml/docbook/ &&
|
---|
| 183 | ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current</command></userinput></screen>
|
---|
[b4b813f] | 184 | -->
|
---|
[44b376e7] | 185 | </sect3>
|
---|
| 186 |
|
---|
| 187 | </sect2>
|
---|
| 188 |
|
---|
| 189 | <sect2>
|
---|
| 190 | <title>Contents</title>
|
---|
[b4b813f] | 191 |
|
---|
[5cb3ea7] | 192 | <segmentedlist>
|
---|
[b4b813f] | 193 | <segtitle>Installed Programs</segtitle>
|
---|
| 194 | <segtitle>Installed Libraries</segtitle>
|
---|
[5cb3ea7] | 195 | <segtitle>Installed Files</segtitle>
|
---|
[7302427] | 196 | <segtitle>Installed Directories</segtitle>
|
---|
[b4b813f] | 197 |
|
---|
| 198 | <seglistitem>
|
---|
| 199 | <seg>None</seg>
|
---|
| 200 | <seg>None</seg>
|
---|
| 201 | <seg><acronym>XSL</acronym> style sheets for <acronym>HTML</acronym> and
|
---|
| 202 | <acronym>FO</acronym></seg>
|
---|
[7302427] | 203 | <seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
|
---|
| 204 | /usr/share/doc/xml</seg>
|
---|
| 205 | </seglistitem>
|
---|
| 206 | </segmentedlist>
|
---|
[44b376e7] | 207 |
|
---|
| 208 | </sect2>
|
---|
[59bc4e1] | 209 |
|
---|
| 210 | </sect1>
|
---|