[44b376e7] | 1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 2 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 4 | %general-entities;
|
---|
[dc477899] | 5 |
|
---|
[a750d96f] | 6 | <!ENTITY docbook-xsl-download-http "http://prdownloads.sourceforge.net/docbook/docbook-xsl-&docbook-xsl-version;.tar.bz2">
|
---|
| 7 | <!ENTITY docbook-xsl-download-ftp " ">
|
---|
| 8 | <!ENTITY docbook-xsl-size "975 KB">
|
---|
[dc477899] | 9 | <!ENTITY docbook-xsl-buildsize "25 MB">
|
---|
[44b376e7] | 10 | <!ENTITY docbook-xsl-time "0.01 SBU">
|
---|
| 11 | ]>
|
---|
| 12 |
|
---|
[b028890] | 13 | <sect1 id="docbook-xsl" xreflabel="DocBook XSL Stylesheets-&docbook-xsl-version;">
|
---|
[a0f03b0] | 14 | <sect1info>
|
---|
[5cd0959d] | 15 | <othername>$LastChangedBy$</othername>
|
---|
| 16 | <date>$Date$</date>
|
---|
[a0f03b0] | 17 | </sect1info>
|
---|
[dd3f20f0] | 18 | <?dbhtml filename="docbook-xsl.html"?>
|
---|
[b028890] | 19 | <title>DocBook XSL Stylesheets-&docbook-xsl-version;</title>
|
---|
[59bc4e1] | 20 |
|
---|
[44b376e7] | 21 | <sect2>
|
---|
[93dda11b] | 22 | <title>Introduction to <application>DocBook <acronym>XSL</acronym>
|
---|
| 23 | Stylesheets</application></title>
|
---|
[44b376e7] | 24 |
|
---|
| 25 | <para>The <application>DocBook <acronym>XSL</acronym> Stylesheets</application>
|
---|
[93dda11b] | 26 | package contains <acronym>XSL</acronym> stylesheets. These are useful for
|
---|
| 27 | performing transformations on <acronym>XML</acronym> DocBook files.</para>
|
---|
[44b376e7] | 28 |
|
---|
| 29 | <sect3><title>Package information</title>
|
---|
| 30 | <itemizedlist spacing='compact'>
|
---|
| 31 | <listitem><para>Download (HTTP): <ulink
|
---|
| 32 | url="&docbook-xsl-download-http;"/></para></listitem>
|
---|
| 33 | <listitem><para>Download (FTP): <ulink
|
---|
| 34 | url="&docbook-xsl-download-ftp;"/></para></listitem>
|
---|
| 35 | <listitem><para>Download size: &docbook-xsl-size;</para></listitem>
|
---|
[3b1dc849] | 36 | <listitem><para>Estimated disk space required:
|
---|
[44b376e7] | 37 | &docbook-xsl-buildsize;</para></listitem>
|
---|
| 38 | <listitem><para>Estimated build time:
|
---|
| 39 | &docbook-xsl-time;</para></listitem></itemizedlist>
|
---|
| 40 | </sect3>
|
---|
| 41 |
|
---|
[93dda11b] | 42 | <sect3><title><application>DocBook <acronym>XSL</acronym>
|
---|
| 43 | Stylesheets</application> dependencies</title>
|
---|
[44b376e7] | 44 | <sect4><title>Required</title>
|
---|
[dc477899] | 45 | <para><xref linkend="libxslt"/></para>
|
---|
| 46 | </sect4>
|
---|
[44b376e7] | 47 | </sect3>
|
---|
| 48 |
|
---|
| 49 | </sect2>
|
---|
| 50 |
|
---|
| 51 | <sect2>
|
---|
[93dda11b] | 52 | <title>Installation of <application>DocBook <acronym>XSL</acronym>
|
---|
| 53 | Stylesheets</application></title>
|
---|
[44b376e7] | 54 |
|
---|
[93dda11b] | 55 | <para>Install <application>DocBook <acronym>XSL</acronym>
|
---|
| 56 | Stylesheets</application> by running the following commands:</para>
|
---|
[44b376e7] | 57 |
|
---|
| 58 | <screen><userinput><command>install -d /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
[93dda11b] | 59 | chown -R root:root . &&
|
---|
[5d34b74] | 60 | cp -af INSTALL VERSION common eclipse extensions fo html htmlhelp \
|
---|
| 61 | images javahelp lib manpages params profiling template xhtml \
|
---|
[44b376e7] | 62 | /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
| 63 | install -d /usr/share/doc/xml &&
|
---|
| 64 | cp -af doc/* /usr/share/doc/xml &&
|
---|
[a750d96f] | 65 | cd /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
| 66 | sh INSTALL &&
|
---|
[5d34b74] | 67 | if [ ! -f /etc/xml/catalog ]; then mkdir -p /etc/xml; xmlcatalog \
|
---|
| 68 | --noout --create /etc/xml/catalog; fi &&
|
---|
[44b376e7] | 69 | if [ ! -e /etc/xml/docbook ]; then xmlcatalog --noout --create \
|
---|
| 70 | /etc/xml/docbook; fi &&
|
---|
| 71 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
[dc477899] | 72 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
[44b376e7] | 73 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" /etc/xml/catalog &&
|
---|
| 74 | xmlcatalog --noout --add "rewriteURI" \
|
---|
[dc477899] | 75 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
[44b376e7] | 76 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" /etc/xml/catalog &&
|
---|
| 77 | xmlcatalog --noout --add "delegateSystem" \
|
---|
| 78 | "http://docbook.sourceforge.net/release/xsl/" \
|
---|
| 79 | "file:///etc/xml/docbook" /etc/xml/catalog &&
|
---|
| 80 | xmlcatalog --noout --add "delegateURI" \
|
---|
| 81 | "http://docbook.sourceforge.net/release/xsl/" \
|
---|
[d6edeb8] | 82 | "file:///etc/xml/docbook" /etc/xml/catalog</command></userinput></screen>
|
---|
[44b376e7] | 83 |
|
---|
| 84 | </sect2>
|
---|
| 85 |
|
---|
[d6edeb8] | 86 | <sect2>
|
---|
| 87 | <title>Command explanations</title>
|
---|
| 88 |
|
---|
| 89 | <para><command>sh INSTALL</command>: This command creates a local
|
---|
| 90 | catalog for the <acronym>XSL</acronym> files.</para>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 |
|
---|
[44b376e7] | 95 | <sect2>
|
---|
[93dda11b] | 96 | <title>Configuring <application>DocBook <acronym>XSL</acronym>
|
---|
| 97 | Stylesheets</application></title>
|
---|
[44b376e7] | 98 |
|
---|
[7302427] | 99 | <sect3 id="docbook-xsl-config"><title>Config files</title>
|
---|
[44b376e7] | 100 | <para><filename>/etc/xml/catalog</filename></para>
|
---|
[d6edeb8] | 101 | <indexterm zone="docbook-xsl docbook-xsl-config"><primary
|
---|
[0cd6d67] | 102 | sortas="e-etc-xml-catalog-docbook-xsl">/etc/xml/catalog</primary></indexterm>
|
---|
[44b376e7] | 103 | </sect3>
|
---|
| 104 |
|
---|
| 105 | <sect3><title>Configuration Information</title>
|
---|
| 106 |
|
---|
[d6edeb8] | 107 | <para>The system profile needs to be updated to utilize the new
|
---|
| 108 | installed catalog. This can be done with the following command:</para>
|
---|
| 109 |
|
---|
| 110 | <screen><userinput><command>cat > /etc/profile.d/xsl.sh << "EOF"</command>
|
---|
| 111 | # Set up Environment Variable for XSL Processing
|
---|
[5d34b74] | 112 | export XML_CATALOG_FILES="/usr/share/xml/docbook/\
|
---|
| 113 | xsl-stylesheets-&docbook-xsl-version;/catalog.xml /etc/xml/catalog"
|
---|
[d6edeb8] | 114 | <command>EOF</command></userinput></screen>
|
---|
| 115 |
|
---|
[44b376e7] | 116 | <para>The above installation script creates the files and updates the
|
---|
[a750d96f] | 117 | catalog. Some project stylesheets reference specific versions of
|
---|
| 118 | <acronym>XSL</acronym> stylesheets, like <acronym>BLFS</acronym>, which
|
---|
| 119 | needs the following additional commands. These commands can also serve
|
---|
| 120 | as an example for using a single <acronym>XSL</acronym> version to support
|
---|
| 121 | any hard coded versions, as needed.</para>
|
---|
| 122 | <screen><userinput><command>xmlcatalog --noout --add "rewriteSystem" \
|
---|
| 123 | "http://docbook.sourceforge.net/release/xsl/1.65.1" \
|
---|
[3b1dc849] | 124 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
| 125 | /etc/xml/catalog &&
|
---|
[a750d96f] | 126 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 127 | "http://docbook.sourceforge.net/release/xsl/1.65.1" \
|
---|
[3b1dc849] | 128 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
|
---|
| 129 | /etc/xml/catalog</command></userinput></screen>
|
---|
[a750d96f] | 130 | <para>Alternatively, other versions can be installed in their own
|
---|
| 131 | versioned directories and catalog entries made in the following
|
---|
| 132 | form:</para>
|
---|
| 133 | <screen><userinput><command>xmlcatalog --noout --add "rewriteSystem" \
|
---|
| 134 | "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
|
---|
[3b1dc849] | 135 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
|
---|
| 136 | /etc/xml/catalog &&
|
---|
[a750d96f] | 137 | xmlcatalog --noout --add "rewriteURI" \
|
---|
| 138 | "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
|
---|
[3b1dc849] | 139 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
|
---|
| 140 | /etc/xml/catalog</command></userinput></screen>
|
---|
[a568da2] | 141 | <!-- The following is very specific to LFS 6.0, the first sentence for
|
---|
| 142 | make and the remainder for 'make pdf', If it stays, it needs to be removed
|
---|
| 143 | after BLFS 6.0-->
|
---|
| 144 | <para>For <acronym>LFS</acronym> 6.0, version 1.65.1 of this package should be
|
---|
| 145 | installed. In addition, you need to make a symbolic link as described in the
|
---|
| 146 | <filename>INSTALL</filename> file of <acronym>LFS</acronym> 6.0.</para>
|
---|
| 147 | <screen><userinput><command>cd /usr/share/xml/docbook/ &&
|
---|
| 148 | ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current</command></userinput></screen>
|
---|
| 149 |
|
---|
[44b376e7] | 150 | </sect3>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
| 153 |
|
---|
| 154 | <sect2>
|
---|
| 155 | <title>Contents</title>
|
---|
[5cb3ea7] | 156 | <segmentedlist>
|
---|
| 157 | <segtitle>Installed Files</segtitle>
|
---|
[7302427] | 158 | <segtitle>Installed Directories</segtitle>
|
---|
[5cb3ea7] | 159 | <seglistitem><seg><acronym>XSL</acronym>
|
---|
| 160 | style sheets for <acronym>HTML</acronym> and <acronym>FO</acronym>.</seg>
|
---|
[7302427] | 161 | <seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
|
---|
| 162 | /usr/share/doc/xml</seg>
|
---|
| 163 | </seglistitem>
|
---|
| 164 | </segmentedlist>
|
---|
[44b376e7] | 165 |
|
---|
| 166 | </sect2>
|
---|
[59bc4e1] | 167 |
|
---|
| 168 | </sect1>
|
---|