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