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