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 | <!-- Stylesheet for non-chunked XHTML output
|
---|
8 | Replaces {docbook-xsl}/xhtml/profile-docbook.xsl -->
|
---|
9 |
|
---|
10 | <!-- Upstream XHTML templates -->
|
---|
11 | <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"/>
|
---|
12 |
|
---|
13 | <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
|
---|
14 | <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
|
---|
15 |
|
---|
16 | <!-- Including our others customized templates -->
|
---|
17 | <xsl:include href="common.xsl"/>
|
---|
18 | <xsl:include href="xhtml/lfs-index.xsl"/>
|
---|
19 | <xsl:include href="xhtml/lfs-mixed.xsl"/>
|
---|
20 | <xsl:include href="xhtml/lfs-sections.xsl"/>
|
---|
21 | <xsl:include href="xhtml/lfs-toc.xsl"/>
|
---|
22 | <xsl:include href="xhtml/lfs-xref.xsl"/>
|
---|
23 |
|
---|
24 | <!-- Control generation of ToCs and LoTs -->
|
---|
25 | <xsl:param name="generate.toc">
|
---|
26 | book toc,title
|
---|
27 | preface nop
|
---|
28 | part nop
|
---|
29 | chapter nop
|
---|
30 | appendix nop
|
---|
31 | sect1 nop
|
---|
32 | sect2 nop
|
---|
33 | sect3 nop
|
---|
34 | sect4 nop
|
---|
35 | sect5 nop
|
---|
36 | section nop
|
---|
37 | </xsl:param>
|
---|
38 |
|
---|
39 | <!-- How deep should recursive sections appear in the TOC? -->
|
---|
40 | <xsl:param name="toc.section.depth">1</xsl:param>
|
---|
41 |
|
---|
42 | <!-- How maximaly deep should be each TOC? -->
|
---|
43 | <xsl:param name="toc.max.depth">3</xsl:param>
|
---|
44 |
|
---|
45 | <!-- Dropping some unwanted style attributes -->
|
---|
46 | <xsl:param name="ulink.target" select="''"></xsl:param>
|
---|
47 | <xsl:param name="css.decoration" select="0"></xsl:param>
|
---|
48 |
|
---|
49 | <!-- Don't use graphics in admonitions -->
|
---|
50 | <xsl:param name="admon.graphics" select="0"/>
|
---|
51 |
|
---|
52 | <!-- Changing the admonitions output tagging:
|
---|
53 | Removed $admon.style support
|
---|
54 | Hardcoded $admon.textlabel feature -->
|
---|
55 | <!-- The original template is in {docbook-xsl}/xhtml/admon.xsl -->
|
---|
56 | <xsl:template name="nongraphical.admonition">
|
---|
57 | <div class="admon {name(.)}">
|
---|
58 | <h3>
|
---|
59 | <xsl:apply-templates select="." mode="object.title.markup"/>
|
---|
60 | </h3>
|
---|
61 | <xsl:apply-templates/>
|
---|
62 | </div>
|
---|
63 | </xsl:template>
|
---|
64 |
|
---|
65 | <!-- sect2.titlepage:
|
---|
66 | Removed a lot of unneeded code.
|
---|
67 | Skip empty titles.
|
---|
68 | No label in preface (actually, skip the hardcoded dot). -->
|
---|
69 | <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
|
---|
70 | <xsl:template name="sect2.titlepage">
|
---|
71 | <xsl:choose>
|
---|
72 | <xsl:when test="string-length(title) = 0"/>
|
---|
73 | <xsl:otherwise>
|
---|
74 | <h3 class="{name(.)}">
|
---|
75 | <xsl:if test="@id">
|
---|
76 | <a id="{@id}" name="{@id}"/>
|
---|
77 | </xsl:if>
|
---|
78 | <xsl:if test="not(ancestor::preface) and $section.autolabel != 0">
|
---|
79 | <xsl:apply-templates select="." mode="label.markup"/>
|
---|
80 | <xsl:text>. </xsl:text>
|
---|
81 | </xsl:if>
|
---|
82 | <xsl:value-of select="title"/>
|
---|
83 | </h3>
|
---|
84 | </xsl:otherwise>
|
---|
85 | </xsl:choose>
|
---|
86 | </xsl:template>
|
---|
87 |
|
---|
88 | <!-- The CSS Stylesheet:
|
---|
89 | Note: there is some diferences with lfs.css code releated
|
---|
90 | to h* values, admonitions and no navigational code. -->
|
---|
91 | <!-- The original template is in {docbook-xsl}/xhtml/docbook.xsl -->
|
---|
92 | <xsl:template name='user.head.content'>
|
---|
93 | <style type="text/css">
|
---|
94 | <xsl:text>
|
---|
95 | /* Global settings */
|
---|
96 | body {
|
---|
97 | font-family: verdana, tahoma, helvetica, arial, sans-serif;
|
---|
98 | text-align: left;
|
---|
99 | background: #fff;
|
---|
100 | color: #222;
|
---|
101 | margin: 1em;
|
---|
102 | padding: 0;
|
---|
103 | font-size: 1em;
|
---|
104 | line-height: 1.2em
|
---|
105 | }
|
---|
106 |
|
---|
107 |
|
---|
108 | /* Links */
|
---|
109 | a:link { color: #22b; }
|
---|
110 | a.ulink:link { font-weight: bold; color: #55f; }
|
---|
111 | a:visited { color: #7e4988 ! important; }
|
---|
112 | a:hover, a:focus { color: #d30e08 ! important; }
|
---|
113 | a:active { color: #6b77b1 ! important;}
|
---|
114 |
|
---|
115 |
|
---|
116 | /* Book titlepage */
|
---|
117 | .book {
|
---|
118 | margin: 0px auto;
|
---|
119 | padding: 0 1em;
|
---|
120 | }
|
---|
121 |
|
---|
122 | .book h1, .book .authorgroup, .book .copyright, .book .legalnotice .revhistory {
|
---|
123 | background: #f5f6f7;
|
---|
124 | margin: 0px auto;
|
---|
125 | padding: .1em 1em;
|
---|
126 | }
|
---|
127 |
|
---|
128 | .book hr {
|
---|
129 | background: #dbddec;
|
---|
130 | height: .3em;
|
---|
131 | border: 0px;
|
---|
132 | margin: 0;
|
---|
133 | padding: 0;
|
---|
134 | }
|
---|
135 |
|
---|
136 | div.dedication {
|
---|
137 | padding-left: 1em;
|
---|
138 | }
|
---|
139 |
|
---|
140 |
|
---|
141 | /* Sections */
|
---|
142 | div.sect1, div.appendix {
|
---|
143 | padding-left: .3em;
|
---|
144 | }
|
---|
145 |
|
---|
146 | .package, .kernel, .installation, .commands, .testing, .configuration, .content {
|
---|
147 | padding: 0 .5em .2em 0;
|
---|
148 | margin: 0;
|
---|
149 | }
|
---|
150 |
|
---|
151 | .lfs .package {
|
---|
152 | background: #f5f6f7;
|
---|
153 | border-bottom: 0.2em solid #dbddec;
|
---|
154 | padding-top: .1em;
|
---|
155 | margin-top: 0;
|
---|
156 | }
|
---|
157 |
|
---|
158 | .lfs .configuration {
|
---|
159 | background: #fefefe;
|
---|
160 | border-top: 0.2em solid #dbddec;
|
---|
161 | }
|
---|
162 |
|
---|
163 | .lfs .content {
|
---|
164 | background: #f5f6f7;
|
---|
165 | border-top: 0.2em solid #dbddec;
|
---|
166 | border-bottom: 0.2em solid #dbddec;
|
---|
167 | padding-bottom: .1em;
|
---|
168 | margin-bottom: 0;
|
---|
169 | }
|
---|
170 |
|
---|
171 |
|
---|
172 | /* Headers */
|
---|
173 | h1, h2, h3, h4, h5, h6, b, .strong {
|
---|
174 | color: #000;
|
---|
175 | font-weight: bold;
|
---|
176 | line-height: 1em;
|
---|
177 | }
|
---|
178 |
|
---|
179 | h1 {
|
---|
180 | font-size: 173%;
|
---|
181 | text-align: center;
|
---|
182 | }
|
---|
183 |
|
---|
184 | .book h1 {
|
---|
185 | margin: 0;
|
---|
186 | padding: 0.4em;
|
---|
187 | }
|
---|
188 |
|
---|
189 | h1.title sup {
|
---|
190 | font-size: small;
|
---|
191 | }
|
---|
192 |
|
---|
193 | h2 {
|
---|
194 | font-size: 144%;
|
---|
195 | }
|
---|
196 |
|
---|
197 | .preface h2, .part h1, .chapter h2, .appendix h2, .index h1, .sect1 h2 {
|
---|
198 | background: #f5f6f7;
|
---|
199 | border-top: .2em solid #dbddec;
|
---|
200 | border-bottom: .2em solid #dbddec;
|
---|
201 | margin-bottom: 1em;
|
---|
202 | margin-top: 1em;
|
---|
203 | padding: .4em;
|
---|
204 | text-align: center;
|
---|
205 | }
|
---|
206 |
|
---|
207 | .sect1 h2, .appendix h2 {
|
---|
208 | margin-left: -.2em;
|
---|
209 | }
|
---|
210 |
|
---|
211 | .wrap h2 {
|
---|
212 | background: #f5f6f7;
|
---|
213 | border-bottom: 0;
|
---|
214 | margin-top: 1em;
|
---|
215 | margin-bottom: 0;
|
---|
216 | padding-top: .4em;
|
---|
217 | }
|
---|
218 |
|
---|
219 | .book h2.subtitle {
|
---|
220 | text-align: center;
|
---|
221 | background: #dbddec;
|
---|
222 | margin: 0;
|
---|
223 | padding: 0.2em;
|
---|
224 | }
|
---|
225 |
|
---|
226 | h3 {
|
---|
227 | font-size: 120%;
|
---|
228 | }
|
---|
229 |
|
---|
230 | .appendix h3 {
|
---|
231 | font-size: 133%;
|
---|
232 | margin-top: .8em;
|
---|
233 | margin-bottom: 0.2em;
|
---|
234 | }
|
---|
235 |
|
---|
236 | h4 {
|
---|
237 | font-size: 110%;
|
---|
238 | }
|
---|
239 |
|
---|
240 | .package h4, h5, h6 {
|
---|
241 | font-size: 100%;
|
---|
242 | font-style: italic;
|
---|
243 | }
|
---|
244 |
|
---|
245 |
|
---|
246 | /* TOC */
|
---|
247 | div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
|
---|
248 | list-style: none;
|
---|
249 | }
|
---|
250 |
|
---|
251 | div.toc {
|
---|
252 | padding-left: 1em;
|
---|
253 | }
|
---|
254 |
|
---|
255 | li.preface, .part li.appendix {
|
---|
256 | margin-left: 1em;
|
---|
257 | }
|
---|
258 |
|
---|
259 | div.toc h3 {
|
---|
260 | margin: 1em 0 .3em 0;
|
---|
261 | }
|
---|
262 |
|
---|
263 | li.appendix h3, li.glossary h3, li.index h3 {
|
---|
264 | margin: .5em
|
---|
265 | }
|
---|
266 |
|
---|
267 | div.toc h4 {
|
---|
268 | margin: .6em 0 .2em 0;
|
---|
269 | }
|
---|
270 |
|
---|
271 | li.chapter h4 a {
|
---|
272 | display: block;
|
---|
273 | margin-bottom: .4em
|
---|
274 | }
|
---|
275 |
|
---|
276 | .dummy {
|
---|
277 | display: block;
|
---|
278 | font-weight: bold;
|
---|
279 | font-size: 110%;
|
---|
280 | margin: .6em 0 .2em 0;
|
---|
281 | }
|
---|
282 |
|
---|
283 |
|
---|
284 | /* Index */
|
---|
285 | .item {
|
---|
286 | float: left;
|
---|
287 | margin-right: 1em
|
---|
288 | }
|
---|
289 |
|
---|
290 | .secitem {
|
---|
291 | font-weight: normal;
|
---|
292 | float: left;
|
---|
293 | margin-right: 1em
|
---|
294 | }
|
---|
295 |
|
---|
296 | .indexref {
|
---|
297 | display: block;
|
---|
298 | }
|
---|
299 |
|
---|
300 | .item + .indexref {
|
---|
301 | margin-left: 20em;
|
---|
302 | }
|
---|
303 |
|
---|
304 | .secitem + .indexref {
|
---|
305 | margin-left: 19em;
|
---|
306 | }
|
---|
307 |
|
---|
308 |
|
---|
309 | /* Admonitions */
|
---|
310 | div.admon h3 {
|
---|
311 | padding-left: 2.5em;
|
---|
312 | padding-top: 1em;
|
---|
313 | }
|
---|
314 |
|
---|
315 | div.admon p {
|
---|
316 | margin-left: .5em;
|
---|
317 | }
|
---|
318 |
|
---|
319 | div.admon pre {
|
---|
320 | margin: 0.5em 3em;
|
---|
321 | }
|
---|
322 |
|
---|
323 | div.note, div.tip {
|
---|
324 | background-color: #fffff6;
|
---|
325 | border: 2px solid #dbddec;
|
---|
326 | width: 90%;
|
---|
327 | margin: .5em auto;
|
---|
328 | }
|
---|
329 |
|
---|
330 | div.important, div.warning, div.caution {
|
---|
331 | background-color: #fffff6;
|
---|
332 | border: medium solid #400;
|
---|
333 | width: 90%;
|
---|
334 | margin: .5em auto;
|
---|
335 | color: #600;
|
---|
336 | }
|
---|
337 |
|
---|
338 | div.important h3, div.warning h3, div.caution h3 {
|
---|
339 | color: #900;
|
---|
340 | }
|
---|
341 |
|
---|
342 | div.important em, div.warning em, div.caution em {
|
---|
343 | color: #000;
|
---|
344 | font-weight: bold;
|
---|
345 | }
|
---|
346 |
|
---|
347 |
|
---|
348 | /* table */
|
---|
349 | .table p.title {
|
---|
350 | text-align: center;
|
---|
351 | margin-top: 0;
|
---|
352 | margin-bottom: .3em;
|
---|
353 | }
|
---|
354 |
|
---|
355 | .table table {
|
---|
356 | margin-left: auto;
|
---|
357 | margin-right: auto;
|
---|
358 | }
|
---|
359 |
|
---|
360 | .table table th, .table table td {
|
---|
361 | padding: 0.2em 2em 0.2em 2em;
|
---|
362 | text-align: left;
|
---|
363 | }
|
---|
364 |
|
---|
365 | .revhistory {
|
---|
366 | padding-left: 1em;
|
---|
367 | }
|
---|
368 |
|
---|
369 | .revhistory th {
|
---|
370 | line-height: 2em;
|
---|
371 | text-align: left;
|
---|
372 | }
|
---|
373 |
|
---|
374 | .revhistory td {
|
---|
375 | padding-right: 1em;
|
---|
376 | }
|
---|
377 |
|
---|
378 |
|
---|
379 | /* variablelist as table */
|
---|
380 | .variablelist table {
|
---|
381 | width: auto;
|
---|
382 | margin: 0 1em 0 1em;
|
---|
383 | }
|
---|
384 |
|
---|
385 | .variablelist td {
|
---|
386 | vertical-align: top;
|
---|
387 | }
|
---|
388 |
|
---|
389 | .variablelist td span, td p {
|
---|
390 | margin: 0.25em;
|
---|
391 | }
|
---|
392 |
|
---|
393 | .variablelist td p {
|
---|
394 | margin-top: 0;
|
---|
395 | }
|
---|
396 |
|
---|
397 |
|
---|
398 | /* variablelist as list */
|
---|
399 | dl {
|
---|
400 | padding-left: 1em
|
---|
401 | }
|
---|
402 |
|
---|
403 | dt {
|
---|
404 | font-weight: bold;
|
---|
405 | margin-left: 1em;
|
---|
406 | }
|
---|
407 |
|
---|
408 | dd {
|
---|
409 | margin-bottom: .6em;
|
---|
410 | margin-left: 1em;
|
---|
411 | }
|
---|
412 |
|
---|
413 | dd p {
|
---|
414 | margin-top: 0;
|
---|
415 | margin-bottom: 0;
|
---|
416 | padding-top: 0;
|
---|
417 | padding-bottom: 0;
|
---|
418 | }
|
---|
419 |
|
---|
420 | div.materials dt {
|
---|
421 | display: list-item;
|
---|
422 | }
|
---|
423 |
|
---|
424 | div.materials dd {
|
---|
425 | margin-left: 0;
|
---|
426 | padding-left: 0;
|
---|
427 | }
|
---|
428 |
|
---|
429 |
|
---|
430 | /* segmentedlist */
|
---|
431 | .appendix .segmentedlist {
|
---|
432 | padding-left: 1em;
|
---|
433 | }
|
---|
434 |
|
---|
435 | .package .seg {
|
---|
436 | margin-bottom: 0em;
|
---|
437 | margin-top: 0em;
|
---|
438 | clear: left;
|
---|
439 | }
|
---|
440 |
|
---|
441 | .content .seg {
|
---|
442 | margin-bottom: .4em;
|
---|
443 | margin-top: .4em;
|
---|
444 | clear: left;
|
---|
445 | }
|
---|
446 |
|
---|
447 | .segtitle {
|
---|
448 | float: left;
|
---|
449 | }
|
---|
450 |
|
---|
451 | .package .segbody, .appendix .segbody {
|
---|
452 | display: block;
|
---|
453 | padding-left: 14em;
|
---|
454 | }
|
---|
455 |
|
---|
456 | .content .segbody {
|
---|
457 | display: block;
|
---|
458 | padding-left: 12em;
|
---|
459 | }
|
---|
460 |
|
---|
461 |
|
---|
462 | /* itemizedlist */
|
---|
463 | ul {
|
---|
464 | padding-left: 1em
|
---|
465 | }
|
---|
466 |
|
---|
467 | .itemizedlist ul {
|
---|
468 | margin-left: 1em
|
---|
469 | }
|
---|
470 |
|
---|
471 | .itemizedlist li ul {
|
---|
472 | margin-bottom: 1.2em;
|
---|
473 | }
|
---|
474 |
|
---|
475 | .itemizedlist li ul li p {
|
---|
476 | margin-top: .5em;
|
---|
477 | margin-bottom: .5em;
|
---|
478 | }
|
---|
479 |
|
---|
480 | .itemizedlist li ul li:first-child p:first-child {
|
---|
481 | margin-top: -.6em;
|
---|
482 | }
|
---|
483 |
|
---|
484 | ul.compact {
|
---|
485 | list-style: none;
|
---|
486 | }
|
---|
487 |
|
---|
488 | .blfs ul.compact {
|
---|
489 | list-style: disc;
|
---|
490 | }
|
---|
491 |
|
---|
492 | ul.compact li {
|
---|
493 | margin: 0em;
|
---|
494 | padding: 0em;
|
---|
495 | }
|
---|
496 |
|
---|
497 | ul.compact li p {
|
---|
498 | padding: 0.3em;
|
---|
499 | margin: 0em;
|
---|
500 | }
|
---|
501 |
|
---|
502 | .blfs ul.compact li p {
|
---|
503 | background-color: #f0fff0;
|
---|
504 | }
|
---|
505 |
|
---|
506 | /* orderedlist */
|
---|
507 | ol {
|
---|
508 | list-style: decimal;
|
---|
509 | }
|
---|
510 |
|
---|
511 | ol ol {
|
---|
512 | list-style: lower-alpha;
|
---|
513 | }
|
---|
514 |
|
---|
515 | ol ol ol {
|
---|
516 | list-style: lower-roman;
|
---|
517 | }
|
---|
518 |
|
---|
519 | ol.compact li {
|
---|
520 | margin: 0em;
|
---|
521 | padding: 0em;
|
---|
522 | }
|
---|
523 |
|
---|
524 | ol.compact li p {
|
---|
525 | padding: 0.3em;
|
---|
526 | margin: 0em;
|
---|
527 | }
|
---|
528 |
|
---|
529 |
|
---|
530 | /* Indented blocks */
|
---|
531 | p, blockquote {
|
---|
532 | padding-left: 1em;
|
---|
533 | padding-right: 1em;
|
---|
534 | }
|
---|
535 |
|
---|
536 |
|
---|
537 | /* Monospaced elements */
|
---|
538 | tt, code, kbd, pre, .command {
|
---|
539 | font-family: monospace;
|
---|
540 | }
|
---|
541 |
|
---|
542 | .systemitem {
|
---|
543 | font-style: italic;
|
---|
544 | }
|
---|
545 |
|
---|
546 | pre {
|
---|
547 | background-color: #e5e5e5;
|
---|
548 | border: 1px solid #050505;
|
---|
549 | padding: .5em 1em;
|
---|
550 | margin: 0 2em .5em 2em;
|
---|
551 | font-weight: bold;
|
---|
552 | }
|
---|
553 |
|
---|
554 | pre.userinput {
|
---|
555 | color: #101310;
|
---|
556 | }
|
---|
557 |
|
---|
558 | pre.root {
|
---|
559 | color: #101310;
|
---|
560 | border: 1px solid #11a;
|
---|
561 | }
|
---|
562 |
|
---|
563 | pre.screen {
|
---|
564 | color: #000;
|
---|
565 | background-color: #e9e9e9;
|
---|
566 | font-weight: normal;
|
---|
567 | }
|
---|
568 |
|
---|
569 | .literal, .prompt {
|
---|
570 | font-weight: normal;
|
---|
571 | }
|
---|
572 |
|
---|
573 |
|
---|
574 | /* Mixed tags */
|
---|
575 | p.usernotes {
|
---|
576 | margin-left: -1em;
|
---|
577 | font-size: small;
|
---|
578 | font-weight: bold;
|
---|
579 | font-style: italic;
|
---|
580 | }
|
---|
581 |
|
---|
582 | .underlined {
|
---|
583 | text-decoration: underline;
|
---|
584 | }
|
---|
585 |
|
---|
586 |
|
---|
587 | /* Last edited info */
|
---|
588 | p.updated {
|
---|
589 | font-size: small;
|
---|
590 | font-weight: bold;
|
---|
591 | font-style: italic;
|
---|
592 | }
|
---|
593 |
|
---|
594 |
|
---|
595 | /* Special colored blocks */
|
---|
596 | /* OrangeRed4 */
|
---|
597 | .feature-ssp {
|
---|
598 | color: #8B2500;
|
---|
599 | }
|
---|
600 |
|
---|
601 | /* RoyalBlue3 */
|
---|
602 | .feature-aslr {
|
---|
603 | color: #3A5FCD;
|
---|
604 | }
|
---|
605 |
|
---|
606 | /* NavyBlue */
|
---|
607 | .feature-pax {
|
---|
608 | color: #000080;
|
---|
609 | }
|
---|
610 |
|
---|
611 | /* VioletRed */
|
---|
612 | .feature-hardened_tmp {
|
---|
613 | color: #d02090;
|
---|
614 | }
|
---|
615 |
|
---|
616 | /* PaleTurquoise4 */
|
---|
617 | .feature-warnings {
|
---|
618 | color: #668b8b;
|
---|
619 | }
|
---|
620 |
|
---|
621 | /* RosyBrown */
|
---|
622 | .feature-misc {
|
---|
623 | color: #bc8f8f;
|
---|
624 | }
|
---|
625 |
|
---|
626 | /* Sienna*/
|
---|
627 | .feature-blowfish {
|
---|
628 | color: #8E6B23
|
---|
629 | }
|
---|
630 | </xsl:text>
|
---|
631 | </style>
|
---|
632 | </xsl:template>
|
---|
633 |
|
---|
634 | </xsl:stylesheet>
|
---|