1 | <?xml version='1.0' encoding='ISO-8859-1'?>
|
---|
2 |
|
---|
3 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
4 | xmlns="http://www.w3.org/1999/xhtml"
|
---|
5 | version="1.0">
|
---|
6 |
|
---|
7 | <!-- We use XHTML -->
|
---|
8 | <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/xhtml/docbook.xsl"/>
|
---|
9 |
|
---|
10 | <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
|
---|
11 | <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
|
---|
12 |
|
---|
13 | <!-- Including our others customized templates -->
|
---|
14 | <xsl:include href="xhtml/lfs-admon.xsl"/>
|
---|
15 | <xsl:include href="xhtml/lfs-index.xsl"/>
|
---|
16 | <xsl:include href="xhtml/lfs-mixed.xsl"/>
|
---|
17 | <xsl:include href="xhtml/lfs-sections.xsl"/>
|
---|
18 | <xsl:include href="xhtml/lfs-toc.xsl"/>
|
---|
19 | <xsl:include href="xhtml/lfs-xref.xsl"/>
|
---|
20 |
|
---|
21 | <!-- Dropping some unwanted style attributes -->
|
---|
22 | <xsl:param name="ulink.target" select="''"></xsl:param>
|
---|
23 | <xsl:param name="css.decoration" select="0"></xsl:param>
|
---|
24 |
|
---|
25 | <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)-->
|
---|
26 | <xsl:template name="sect2.titlepage">
|
---|
27 | <xsl:choose>
|
---|
28 | <xsl:when test="string-length(title) = 0"/>
|
---|
29 | <xsl:otherwise>
|
---|
30 | <div class="titlepage">
|
---|
31 | <xsl:if test="@id">
|
---|
32 | <a id="{@id}" name="{@id}"/>
|
---|
33 | </xsl:if>
|
---|
34 | <h3 class="{name(.)}">
|
---|
35 | <xsl:apply-templates select="." mode="label.markup"/>
|
---|
36 | <xsl:text>. </xsl:text>
|
---|
37 | <xsl:value-of select="title"/>
|
---|
38 | </h3>
|
---|
39 | </div>
|
---|
40 | </xsl:otherwise>
|
---|
41 | </xsl:choose>
|
---|
42 | </xsl:template>
|
---|
43 |
|
---|
44 | <!-- Added the role param for proper punctuation in xref calls
|
---|
45 | (from lfs-titles.xsl). -->
|
---|
46 | <xsl:template match="*" mode="insert.title.markup">
|
---|
47 | <xsl:param name="purpose"/>
|
---|
48 | <xsl:param name="xrefstyle"/>
|
---|
49 | <xsl:param name="title"/>
|
---|
50 | <xsl:param name="role"/>
|
---|
51 | <xsl:choose>
|
---|
52 | <xsl:when test="$purpose = 'xref' and titleabbrev">
|
---|
53 | <xsl:apply-templates select="." mode="titleabbrev.markup"/>
|
---|
54 | </xsl:when>
|
---|
55 | <xsl:otherwise>
|
---|
56 | <xsl:copy-of select="$title"/>
|
---|
57 | <xsl:value-of select="$role"/>
|
---|
58 | </xsl:otherwise>
|
---|
59 | </xsl:choose>
|
---|
60 | </xsl:template>
|
---|
61 |
|
---|
62 | <!-- The CSS Stylesheet -->
|
---|
63 | <xsl:template name='user.head.content'>
|
---|
64 | <style type="text/css">
|
---|
65 | <xsl:text>
|
---|
66 | /* Global settings */
|
---|
67 | body {
|
---|
68 | font-family: sans-serif;
|
---|
69 | text-align: left;
|
---|
70 | background: #fff;
|
---|
71 | color: #333;
|
---|
72 | margin: 1em;
|
---|
73 | padding: 0;
|
---|
74 | font-size: 1em;
|
---|
75 | line-height: 1.2em
|
---|
76 | }
|
---|
77 |
|
---|
78 | a:link { color: #22b; }
|
---|
79 | a:visited { color: #7e4988; }
|
---|
80 | a:hover, a:focus { color: #d30e08; }
|
---|
81 | a:active { color: #6b77b1;}
|
---|
82 |
|
---|
83 | /* Headers */
|
---|
84 | h1, h2, b, strong {
|
---|
85 | color: #000;
|
---|
86 | font-weight: bold;
|
---|
87 | }
|
---|
88 |
|
---|
89 | h3, h4, h5, h6 {
|
---|
90 | color: #222;
|
---|
91 | }
|
---|
92 |
|
---|
93 | h1 { font-size: 173%; text-align: center; }
|
---|
94 | h2 { font-size: 144%; }
|
---|
95 | h2.subtitle { text-align: center; }
|
---|
96 | h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
|
---|
97 | h4 { font-size: 110%;}
|
---|
98 | h5, h6 { font-size: 110%; font-style: italic; }
|
---|
99 |
|
---|
100 | /* TOC and Index*/
|
---|
101 |
|
---|
102 | div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
|
---|
103 | list-style: none;
|
---|
104 | }
|
---|
105 |
|
---|
106 | div.toc, div.dedication {
|
---|
107 | padding-left: 1em;
|
---|
108 | }
|
---|
109 |
|
---|
110 | li.preface {
|
---|
111 | margin-left: 1em;
|
---|
112 | }
|
---|
113 |
|
---|
114 | div.toc ul li h3, div.toc ul li h4 {
|
---|
115 | margin: .4em;
|
---|
116 | }
|
---|
117 |
|
---|
118 | .item {
|
---|
119 | width: 15em;
|
---|
120 | float: left;
|
---|
121 | }
|
---|
122 |
|
---|
123 | .secitem {
|
---|
124 | font-weight: normal;
|
---|
125 | width: 14em;
|
---|
126 | float: left;
|
---|
127 | }
|
---|
128 |
|
---|
129 | /* Admonitions */
|
---|
130 | div.note, div.tip {
|
---|
131 | background-color: #fffff6;
|
---|
132 | border: 2px solid #dbddec;
|
---|
133 | width: 90%;
|
---|
134 | margin: .5em auto;
|
---|
135 | }
|
---|
136 |
|
---|
137 | div.important, div.warning, div.caution {
|
---|
138 | background-color: #fffff6;
|
---|
139 | border: medium solid #400;
|
---|
140 | width: 90%;
|
---|
141 | margin: 1.5em auto;
|
---|
142 | color: #600;
|
---|
143 | font-size: larger;
|
---|
144 | }
|
---|
145 |
|
---|
146 | div.important h3, div.warning h3, div.caution h3 {
|
---|
147 | color: #900;
|
---|
148 | }
|
---|
149 |
|
---|
150 | div.admonhead img {
|
---|
151 | display: none;
|
---|
152 | }
|
---|
153 |
|
---|
154 | h3.admontitle {
|
---|
155 | padding-left: 2.5em;
|
---|
156 | padding-top: 1em;
|
---|
157 | }
|
---|
158 |
|
---|
159 | div.admonbody {
|
---|
160 | margin: .5em;
|
---|
161 | }
|
---|
162 |
|
---|
163 | div.important em, div.warning em, div.caution em {
|
---|
164 | color: #000;
|
---|
165 | font-weight: bold;
|
---|
166 | }
|
---|
167 |
|
---|
168 | div.important tt, div.warning tt, div.caution tt {
|
---|
169 | font-weight: bold;
|
---|
170 | }
|
---|
171 |
|
---|
172 | /* variablelist and segmentedlist */
|
---|
173 | dl {
|
---|
174 | margin: 0;
|
---|
175 | padding: 0;
|
---|
176 | }
|
---|
177 |
|
---|
178 | dt {
|
---|
179 | display: list-item;
|
---|
180 | font-weight: bold;
|
---|
181 | margin: .33em 0 0 1em;
|
---|
182 | padding: 0;
|
---|
183 | }
|
---|
184 |
|
---|
185 | div.content dt {
|
---|
186 | list-style: none;
|
---|
187 | }
|
---|
188 |
|
---|
189 | dd {
|
---|
190 | margin: 0 0 1em 3em;
|
---|
191 | padding: 0;
|
---|
192 | }
|
---|
193 |
|
---|
194 | div.variablelist dd {
|
---|
195 | margin-bottom: 1em;
|
---|
196 | }
|
---|
197 |
|
---|
198 | div.variablelist dd p {
|
---|
199 | margin-top: 0px;
|
---|
200 | }
|
---|
201 |
|
---|
202 | dl.materials dd {
|
---|
203 | margin-left: 0px;
|
---|
204 | }
|
---|
205 |
|
---|
206 | div.segmentedlist {
|
---|
207 | margin-top: 1em;
|
---|
208 | }
|
---|
209 |
|
---|
210 | div.segmentedlist p {
|
---|
211 | margin: 0px auto;
|
---|
212 | }
|
---|
213 |
|
---|
214 | /* itemizedlist */
|
---|
215 |
|
---|
216 | div.itemizedlist {
|
---|
217 | margin-left: 1em;
|
---|
218 | }
|
---|
219 |
|
---|
220 | /* Indented blocks */
|
---|
221 | p, ul, dl, code, blockquote {
|
---|
222 | padding-left: 1em;
|
---|
223 | }
|
---|
224 |
|
---|
225 | /* Monospaced elements */
|
---|
226 | tt, code, kbd, pre, .command {
|
---|
227 | font-family: monospace;
|
---|
228 | }
|
---|
229 |
|
---|
230 | pre.userinput {
|
---|
231 | color: #101310;
|
---|
232 | background-color: #e5e5e5;
|
---|
233 | border: 1px solid #050505;
|
---|
234 | padding: .5em 1em;
|
---|
235 | margin: 0 2em;
|
---|
236 | font-weight: bold;
|
---|
237 | }
|
---|
238 |
|
---|
239 | pre.screen {
|
---|
240 | background-color: #e9e9e9;
|
---|
241 | border: 1px solid #050505;
|
---|
242 | padding: .5em 1em;
|
---|
243 | margin: 0 2em;
|
---|
244 | }
|
---|
245 |
|
---|
246 | /* Sections */
|
---|
247 | div.package {
|
---|
248 | background: #f5f6f7;
|
---|
249 | border-bottom: 0.2em solid #dbddec;
|
---|
250 | padding: 0.5em 0.5em 0.3em 0.5em;
|
---|
251 | margin: 0px auto;
|
---|
252 | }
|
---|
253 |
|
---|
254 | div.installation {
|
---|
255 | padding: 0 0.5em 0.3em 0.5em;
|
---|
256 | margin: 0.5em 0 0.5em 0;
|
---|
257 | }
|
---|
258 |
|
---|
259 | div.configuration {
|
---|
260 | background: #fefefe;
|
---|
261 | border-top: 0.2em solid #dbddec;
|
---|
262 | padding: 0.5em;
|
---|
263 | margin: 0.5em 0 .5em 0;
|
---|
264 | }
|
---|
265 |
|
---|
266 | div.content {
|
---|
267 | background: #f5f6f7;
|
---|
268 | border-top: 0.2em solid #dbddec;
|
---|
269 | border-bottom: 0.2em solid #dbddec;
|
---|
270 | padding: 0.5em 0.5em 1em 0.5em;
|
---|
271 | margin: 0.5em 0 .5em 0;
|
---|
272 | }
|
---|
273 |
|
---|
274 | div.installation h3.title, div.content h3.title {
|
---|
275 | padding-top: 0.3em;
|
---|
276 | margin: 0;
|
---|
277 | }
|
---|
278 |
|
---|
279 | div.book, div.preface, div.part, div.chapter, div.sect1, div.index {
|
---|
280 | padding-bottom: 0.5em;
|
---|
281 | }
|
---|
282 |
|
---|
283 | div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.index h1 {
|
---|
284 | background: #f5f6f7;
|
---|
285 | border-bottom: .2em solid #dbddec;
|
---|
286 | border-top: .2em solid #dbddec;
|
---|
287 | margin-top 1em;
|
---|
288 | padding: .5em;
|
---|
289 | text-align: center;
|
---|
290 | }
|
---|
291 |
|
---|
292 | div.book h1 {
|
---|
293 | background: #f5f6f7;
|
---|
294 | margin: 0px auto;
|
---|
295 | padding: 0.5em;
|
---|
296 | }
|
---|
297 |
|
---|
298 | div.book h2.subtitle {
|
---|
299 | background: #dbddec;
|
---|
300 | margin: 0px auto;
|
---|
301 | padding: 0.2em;
|
---|
302 | }
|
---|
303 | div.authorgroup, div p.copyright, div.abstract {
|
---|
304 | background: #f5f6f7;
|
---|
305 | margin: 0px auto;
|
---|
306 | padding: 1em 0.5em;
|
---|
307 | }
|
---|
308 |
|
---|
309 | hr {
|
---|
310 | background: #dbddec;
|
---|
311 | height: .3em;
|
---|
312 | border: 0px;
|
---|
313 | margin: 0px auto;
|
---|
314 | padding: 0;
|
---|
315 | }
|
---|
316 | </xsl:text>
|
---|
317 | </style>
|
---|
318 | </xsl:template>
|
---|
319 |
|
---|
320 | </xsl:stylesheet>
|
---|