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