source: pst/xml/docbook-xsl.xml@ bdd29e4

6.0
Last change on this file since bdd29e4 was bdd29e4, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Fix XSL Stylesheet compatability

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/6.0/BOOK@3648 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.9 KB
Line 
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-md5sum "deb1864e3e190465dcc26145d2667a84">
9 <!ENTITY docbook-xsl-size "975 KB">
10 <!ENTITY docbook-xsl-buildsize "25 MB">
11 <!ENTITY docbook-xsl-time "0.01 SBU">
12]>
13
14<sect1 id="docbook-xsl"
15xreflabel="DocBook XSL Stylesheets-&docbook-xsl-version;">
16
17<sect1info>
18 <othername>$LastChangedBy$</othername>
19 <date>$Date$</date>
20</sect1info>
21
22<?dbhtml filename="docbook-xsl.html"?>
23<title>DocBook XSL Stylesheets-&docbook-xsl-version;</title>
24
25<sect2>
26<title>Introduction to <application>DocBook <acronym>XSL</acronym>
27Stylesheets</application></title>
28
29<para>The <application>DocBook <acronym>XSL</acronym> Stylesheets</application>
30package contains <acronym>XSL</acronym> stylesheets. These are useful for
31performing transformations on <acronym>XML</acronym> DocBook files.</para>
32
33<sect3><title>Package information</title>
34<itemizedlist spacing='compact'>
35 <listitem><para>Download (HTTP): <ulink url="&docbook-xsl-download-http;"/></para></listitem>
36 <listitem><para>Download (FTP): <ulink url="&docbook-xsl-download-ftp;"/></para></listitem>
37 <listitem><para>Download MD5 sum: &docbook-xsl-md5sum;</para></listitem>
38 <listitem><para>Download size: &docbook-xsl-size;</para></listitem>
39 <listitem><para>Estimated disk space required: &docbook-xsl-buildsize;</para></listitem>
40 <listitem><para>Estimated build time: &docbook-xsl-time;</para></listitem>
41</itemizedlist>
42</sect3>
43
44<sect3>
45<title><application>DocBook <acronym>XSL</acronym> Stylesheets</application> dependencies</title>
46
47<sect4>
48<title>Required</title>
49 <para><xref linkend="libxslt"/></para>
50</sect4>
51</sect3>
52
53</sect2>
54
55<sect2>
56<title>Installation of <application>DocBook <acronym>XSL</acronym> Stylesheets</application></title>
57
58<para>Install <application>DocBook <acronym>XSL</acronym>
59Stylesheets</application> by running the following commands:</para>
60
61<screen><userinput><command>install -d /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
62chown -R root:root . &amp;&amp;
63cp -af INSTALL VERSION common eclipse extensions fo html htmlhelp \
64 images javahelp lib manpages params profiling template xhtml \
65 /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
66install -d /usr/share/doc/xml &amp;&amp;
67cp -af doc/* /usr/share/doc/xml &amp;&amp;
68cd /usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; &amp;&amp;
69sh INSTALL &amp;&amp;
70if [ ! -f /etc/xml/catalog ]; then mkdir -p /etc/xml; xmlcatalog \
71 --noout --create /etc/xml/catalog; fi &amp;&amp;
72if [ ! -e /etc/xml/docbook ]; then xmlcatalog --noout --create \
73 /etc/xml/docbook; fi &amp;&amp;
74xmlcatalog --noout --add "rewriteSystem" \
75 "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
76 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" /etc/xml/catalog &amp;&amp;
77xmlcatalog --noout --add "rewriteURI" \
78 "http://docbook.sourceforge.net/release/xsl/&docbook-xsl-version;" \
79 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" /etc/xml/catalog &amp;&amp;
80xmlcatalog --noout --add "delegateSystem" \
81 "http://docbook.sourceforge.net/release/xsl/" \
82 "file:///etc/xml/docbook" /etc/xml/catalog &amp;&amp;
83xmlcatalog --noout --add "delegateURI" \
84 "http://docbook.sourceforge.net/release/xsl/" \
85 "file:///etc/xml/docbook" /etc/xml/catalog</command></userinput></screen>
86
87</sect2>
88
89<sect2>
90<title>Command explanations</title>
91
92<para><command>sh INSTALL</command>: This command creates a local
93catalog for the <acronym>XSL</acronym> files.</para>
94
95</sect2>
96
97<sect2>
98<title>Configuring <application>DocBook <acronym>XSL</acronym> Stylesheets</application></title>
99
100<sect3 id="docbook-xsl-config">
101<title>Config files</title>
102
103<para><filename>/etc/xml/catalog</filename></para>
104
105<indexterm zone="docbook-xsl docbook-xsl-config">
106 <primary sortas="e-etc-xml-catalog">/etc/xml/catalog</primary>
107</indexterm>
108
109</sect3>
110
111<sect3>
112<title>Configuration Information</title>
113
114<para>The system profile needs to be updated to utilize the new
115installed catalog. This can be done with the following command:</para>
116
117<screen><userinput><command>cat &gt; /etc/profile.d/xsl.sh &lt;&lt; "EOF"</command>
118# Set up Environment Variable for XSL Processing
119export XML_CATALOG_FILES="/usr/share/xml/docbook/\
120xsl-stylesheets-&docbook-xsl-version;/catalog.xml /etc/xml/catalog"
121<command>EOF</command></userinput></screen>
122
123<para>The above installation script creates the files and updates the
124catalog. Some project stylesheets reference specific versions of
125<acronym>XSL</acronym> stylesheets, like <acronym>BLFS</acronym>, which
126needs the following additional commands. These commands can also serve
127as an example for using a single <acronym>XSL</acronym> version to support
128any hard coded versions, as needed.</para>
129
130<screen><userinput><command>xmlcatalog --noout --add "rewriteSystem" \
131 "http://docbook.sourceforge.net/release/xsl/1.65.1" \
132 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
133 /etc/xml/catalog &amp;&amp;
134xmlcatalog --noout --add "rewriteURI" \
135 "http://docbook.sourceforge.net/release/xsl/1.65.1" \
136 "/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version;" \
137 /etc/xml/catalog</command></userinput></screen>
138
139<para>Alternatively, other versions can be installed in their own
140versioned directories and catalog entries made in the following
141form:</para>
142
143<screen><userinput><command>xmlcatalog --noout --add "rewriteSystem" \
144 "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
145 "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
146 /etc/xml/catalog &amp;&amp;
147xmlcatalog --noout --add "rewriteURI" \
148 "http://docbook.sourceforge.net/release/xsl/<replaceable>[version]</replaceable>" \
149 "/usr/share/xml/docbook/xsl-stylesheets-<replaceable>[version]</replaceable>" \
150 /etc/xml/catalog</command></userinput></screen>
151
152<note><para>To use XSL Stylesheets for GTK-Doc, and possibly other packages, a
153"current" version is needed instead of a specific version number. In this
154case, use the following instructions:</para>
155
156<literallayout><userinput><command>xmlcatalog --noout --add "rewriteSystem" \
157 "http://docbook.sourceforge.net/release/xsl/current" \
158 "/usr/share/xml/docbook/xsl-stylesheets-1.67.2" \
159 /etc/xml/catalog &amp;&amp;
160
161xmlcatalog --noout --add "rewriteURI" \
162 "http://docbook.sourceforge.net/release/xsl/current" \
163 "/usr/share/xml/docbook/xsl-stylesheets-1.67.2" \
164 /etc/xml/catalog</command></userinput></literallayout>
165
166<para>This is a workaround that may or may not work for other packages that may
167need a "current" catalog version.</para>
168</note>
169
170<!-- The following is very specific to LFS 6.0, the first sentence for
171make and the remainder for 'make pdf', If it stays, it needs to be removed
172after BLFS 6.0-->
173
174<para>For <acronym>LFS</acronym> 6.0, version 1.65.1 of this package should be
175installed. In addition, you need to make a symbolic link as described in the
176<filename>INSTALL</filename> file of <acronym>LFS</acronym> 6.0.</para>
177<screen><userinput><command>cd /usr/share/xml/docbook/ &amp;&amp;
178ln -s xsl-stylesheets-1.65.1 xsl-stylesheets-current</command></userinput></screen>
179
180</sect3>
181</sect2>
182
183<sect2>
184<title>Contents</title>
185
186<segmentedlist>
187<segtitle>Installed Files</segtitle>
188<segtitle>Installed Directories</segtitle>
189<seglistitem><seg><acronym>XSL</acronym>
190style sheets for <acronym>HTML</acronym> and <acronym>FO</acronym></seg>
191<seg>/usr/share/xml/docbook/xsl-stylesheets-&docbook-xsl-version; and
192/usr/share/doc/xml</seg>
193</seglistitem>
194</segmentedlist>
195
196</sect2>
197</sect1>
Note: See TracBrowser for help on using the repository browser.