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