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