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