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;
|
---|
5 |
|
---|
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">
|
---|
9 | <!ENTITY docbook-xsl-buildsize "25 MB">
|
---|
10 | <!ENTITY docbook-xsl-time "0.01 SBU">
|
---|
11 | ]>
|
---|
12 |
|
---|
13 | <sect1 id="docbook-xsl" xreflabel="DocBook XSL Stylesheets-&docbook-xsl-version;">
|
---|
14 | <sect1info>
|
---|
15 | <othername>$LastChangedBy$</othername>
|
---|
16 | <date>$Date$</date>
|
---|
17 | </sect1info>
|
---|
18 | <?dbhtml filename="docbook-xsl.html"?>
|
---|
19 | <title>DocBook XSL Stylesheets-&docbook-xsl-version;</title>
|
---|
20 |
|
---|
21 | <sect2>
|
---|
22 | <title>Introduction to <application>DocBook <acronym>XSL</acronym>
|
---|
23 | Stylesheets</application></title>
|
---|
24 |
|
---|
25 | <para>The <application>DocBook <acronym>XSL</acronym> Stylesheets</application>
|
---|
26 | package contains <acronym>XSL</acronym> stylesheets. These are useful for
|
---|
27 | performing transformations on <acronym>XML</acronym> DocBook files.</para>
|
---|
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>
|
---|
36 | <listitem><para>Estimated Disk space required:
|
---|
37 | &docbook-xsl-buildsize;</para></listitem>
|
---|
38 | <listitem><para>Estimated build time:
|
---|
39 | &docbook-xsl-time;</para></listitem></itemizedlist>
|
---|
40 | </sect3>
|
---|
41 |
|
---|
42 | <sect3><title><application>DocBook <acronym>XSL</acronym>
|
---|
43 | Stylesheets</application> dependencies</title>
|
---|
44 | <sect4><title>Required</title>
|
---|
45 | <para><xref linkend="libxslt"/></para>
|
---|
46 | </sect4>
|
---|
47 | </sect3>
|
---|
48 |
|
---|
49 | </sect2>
|
---|
50 |
|
---|
51 | <sect2>
|
---|
52 | <title>Installation of <application>DocBook <acronym>XSL</acronym>
|
---|
53 | Stylesheets</application></title>
|
---|
54 |
|
---|
55 | <para>Install <application>DocBook <acronym>XSL</acronym>
|
---|
56 | Stylesheets</application> by running the following commands:</para>
|
---|
57 |
|
---|
58 | <screen><userinput><command>install -d /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
59 | chown -R root:root . &&
|
---|
60 | cp -af INSTALL VERSION common eclipse extensions fo html htmlhelp images \
|
---|
61 | javahelp lib manpages params profiling template xhtml \
|
---|
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 &&
|
---|
65 | cd /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &&
|
---|
66 | sh INSTALL &&
|
---|
67 | if [ ! -f /etc/xml/catalog ]; then mkdir -p /etc/xml; xmlcatalog --noout \
|
---|
68 | --create /etc/xml/catalog; fi &&
|
---|
69 | if [ ! -e /etc/xml/docbook ]; then xmlcatalog --noout --create \
|
---|
70 | /etc/xml/docbook; fi &&
|
---|
71 | xmlcatalog --noout --add "rewriteSystem" \
|
---|
72 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
73 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" /etc/xml/catalog &&
|
---|
74 | xmlcatalog --noout --add "rewriteURI" \
|
---|
75 | "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
|
---|
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/" \
|
---|
82 | "file:///etc/xml/docbook" /etc/xml/catalog &&
|
---|
83 | echo \
|
---|
84 | 'export XML_CATALOG_FILES="/usr/share/xml/docbook/xsl-stylesheets&docbook-xsl-version;/catalog.xml /etc/xml/catalog"' \
|
---|
85 | >> /etc/profile</command></userinput></screen>
|
---|
86 |
|
---|
87 | </sect2>
|
---|
88 |
|
---|
89 | <sect2>
|
---|
90 | <title>Configuring <application>DocBook <acronym>XSL</acronym>
|
---|
91 | Stylesheets</application></title>
|
---|
92 |
|
---|
93 | <sect3><title>Config files</title>
|
---|
94 | <para><filename>/etc/xml/catalog</filename></para>
|
---|
95 | </sect3>
|
---|
96 |
|
---|
97 | <sect3><title>Configuration Information</title>
|
---|
98 |
|
---|
99 | <para>The above installation script creates the files and updates the
|
---|
100 | catalog. Some project stylesheets reference specific versions of
|
---|
101 | <acronym>XSL</acronym> stylesheets, like <acronym>BLFS</acronym>, which
|
---|
102 | needs the following additional commands. These commands can also serve
|
---|
103 | as an example for using a single <acronym>XSL</acronym> version to support
|
---|
104 | any hard coded versions, as needed.</para>
|
---|
105 | <screen><userinput><command>xmlcatalog --noout --add "rewriteSystem" \
|
---|
106 | "http://docbook.sourceforge.net/release/xsl/1.65.1" \
|
---|
107 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;"
|
---|
108 | /etc/xml/catalog &&
|
---|
109 | xmlcatalog --noout --add "rewriteURI" \
|
---|
110 | "http://docbook.sourceforge.net/release/xsl/1.65.1" \
|
---|
111 | "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;"
|
---|
112 | /etc/xml/catalog</command></userinput></screen>
|
---|
113 | <para>Alternatively, other versions can be installed in their own
|
---|
114 | versioned directories and catalog entries made in the following
|
---|
115 | form:</para>
|
---|
116 | <screen><userinput><command>xmlcatalog --noout --add "rewriteSystem" \
|
---|
117 | "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
|
---|
118 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>"
|
---|
119 | /etc/xml/catalog &&
|
---|
120 | xmlcatalog --noout --add "rewriteURI" \
|
---|
121 | "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
|
---|
122 | "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>"
|
---|
123 | /etc/xml/catalog</command></userinput></screen>
|
---|
124 | <!-- The following is very specific to LFS 6.0, the first sentence for
|
---|
125 | make and the remainder for 'make pdf', If it stays, it needs to be removed
|
---|
126 | after BLFS 6.0-->
|
---|
127 | <para>For <acronym>LFS</acronym> 6.0, version 1.65.1 of this package should be
|
---|
128 | installed. In addition, you need to make a symbolic link as described in the
|
---|
129 | <filename>INSTALL</filename> file of <acronym>LFS</acronym> 6.0.</para>
|
---|
130 | <screen><userinput><command>cd /usr/share/xml/docbook/ &&
|
---|
131 | ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current</command></userinput></screen>
|
---|
132 |
|
---|
133 |
|
---|
134 | </sect3>
|
---|
135 |
|
---|
136 | </sect2>
|
---|
137 |
|
---|
138 | <sect2>
|
---|
139 | <title>Contents</title>
|
---|
140 | <segmentedlist>
|
---|
141 | <segtitle>Installed Files</segtitle>
|
---|
142 | <seglistitem><seg><acronym>XSL</acronym>
|
---|
143 | style sheets for <acronym>HTML</acronym> and <acronym>FO</acronym>.</seg>
|
---|
144 | </seglistitem></segmentedlist>
|
---|
145 |
|
---|
146 | </sect2>
|
---|
147 |
|
---|
148 | </sect1>
|
---|
149 |
|
---|