[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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 |
|
---|
[fb0655c] | 7 | <!ENTITY path "https://github.com/docbook/xslt10-stylesheets/releases/download/release">
|
---|
| 8 |
|
---|
[c960b368] | 9 | <!ENTITY docbook-xsl-download-http "&path;/&docbook-xsl-version;/docbook-xsl-nons-&docbook-xsl-version;.tar.bz2">
|
---|
[a750d96f] | 10 | <!ENTITY docbook-xsl-download-ftp " ">
|
---|
[c960b368] | 11 | <!ENTITY docbook-xsl-md5sum "2666d1488d6ced1551d15f31d7ed8c38">
|
---|
[fb0655c] | 12 | <!ENTITY docbook-xsl-size "22 MB">
|
---|
| 13 | <!ENTITY docbook-xsl-buildsize "58 MB (includes installing optional documentation)">
|
---|
[33c43b6] | 14 | <!ENTITY docbook-xsl-time "less than 0.1 SBU">
|
---|
| 15 |
|
---|
[fb0655c] | 16 | <!ENTITY docbook-xsl-doc-download "&path;/&docbook-xsl-version;/docbook-xsl-doc-&docbook-xsl-version;.tar.bz2">
|
---|
| 17 | <!ENTITY docbook-xsl-doc-md5sum "62375ca864fc198cb2b17d98209d0b8c">
|
---|
[8c45c58] | 18 | <!ENTITY docbook-xsl-doc-size "522 KB">
|
---|
[44b376e7] | 19 | ]>
|
---|
| 20 |
|
---|
[d8a437b8] | 21 | <sect1 id="docbook-xsl"
|
---|
[59b5331] | 22 | xreflabel="docbook-xsl-nons-&docbook-xsl-version;">
|
---|
[d8a437b8] | 23 | <?dbhtml filename="docbook-xsl.html"?>
|
---|
| 24 |
|
---|
| 25 |
|
---|
[c960b368] | 26 | <title>docbook-xsl-nons-&docbook-xsl-version;</title>
|
---|
[d8a437b8] | 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 |
|
---|
[47274444] | 36 | <para>
|
---|
| 37 | The <application>DocBook XSL Stylesheets</application>
|
---|
| 38 | package contains XSL stylesheets. These are useful for
|
---|
| 39 | performing transformations on XML DocBook files.
|
---|
| 40 | </para>
|
---|
[d8a437b8] | 41 |
|
---|
[e375445] | 42 | &lfs122_checked;
|
---|
[226e336] | 43 |
|
---|
[d8a437b8] | 44 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 45 | <itemizedlist spacing="compact">
|
---|
| 46 | <listitem>
|
---|
[47274444] | 47 | <para>
|
---|
| 48 | Download (HTTP): <ulink url="&docbook-xsl-download-http;"/>
|
---|
| 49 | </para>
|
---|
[d8a437b8] | 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
[47274444] | 52 | <para>
|
---|
| 53 | Download (FTP): <ulink url="&docbook-xsl-download-ftp;"/>
|
---|
| 54 | </para>
|
---|
[d8a437b8] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[47274444] | 57 | <para>
|
---|
| 58 | Download MD5 sum: &docbook-xsl-md5sum;
|
---|
| 59 | </para>
|
---|
[d8a437b8] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[47274444] | 62 | <para>
|
---|
| 63 | Download size: &docbook-xsl-size;
|
---|
| 64 | </para>
|
---|
[d8a437b8] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[47274444] | 67 | <para>
|
---|
| 68 | Estimated disk space required: &docbook-xsl-buildsize;
|
---|
| 69 | </para>
|
---|
[d8a437b8] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[47274444] | 72 | <para>
|
---|
| 73 | Estimated build time: &docbook-xsl-time;
|
---|
| 74 | </para>
|
---|
[d8a437b8] | 75 | </listitem>
|
---|
| 76 | </itemizedlist>
|
---|
| 77 |
|
---|
[33c43b6] | 78 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[5944fc1] | 79 | <itemizedlist spacing='compact'>
|
---|
| 80 | <listitem>
|
---|
[47274444] | 81 | <para>
|
---|
| 82 | Required patch: <ulink url=
|
---|
| 83 | "&patch-root;/docbook-xsl-nons-&docbook-xsl-version;-stack_fix-1.patch"/>
|
---|
| 84 | </para>
|
---|
[5944fc1] | 85 | </listitem>
|
---|
| 86 | </itemizedlist>
|
---|
| 87 |
|
---|
[33c43b6] | 88 | <itemizedlist spacing="compact">
|
---|
[443e7e80] | 89 | <title>Optional documentation</title>
|
---|
[33c43b6] | 90 | <listitem>
|
---|
[47274444] | 91 | <para>
|
---|
| 92 | Download (HTTP): <ulink url="&docbook-xsl-doc-download;"/>
|
---|
| 93 | </para>
|
---|
[33c43b6] | 94 | </listitem>
|
---|
[9deda8e] | 95 | <listitem>
|
---|
[47274444] | 96 | <para>
|
---|
| 97 | Download MD5 sum: &docbook-xsl-doc-md5sum;
|
---|
| 98 | </para>
|
---|
[9deda8e] | 99 | </listitem>
|
---|
| 100 | <listitem>
|
---|
[47274444] | 101 | <para>
|
---|
| 102 | Download size: &docbook-xsl-doc-size;
|
---|
| 103 | </para>
|
---|
[9deda8e] | 104 | </listitem>
|
---|
[33c43b6] | 105 | </itemizedlist>
|
---|
| 106 |
|
---|
[d8a437b8] | 107 | <bridgehead renderas="sect3">DocBook XSL Stylesheets Dependencies</bridgehead>
|
---|
| 108 |
|
---|
[cd964c8] | 109 | <bridgehead renderas="sect4">Recommended (at runtime)</bridgehead>
|
---|
[47274444] | 110 | <para role="recommended">
|
---|
| 111 | <xref role="runtime" linkend="libxml2"/>
|
---|
| 112 | </para>
|
---|
[d8a437b8] | 113 |
|
---|
[cd964c8] | 114 | <bridgehead renderas="sect4">Optional (all used at runtime)</bridgehead>
|
---|
[2322dfa1] | 115 | <para role="optional">
|
---|
[8558044] | 116 | <xref role="runtime" linkend="apache-ant"/>
|
---|
[5944fc1] | 117 | (to produce <quote>webhelp</quote> documents),
|
---|
[8558044] | 118 | <xref role="runtime" linkend="libxslt"/>
|
---|
[5944fc1] | 119 | (or any other XSLT processor), to process
|
---|
[2778259c] | 120 | Docbook documents,
|
---|
[8558044] | 121 | <xref role="runtime" linkend="ruby"/>
|
---|
[5944fc1] | 122 | (to utilize the <quote>epub</quote> stylesheets),
|
---|
[8558044] | 123 | <xref role="runtime" linkend="zip"/>
|
---|
[5944fc1] | 124 | (to produce <quote>epub3</quote> documents), and
|
---|
[c6b192c] | 125 | <ulink url="https://sourceforge.net/projects/saxon/files/saxon6/">
|
---|
[2322dfa1] | 126 | Saxon6
|
---|
| 127 | </ulink> and
|
---|
| 128 | <ulink url="http://xerces.apache.org/xerces2-j/">Xerces2 Java</ulink>
|
---|
[8558044] | 129 | (used with <xref role="runtime" linkend="apache-ant"/>
|
---|
[5944fc1] | 130 | to produce <quote>webhelp</quote> documents)
|
---|
[2322dfa1] | 131 | </para>
|
---|
[94d4436] | 132 |
|
---|
[977061b0] | 133 |
|
---|
[d8a437b8] | 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | <sect2 role="installation">
|
---|
| 137 | <title>Installation of DocBook XSL Stylesheets</title>
|
---|
| 138 |
|
---|
[47274444] | 139 | <para>
|
---|
| 140 | First, fix a problem that causes stack overflows when doing recursion:
|
---|
| 141 | </para>
|
---|
[5944fc1] | 142 |
|
---|
[c960b368] | 143 | <screen><userinput>patch -Np1 -i ../docbook-xsl-nons-&docbook-xsl-version;-stack_fix-1.patch</userinput></screen>
|
---|
[5944fc1] | 144 |
|
---|
[47274444] | 145 | <para>
|
---|
| 146 | If you downloaded the optional documentation tarball, unpack it
|
---|
| 147 | with the following command:
|
---|
| 148 | </para>
|
---|
[443e7e80] | 149 |
|
---|
[571735d7] | 150 | <screen><userinput>tar -xf ../docbook-xsl-doc-&docbook-xsl-version;.tar.bz2 --strip-components=1</userinput></screen>
|
---|
[9deda8e] | 151 |
|
---|
[47274444] | 152 | <para>
|
---|
| 153 | BLFS does not install the required packages to run the test suite
|
---|
| 154 | and provide meaningful results.
|
---|
| 155 | </para>
|
---|
[33c43b6] | 156 |
|
---|
[47274444] | 157 | <para>
|
---|
| 158 | Install <application>DocBook XSL Stylesheets</application>
|
---|
| 159 | by running the following commands as the
|
---|
| 160 | <systemitem class="username">root</systemitem> user:
|
---|
| 161 | </para>
|
---|
[33c43b6] | 162 |
|
---|
[c960b368] | 163 | <screen role="root"><userinput>install -v -m755 -d /usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version; &&
|
---|
[9deda8e] | 164 |
|
---|
[2322dfa1] | 165 | cp -v -R VERSION assembly common eclipse epub epub3 extensions fo \
|
---|
| 166 | highlighting html htmlhelp images javahelp lib manpages params \
|
---|
| 167 | profiling roundtrip slides template tests tools webhelp website \
|
---|
| 168 | xhtml xhtml-1_1 xhtml5 \
|
---|
[c960b368] | 169 | /usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version; &&
|
---|
[9deda8e] | 170 |
|
---|
[c960b368] | 171 | ln -s VERSION /usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;/VERSION.xsl &&
|
---|
[27f56e2] | 172 |
|
---|
[9deda8e] | 173 | install -v -m644 -D README \
|
---|
[c960b368] | 174 | /usr/share/doc/docbook-xsl-nons-&docbook-xsl-version;/README.txt &&
|
---|
[d92b93c] | 175 | install -v -m644 RELEASE-NOTES* NEWS* \
|
---|
[c960b368] | 176 | /usr/share/doc/docbook-xsl-nons-&docbook-xsl-version;</userinput></screen>
|
---|
[33c43b6] | 177 |
|
---|
[47274444] | 178 | <para>
|
---|
| 179 | If you downloaded the optional documentation tarball, install the
|
---|
| 180 | documentation by issuing the following command as the
|
---|
| 181 | <systemitem class="username">root</systemitem> user:
|
---|
| 182 | </para>
|
---|
[33c43b6] | 183 |
|
---|
[c960b368] | 184 | <screen role="root"><userinput>cp -v -R doc/* /usr/share/doc/docbook-xsl-nons-&docbook-xsl-version;</userinput></screen>
|
---|
[33c43b6] | 185 |
|
---|
| 186 | </sect2>
|
---|
| 187 |
|
---|
| 188 | <sect2 role="configuration">
|
---|
| 189 | <title>Configuring DocBook XSL Stylesheets</title>
|
---|
| 190 |
|
---|
| 191 | <sect3 id="docbook-xsl-config">
|
---|
| 192 | <title>Config Files</title>
|
---|
| 193 |
|
---|
[47274444] | 194 | <para>
|
---|
| 195 | <filename>/etc/xml/catalog</filename>
|
---|
| 196 | </para>
|
---|
[33c43b6] | 197 |
|
---|
| 198 | <indexterm zone="docbook-xsl docbook-xsl-config">
|
---|
| 199 | <primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 |
|
---|
| 202 | </sect3>
|
---|
| 203 |
|
---|
| 204 | <sect3>
|
---|
| 205 | <title>Configuration Information</title>
|
---|
| 206 |
|
---|
[c960b368] | 207 | <note>
|
---|
[47274444] | 208 | <para>
|
---|
| 209 | If you are installing the current version of docbook-xsl-nons
|
---|
| 210 | over a previous version of docbook-xsl, then remove the old
|
---|
| 211 | rewrite entries in the catalog as the <systemitem
|
---|
| 212 | class="username">root</systemitem> user:
|
---|
| 213 | </para>
|
---|
[c960b368] | 214 |
|
---|
[8992526] | 215 | <screen role="nodump"><userinput>sed -i '/rewrite/d' /etc/xml/catalog</userinput></screen>
|
---|
[c960b368] | 216 | </note>
|
---|
| 217 |
|
---|
[47274444] | 218 | <para>
|
---|
| 219 | Create (or append) and populate the XML catalog file using the
|
---|
| 220 | following commands as the <systemitem
|
---|
[a53c912] | 221 | class="username">root</systemitem> user (both <emphasis>http</emphasis>
|
---|
| 222 | and <emphasis>https</emphasis> forms are used because upstream
|
---|
| 223 | have had both in their documentation):
|
---|
[47274444] | 224 | </para>
|
---|
[33c43b6] | 225 |
|
---|
| 226 | <screen role="root"><userinput>if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi &&
|
---|
| 227 | if [ ! -f /etc/xml/catalog ]; then
|
---|
[b4b813f] | 228 | xmlcatalog --noout --create /etc/xml/catalog
|
---|
| 229 | fi &&
|
---|
[33c43b6] | 230 |
|
---|
[a53c912] | 231 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
| 232 | "http://cdn.docbook.org/release/xsl-nons/&docbook-xsl-version;" \
|
---|
| 233 | "/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;" \
|
---|
| 234 | /etc/xml/catalog &&
|
---|
| 235 |
|
---|
[44b376e7] | 236 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[ff204c0a] | 237 | "https://cdn.docbook.org/release/xsl-nons/&docbook-xsl-version;" \
|
---|
| 238 | "/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;" \
|
---|
[c960b368] | 239 | /etc/xml/catalog &&
|
---|
| 240 |
|
---|
[a53c912] | 241 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 242 | "http://cdn.docbook.org/release/xsl-nons/&docbook-xsl-version;" \
|
---|
| 243 | "/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;" \
|
---|
| 244 | /etc/xml/catalog &&
|
---|
| 245 |
|
---|
[c960b368] | 246 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[ff204c0a] | 247 | "https://cdn.docbook.org/release/xsl-nons/&docbook-xsl-version;" \
|
---|
| 248 | "/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;" \
|
---|
[c960b368] | 249 | /etc/xml/catalog &&
|
---|
| 250 |
|
---|
[a53c912] | 251 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
| 252 | "http://cdn.docbook.org/release/xsl-nons/current" \
|
---|
| 253 | "/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;" \
|
---|
| 254 | /etc/xml/catalog &&
|
---|
| 255 |
|
---|
[c960b368] | 256 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
| 257 | "https://cdn.docbook.org/release/xsl-nons/current" \
|
---|
[ff204c0a] | 258 | "/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;" \
|
---|
[b4b813f] | 259 | /etc/xml/catalog &&
|
---|
[2f5888f] | 260 |
|
---|
[a53c912] | 261 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 262 | "http://cdn.docbook.org/release/xsl-nons/current" \
|
---|
| 263 | "/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;" \
|
---|
| 264 | /etc/xml/catalog &&
|
---|
| 265 |
|
---|
[44b376e7] | 266 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[c960b368] | 267 | "https://cdn.docbook.org/release/xsl-nons/current" \
|
---|
[ff204c0a] | 268 | "/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;" \
|
---|
[b4b813f] | 269 | /etc/xml/catalog &&
|
---|
[2f5888f] | 270 |
|
---|
[b4b813f] | 271 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[2f5888f] | 272 | "http://docbook.sourceforge.net/release/xsl/current" \
|
---|
[ff204c0a] | 273 | "/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;" \
|
---|
[b4b813f] | 274 | /etc/xml/catalog &&
|
---|
[2f5888f] | 275 |
|
---|
[b4b813f] | 276 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[2f5888f] | 277 | "http://docbook.sourceforge.net/release/xsl/current" \
|
---|
[ff204c0a] | 278 | "/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;" \
|
---|
[2f5888f] | 279 | /etc/xml/catalog</userinput></screen>
|
---|
| 280 |
|
---|
[47274444] | 281 | <para>
|
---|
| 282 | Occasionally, you may find the need to install other versions of the
|
---|
| 283 | XSL stylesheets as some projects reference a specific version. One
|
---|
| 284 | example is BLFS-6.0, which required the 1.67.2 version. In these
|
---|
| 285 | instances you should install any other required version in its own
|
---|
| 286 | versioned directory and create catalog entries as follows (substitute
|
---|
| 287 | the desired version number for
|
---|
| 288 | <replaceable><version></replaceable>):
|
---|
| 289 | </para>
|
---|
[2f5888f] | 290 |
|
---|
[798c542] | 291 | <screen role="nodump"><userinput>xmlcatalog --noout --add "rewriteSystem" \
|
---|
[977061b0] | 292 | "http://docbook.sourceforge.net/release/xsl/<replaceable><version></replaceable>" \
|
---|
| 293 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable><version></replaceable>" \
|
---|
[2f5888f] | 294 | /etc/xml/catalog &&
|
---|
| 295 |
|
---|
| 296 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[977061b0] | 297 | "http://docbook.sourceforge.net/release/xsl/<replaceable><version></replaceable>" \
|
---|
| 298 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable><version></replaceable>" \
|
---|
[d8a437b8] | 299 | /etc/xml/catalog</userinput></screen>
|
---|
[44b376e7] | 300 |
|
---|
[d8a437b8] | 301 | </sect3>
|
---|
| 302 |
|
---|
| 303 | </sect2>
|
---|
| 304 |
|
---|
| 305 | <sect2 role="content">
|
---|
| 306 | <title>Contents</title>
|
---|
| 307 |
|
---|
| 308 | <segmentedlist>
|
---|
[f6be42d] | 309 | <segtitle>Installed Files</segtitle>
|
---|
[d8a437b8] | 310 | <segtitle>Installed Directories</segtitle>
|
---|
| 311 |
|
---|
| 312 | <seglistitem>
|
---|
[64daebf] | 313 | <seg>/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version;/*/*.xsl</seg>
|
---|
| 314 | <seg>/usr/share/xml/docbook/xsl-stylesheets-nons-&docbook-xsl-version; and
|
---|
| 315 | /usr/share/doc/docbook-xsl-nons-&docbook-xsl-version;</seg>
|
---|
[d8a437b8] | 316 | </seglistitem>
|
---|
| 317 | </segmentedlist>
|
---|
| 318 |
|
---|
[f6be42d] | 319 | <variablelist>
|
---|
| 320 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 321 | <?dbfo list-presentation="list"?>
|
---|
| 322 | <?dbhtml list-presentation="table"?>
|
---|
| 323 |
|
---|
| 324 | <varlistentry id="xsl-stylesheets">
|
---|
| 325 | <term><filename>XSL Stylesheets</filename></term>
|
---|
| 326 | <listitem>
|
---|
| 327 | <para>
|
---|
[4c24eb0a] | 328 | are used for performing transformations on XML files
|
---|
[f6be42d] | 329 | </para>
|
---|
| 330 | <indexterm zone="docbook-xsl xsl-stylesheets">
|
---|
| 331 | <primary sortas="g-XSL-Stylesheets">XSL Stylesheets</primary>
|
---|
| 332 | </indexterm>
|
---|
| 333 | </listitem>
|
---|
| 334 | </varlistentry>
|
---|
| 335 |
|
---|
| 336 | </variablelist>
|
---|
| 337 |
|
---|
[d8a437b8] | 338 | </sect2>
|
---|
[59bc4e1] | 339 |
|
---|
| 340 | </sect1>
|
---|