2005-05-17 01:58:20 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-14 12:56:21 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2004-10-19 06:35:45 +08:00
|
|
|
|
2017-12-30 02:06:25 +08:00
|
|
|
<!ENTITY path "https://github.com/docbook/xslt10-stylesheets/releases/download/release">
|
|
|
|
|
|
|
|
<!ENTITY docbook-xsl-download-http "&path;/&docbook-xsl-version;/docbook-xsl-&docbook-xsl-version;.tar.bz2">
|
2005-01-04 05:20:07 +08:00
|
|
|
<!ENTITY docbook-xsl-download-ftp " ">
|
2017-12-30 02:06:25 +08:00
|
|
|
<!ENTITY docbook-xsl-md5sum "4a400f0264a19329c7f95f69e098744a">
|
|
|
|
<!ENTITY docbook-xsl-size "22 MB">
|
|
|
|
<!ENTITY docbook-xsl-buildsize "58 MB (includes installing optional documentation)">
|
2005-09-11 06:52:52 +08:00
|
|
|
<!ENTITY docbook-xsl-time "less than 0.1 SBU">
|
|
|
|
|
2017-12-30 02:06:25 +08:00
|
|
|
<!ENTITY docbook-xsl-doc-download "&path;/&docbook-xsl-version;/docbook-xsl-doc-&docbook-xsl-version;.tar.bz2">
|
|
|
|
<!ENTITY docbook-xsl-doc-md5sum "62375ca864fc198cb2b17d98209d0b8c">
|
2013-07-31 04:26:12 +08:00
|
|
|
<!ENTITY docbook-xsl-doc-size "1.0 MB">
|
2004-06-14 12:56:21 +08:00
|
|
|
]>
|
|
|
|
|
2005-05-17 01:58:20 +08:00
|
|
|
<sect1 id="docbook-xsl"
|
2012-04-18 13:18:11 +08:00
|
|
|
xreflabel="docbook-xsl-&docbook-xsl-version;">
|
2005-05-17 01:58:20 +08:00
|
|
|
<?dbhtml filename="docbook-xsl.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
2012-04-18 13:18:11 +08:00
|
|
|
<title>docbook-xsl-&docbook-xsl-version;</title>
|
2005-05-17 01:58:20 +08:00
|
|
|
|
|
|
|
<indexterm zone="docbook-xsl">
|
|
|
|
<primary sortas="a-DocBook-XSL-Stylesheets">DocBook XSL
|
|
|
|
Stylesheets</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to DocBook XSL Stylesheets</title>
|
|
|
|
|
|
|
|
<para>The <application>DocBook XSL Stylesheets</application>
|
|
|
|
package contains XSL stylesheets. These are useful for
|
|
|
|
performing transformations on XML DocBook files.</para>
|
|
|
|
|
2018-08-26 07:06:17 +08:00
|
|
|
&lfs83_checked;
|
2009-07-29 22:54:02 +08:00
|
|
|
|
2005-05-17 01:58:20 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&docbook-xsl-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&docbook-xsl-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &docbook-xsl-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &docbook-xsl-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &docbook-xsl-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &docbook-xsl-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2005-09-11 06:52:52 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
2018-01-02 03:26:38 +08:00
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem>
|
|
|
|
<para>Required patch: <ulink
|
|
|
|
url="&patch-root;/docbook-xsl-&docbook-xsl-version;-stack_fix-1.patch"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2005-09-11 06:52:52 +08:00
|
|
|
<itemizedlist spacing="compact">
|
2009-08-01 18:30:43 +08:00
|
|
|
<title>Optional documentation</title>
|
2005-09-11 06:52:52 +08:00
|
|
|
<listitem>
|
2009-08-01 18:30:43 +08:00
|
|
|
<para>Download (HTTP): <ulink url="&docbook-xsl-doc-download;"/></para>
|
2005-09-11 06:52:52 +08:00
|
|
|
</listitem>
|
2007-08-19 04:01:45 +08:00
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &docbook-xsl-doc-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &docbook-xsl-doc-size;</para>
|
|
|
|
</listitem>
|
2005-09-11 06:52:52 +08:00
|
|
|
</itemizedlist>
|
|
|
|
|
2005-05-17 01:58:20 +08:00
|
|
|
<bridgehead renderas="sect3">DocBook XSL Stylesheets Dependencies</bridgehead>
|
|
|
|
|
2017-11-23 11:21:36 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended (at runtime)</bridgehead>
|
|
|
|
<para role="recommended"><xref role="runtime" linkend="libxml2"/></para>
|
2005-05-17 01:58:20 +08:00
|
|
|
|
2017-11-23 11:21:36 +08:00
|
|
|
<bridgehead renderas="sect4">Optional (all used at runtime)</bridgehead>
|
2016-01-02 18:54:54 +08:00
|
|
|
<para role="optional">
|
2018-01-02 03:26:38 +08:00
|
|
|
<xref role="runtime" linkend="apache-ant"/>
|
|
|
|
(to produce <quote>webhelp</quote> documents),
|
|
|
|
<xref role="runtime" linkend="libxslt"/>
|
|
|
|
(or any other XSLT processor), to process
|
|
|
|
Docbook documents - the <application>Python2</application> modules
|
|
|
|
libxml2 and libxslt can be used,
|
2017-11-23 11:21:36 +08:00
|
|
|
<xref role="runtime" linkend="python2"/> (at runtime),
|
2018-01-02 03:26:38 +08:00
|
|
|
<xref role="runtime" linkend="ruby"/>
|
|
|
|
(to utilize the <quote>epub</quote> stylesheets),
|
|
|
|
<xref role="runtime" linkend="zip"/>
|
|
|
|
(to produce <quote>epub3</quote> documents), and
|
2016-01-02 18:54:54 +08:00
|
|
|
<ulink url="http://sourceforge.net/projects/saxon/files/saxon6/">
|
|
|
|
Saxon6
|
|
|
|
</ulink> and
|
|
|
|
<ulink url="http://xerces.apache.org/xerces2-j/">Xerces2 Java</ulink>
|
2018-01-02 03:26:38 +08:00
|
|
|
(used with <xref role="runtime" linkend="apache-ant"/>
|
|
|
|
to produce <quote>webhelp</quote> documents)
|
2016-01-02 18:54:54 +08:00
|
|
|
</para>
|
2010-02-27 06:26:03 +08:00
|
|
|
|
2006-04-11 02:38:41 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/docbook-xsl"/></para>
|
|
|
|
|
2005-05-17 01:58:20 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of DocBook XSL Stylesheets</title>
|
|
|
|
|
2018-01-02 03:26:38 +08:00
|
|
|
<para>First, fix a problem that causes stack overflows when doing recursion:</para>
|
|
|
|
|
|
|
|
<screen><userinput>patch -Np1 -i ../docbook-xsl-&docbook-xsl-version;-stack_fix-1.patch</userinput></screen>
|
|
|
|
|
2005-09-11 06:52:52 +08:00
|
|
|
<para>If you downloaded the optional documentation tarball, unpack it
|
2009-08-01 18:30:43 +08:00
|
|
|
with the following command:</para>
|
|
|
|
|
2010-02-15 18:26:28 +08:00
|
|
|
<screen><userinput>tar -xf ../docbook-xsl-doc-&docbook-xsl-version;.tar.bz2 --strip-components=1</userinput></screen>
|
2007-08-19 04:01:45 +08:00
|
|
|
|
|
|
|
<para>BLFS does not install the required packages to run the test suite
|
|
|
|
and provide meaningful results.</para>
|
2005-09-11 06:52:52 +08:00
|
|
|
|
2005-05-17 01:58:20 +08:00
|
|
|
<para>Install <application>DocBook XSL Stylesheets</application>
|
2005-09-11 06:52:52 +08:00
|
|
|
by running the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>install -v -m755 -d /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
2007-08-19 04:01:45 +08:00
|
|
|
|
2016-01-02 18:54:54 +08:00
|
|
|
cp -v -R VERSION assembly common eclipse epub epub3 extensions fo \
|
|
|
|
highlighting html htmlhelp images javahelp lib manpages params \
|
|
|
|
profiling roundtrip slides template tests tools webhelp website \
|
|
|
|
xhtml xhtml-1_1 xhtml5 \
|
2007-08-19 04:01:45 +08:00
|
|
|
/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
|
|
|
|
2012-08-24 20:12:45 +08:00
|
|
|
ln -s VERSION /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;/VERSION.xsl &&
|
|
|
|
|
2007-08-19 04:01:45 +08:00
|
|
|
install -v -m644 -D README \
|
2012-10-23 01:15:03 +08:00
|
|
|
/usr/share/doc/docbook-xsl-&docbook-xsl-version;/README.txt &&
|
2012-10-31 09:43:31 +08:00
|
|
|
install -v -m644 RELEASE-NOTES* NEWS* \
|
2007-09-22 19:31:18 +08:00
|
|
|
/usr/share/doc/docbook-xsl-&docbook-xsl-version;</userinput></screen>
|
2005-09-11 06:52:52 +08:00
|
|
|
|
|
|
|
<para>If you downloaded the optional documentation tarball, install the
|
2007-08-19 04:01:45 +08:00
|
|
|
documentation by issuing the following command as the
|
2005-09-11 06:52:52 +08:00
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2007-08-19 04:01:45 +08:00
|
|
|
<screen role="root"><userinput>cp -v -R doc/* /usr/share/doc/docbook-xsl-&docbook-xsl-version;</userinput></screen>
|
2005-09-11 06:52:52 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring DocBook XSL Stylesheets</title>
|
|
|
|
|
|
|
|
<sect3 id="docbook-xsl-config">
|
|
|
|
<title>Config Files</title>
|
|
|
|
|
|
|
|
<para><filename>/etc/xml/catalog</filename></para>
|
|
|
|
|
|
|
|
<indexterm zone="docbook-xsl docbook-xsl-config">
|
|
|
|
<primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
|
|
|
<para>Create (or append) and populate the XML catalog file using the
|
|
|
|
following commands as the <systemitem class="username">root</systemitem>
|
|
|
|
user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi &&
|
|
|
|
if [ ! -f /etc/xml/catalog ]; then
|
2005-04-02 07:38:55 +08:00
|
|
|
xmlcatalog --noout --create /etc/xml/catalog
|
|
|
|
fi &&
|
2005-09-11 06:52:52 +08:00
|
|
|
|
2004-06-14 12:56:21 +08:00
|
|
|
xmlcatalog --noout --add "rewriteSystem" \
|
2005-09-11 21:47:33 +08:00
|
|
|
"http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
|
|
|
"/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
2005-04-02 07:38:55 +08:00
|
|
|
/etc/xml/catalog &&
|
2005-09-11 21:47:33 +08:00
|
|
|
|
2004-06-14 12:56:21 +08:00
|
|
|
xmlcatalog --noout --add "rewriteURI" \
|
2005-09-11 21:47:33 +08:00
|
|
|
"http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
|
|
|
"/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
2005-04-02 07:38:55 +08:00
|
|
|
/etc/xml/catalog &&
|
2005-09-11 21:47:33 +08:00
|
|
|
|
2005-04-02 07:38:55 +08:00
|
|
|
xmlcatalog --noout --add "rewriteSystem" \
|
2005-09-11 21:47:33 +08:00
|
|
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
|
|
|
"/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
2005-04-02 07:38:55 +08:00
|
|
|
/etc/xml/catalog &&
|
2005-09-11 21:47:33 +08:00
|
|
|
|
2005-04-02 07:38:55 +08:00
|
|
|
xmlcatalog --noout --add "rewriteURI" \
|
2005-09-11 21:47:33 +08:00
|
|
|
"http://docbook.sourceforge.net/release/xsl/current" \
|
|
|
|
"/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
|
|
|
/etc/xml/catalog</userinput></screen>
|
|
|
|
|
|
|
|
<para>Occasionally, you may find the need to install other versions of
|
|
|
|
the XSL stylesheets as some projects reference a specific version. One
|
2007-08-19 04:01:45 +08:00
|
|
|
example is BLFS-6.0, which required the 1.67.2 version. In these instances
|
2005-09-11 21:47:33 +08:00
|
|
|
you should install any other required version in its own versioned
|
|
|
|
directory and create catalog entries as follows (substitute the desired
|
2006-04-11 02:38:41 +08:00
|
|
|
version number for <replaceable><version></replaceable>):</para>
|
2005-09-11 21:47:33 +08:00
|
|
|
|
2018-04-14 15:00:41 +08:00
|
|
|
<screen role="nodump"><userinput>xmlcatalog --noout --add "rewriteSystem" \
|
2006-04-11 02:38:41 +08:00
|
|
|
"http://docbook.sourceforge.net/release/xsl/<replaceable><version></replaceable>" \
|
|
|
|
"/usr/share/xml/docbook/xsl-stylesheets-<replaceable><version></replaceable>" \
|
2005-09-11 21:47:33 +08:00
|
|
|
/etc/xml/catalog &&
|
|
|
|
|
|
|
|
xmlcatalog --noout --add "rewriteURI" \
|
2006-04-11 02:38:41 +08:00
|
|
|
"http://docbook.sourceforge.net/release/xsl/<replaceable><version></replaceable>" \
|
|
|
|
"/usr/share/xml/docbook/xsl-stylesheets-<replaceable><version></replaceable>" \
|
2005-05-17 01:58:20 +08:00
|
|
|
/etc/xml/catalog</userinput></screen>
|
2004-06-14 12:56:21 +08:00
|
|
|
|
2005-05-17 01:58:20 +08:00
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>None</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
<seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
|
2005-09-11 06:52:52 +08:00
|
|
|
/usr/share/doc/docbook-xsl-&docbook-xsl-version;</seg>
|
2005-05-17 01:58:20 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-12-14 12:11:41 +08:00
|
|
|
|
|
|
|
</sect1>
|