glfs/pst/xml/docbook-xsl.xml
Randy McMurchy f952748353 Fixed an incorrect installation command in the XSL Stylesheets instructions, thanks to Frank Ianella for pointing it out
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7111 af4574ff-66df-0310-9fd7-8a98e5e911e0
2007-09-22 11:31:18 +00:00

224 lines
8.5 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY docbook-xsl-download-http "http://downloads.sourceforge.net/docbook/docbook-xsl-&docbook-xsl-version;.tar.bz2">
<!ENTITY docbook-xsl-download-ftp " ">
<!ENTITY docbook-xsl-md5sum "6a269abc854ae949b2cfd6377bc17fde">
<!ENTITY docbook-xsl-size "1.4 MB">
<!ENTITY docbook-xsl-buildsize "40 MB (includes installing optional documentation)">
<!ENTITY docbook-xsl-time "less than 0.1 SBU">
<!ENTITY docbook-xsl-doc-download "http://downloads.sourceforge.net/docbook/docbook-xsl-doc-&docbook-xsl-version;.tar.bz2">
<!ENTITY docbook-xsl-doc-md5sum "f7844a751a4612c56acddc0790fbc501">
<!ENTITY docbook-xsl-doc-size "1.3 MB">
]>
<sect1 id="docbook-xsl"
xreflabel="DocBook XSL Stylesheets-&docbook-xsl-version;">
<?dbhtml filename="docbook-xsl.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>DocBook XSL Stylesheets-&docbook-xsl-version;</title>
<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>
<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>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Optional documentation: <ulink
url="&docbook-xsl-doc-download;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &docbook-xsl-doc-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &docbook-xsl-doc-size;</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">DocBook XSL Stylesheets Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required"><xref linkend="libxml2"/></para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/docbook-xsl"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of DocBook XSL Stylesheets</title>
<para>If you downloaded the optional documentation tarball, unpack it
when you unpack the source tarball. The documentation tarball unpacks into
a <filename class='directory'>doc</filename> subdirectory of the source
tree.</para>
<para>BLFS does not install the required packages to run the test suite
and provide meaningful results.</para>
<para>Install <application>DocBook XSL Stylesheets</application>
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; &amp;&amp;
cp -v -R VERSION common eclipse extensions fo highlighting html \
htmlhelp images javahelp lib manpages params profiling \
slides template tools website wordml xhtml \
/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
install -v -m644 -D README \
/usr/share/doc/docbook-xsl-&docbook-xsl-version;/README.XSL &amp;&amp;
install -v -m755 RELEASE-NOTES* NEWS* \
/usr/share/doc/docbook-xsl-&docbook-xsl-version;</userinput></screen>
<para>If you downloaded the optional documentation tarball, install the
documentation by issuing the following command as the
<systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>cp -v -R doc/* /usr/share/doc/docbook-xsl-&docbook-xsl-version;</userinput></screen>
</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 &amp;&amp;
if [ ! -f /etc/xml/catalog ]; then
xmlcatalog --noout --create /etc/xml/catalog
fi &amp;&amp;
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
"/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
/etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
"/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
/etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/current" \
"/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
/etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "rewriteURI" \
"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
example is BLFS-6.0, which required the 1.67.2 version. In these instances
you should install any other required version in its own versioned
directory and create catalog entries as follows (substitute the desired
version number for <replaceable>&lt;version&gt;</replaceable>):</para>
<screen role="root"><userinput>xmlcatalog --noout --add "rewriteSystem" \
"http://docbook.sourceforge.net/release/xsl/<replaceable>&lt;version&gt;</replaceable>" \
"/usr/share/xml/docbook/xsl-stylesheets-<replaceable>&lt;version&gt;</replaceable>" \
/etc/xml/catalog &amp;&amp;
xmlcatalog --noout --add "rewriteURI" \
"http://docbook.sourceforge.net/release/xsl/<replaceable>&lt;version&gt;</replaceable>" \
"/usr/share/xml/docbook/xsl-stylesheets-<replaceable>&lt;version&gt;</replaceable>" \
/etc/xml/catalog</userinput></screen>
<!-- Commented uot until be sure that there is no objetions from any of the
{C,H}LFS editors
<para>If you will be using the stylesheets from this installation to
render the LFS and HLFS SVN books, then you need to create a symbolic
link to the stylesheets directory so that the image files will be
found. Create the link by issuing the following command as the
<systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>ln -v -sfn xsl-stylesheets-1.69.1 \
/usr/share/xml/docbook/xsl-stylesheets-current</userinput></screen>
-->
</sect3>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Files</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>None</seg>
<seg>None</seg>
<seg>XSL style sheets for HTML and FO</seg>
<seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
/usr/share/doc/docbook-xsl-&docbook-xsl-version;</seg>
</seglistitem>
</segmentedlist>
</sect2>
</sect1>