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