source: stylesheets/lfs-xsl/nochunks.xsl@ b60f1ce

ken/TL2024 trunk xry111/llvm18
Last change on this file since b60f1ce was ab4fdfc, checked in by Pierre Labastie <pierre.labastie@…>, 4 months ago

Change all xml decl to encoding=utf-8

  • Property mode set to 100644
File size: 10.0 KB
Line 
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 diferences with lfs.css code releated
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 */
93body {
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 */
106a:link { color: #22b; }
107a.ulink:link { font-weight: bold; color: #55f; }
108a:visited { color: #7e4988 ! important; }
109a:hover, a:focus { color: #d30e08 ! important; }
110a: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
133div.dedication {
134 padding-left: 1em;
135}
136
137
138/* Sections */
139div.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 */
170h1, h2, h3, h4, h5, h6, b, .strong {
171 color: #000;
172 font-weight: bold;
173 line-height: 1em;
174}
175
176h1 {
177 font-size: 173%;
178 text-align: center;
179}
180
181.book h1 {
182 margin: 0;
183 padding: 0.4em;
184}
185
186h1.title sup {
187 font-size: small;
188}
189
190h2 {
191 font-size: 144%;
192}
193
194.preface h2, .part h1, .chapter h2, .appendix h2, .index h1, .sect1 h2 {
195 background: #f5f6f7;
196 border-top: .2em solid #dbddec;
197 border-bottom: .2em solid #dbddec;
198 margin-bottom: 1em;
199 margin-top: 1em;
200 padding: .4em;
201 text-align: center;
202}
203
204.sect1 h2, .appendix h2 {
205 margin-left: -.2em;
206}
207
208.wrap h2 {
209 background: #f5f6f7;
210 border-bottom: 0;
211 margin-top: 1em;
212 margin-bottom: 0;
213 padding-top: .4em;
214}
215
216.book h2.subtitle {
217 text-align: center;
218 background: #dbddec;
219 margin: 0;
220 padding: 0.2em;
221}
222
223h3 {
224 font-size: 120%;
225}
226
227.appendix h3 {
228 font-size: 133%;
229 margin-top: .8em;
230 margin-bottom: 0.2em;
231}
232
233h4 {
234 font-size: 110%;
235}
236
237.package h4, h5, h6 {
238 font-size: 100%;
239 font-style: italic;
240}
241
242
243/* TOC */
244div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
245 list-style: none;
246}
247
248div.toc {
249 padding-left: 1em;
250}
251
252li.preface, .part li.appendix {
253 margin-left: 1em;
254}
255
256div.toc h3 {
257 margin: 1em 0 .3em 0;
258}
259
260li.appendix h3, li.glossary h3, li.index h3 {
261 margin: .5em
262}
263
264div.toc h4 {
265 margin: .6em 0 .2em 0;
266}
267
268li.chapter h4 a {
269 display: block;
270 margin-bottom: .4em
271}
272
273.dummy {
274 display: block;
275 font-weight: bold;
276 font-size: 110%;
277 margin: .6em 0 .2em 0;
278}
279
280
281/* Index */
282.item {
283 float: left;
284 margin-right: 1em
285}
286
287.secitem {
288 font-weight: normal;
289 float: left;
290 margin-right: 1em
291}
292
293.indexref {
294 display: block;
295}
296
297.item + .indexref {
298 margin-left: 20em;
299}
300
301.secitem + .indexref {
302 margin-left: 19em;
303}
304
305
306/* Admonitions */
307div.admon h3 {
308 padding-left: 2.5em;
309 padding-top: 1em;
310}
311
312div.admon p {
313 margin-left: .5em;
314}
315
316div.admon pre {
317 margin: 0.5em 3em;
318}
319
320div.note, div.tip {
321 background-color: #fffff6;
322 border: 2px solid #dbddec;
323 width: 90%;
324 margin: .5em auto;
325}
326
327div.important, div.warning, div.caution {
328 background-color: #fffff6;
329 border: medium solid #400;
330 width: 90%;
331 margin: .5em auto;
332 color: #600;
333}
334
335div.important h3, div.warning h3, div.caution h3 {
336 color: #900;
337}
338
339div.important em, div.warning em, div.caution em {
340 color: #000;
341 font-weight: bold;
342}
343
344
345/* table */
346.table p.title {
347 text-align: center;
348 margin-top: 0;
349 margin-bottom: .3em;
350}
351
352.table table {
353 margin-left: auto;
354 margin-right: auto;
355}
356
357.table table th, .table table td {
358 padding: 0.2em 2em 0.2em 2em;
359 text-align: left;
360}
361
362.revhistory {
363 padding-left: 1em;
364}
365
366.revhistory th {
367 line-height: 2em;
368 text-align: left;
369}
370
371.revhistory td {
372 padding-right: 1em;
373}
374
375
376/* variablelist as table */
377.variablelist table {
378 width: auto;
379 margin: 0 1em 0 1em;
380}
381
382.variablelist td {
383 vertical-align: top;
384}
385
386.variablelist td span, td p {
387 margin: 0.25em;
388}
389
390.variablelist td p {
391 margin-top: 0;
392}
393
394
395/* variablelist as list */
396dl {
397 padding-left: 1em
398}
399
400dt {
401 font-weight: bold;
402 margin-left: 1em;
403}
404
405dd {
406 margin-bottom: .6em;
407 margin-left: 1em;
408}
409
410dd p {
411 margin-top: 0;
412 margin-bottom: 0;
413 padding-top: 0;
414 padding-bottom: 0;
415}
416
417div.materials dt {
418 display: list-item;
419}
420
421div.materials dd {
422 margin-left: 0;
423 padding-left: 0;
424}
425
426
427/* segmentedlist */
428.appendix .segmentedlist {
429 padding-left: 1em;
430}
431
432.package .seg {
433 margin-bottom: 0em;
434 margin-top: 0em;
435 clear: left;
436}
437
438.content .seg {
439 margin-bottom: .4em;
440 margin-top: .4em;
441 clear: left;
442}
443
444.segtitle {
445 float: left;
446}
447
448.package .segbody, .appendix .segbody {
449 display: block;
450 padding-left: 14em;
451}
452
453.content .segbody {
454 display: block;
455 padding-left: 12em;
456}
457
458
459/* itemizedlist */
460ul {
461 padding-left: 1em
462}
463
464.itemizedlist ul {
465 margin-left: 1em
466}
467
468.itemizedlist li ul {
469 margin-bottom: 1.2em;
470}
471
472.itemizedlist li ul li p {
473 margin-top: .5em;
474 margin-bottom: .5em;
475}
476
477.itemizedlist li ul li:first-child p:first-child {
478 margin-top: -.6em;
479}
480
481ul.compact {
482 list-style: none;
483}
484
485.blfs ul.compact {
486 list-style: disc;
487}
488
489ul.compact li {
490 margin: 0em;
491 padding: 0em;
492}
493
494ul.compact li p {
495 padding: 0.3em;
496 margin: 0em;
497}
498
499.blfs ul.compact li p {
500 background-color: #f0fff0;
501}
502
503/* orderedlist */
504ol {
505 list-style: decimal;
506}
507
508ol ol {
509 list-style: lower-alpha;
510}
511
512ol ol ol {
513 list-style: lower-roman;
514}
515
516ol.compact li {
517 margin: 0em;
518 padding: 0em;
519}
520
521ol.compact li p {
522 padding: 0.3em;
523 margin: 0em;
524}
525
526
527/* Indented blocks */
528p, blockquote {
529 padding-left: 1em;
530 padding-right: 1em;
531}
532
533
534/* Monospaced elements */
535tt, code, kbd, pre, .command {
536 font-family: monospace;
537}
538
539.systemitem {
540 font-style: italic;
541}
542
543pre {
544 background-color: #e5e5e5;
545 border: 1px solid #050505;
546 padding: .5em 1em;
547 margin: 0 2em .5em 2em;
548 font-weight: bold;
549}
550
551pre.userinput {
552 color: #101310;
553}
554
555pre.root {
556 color: #101310;
557 border: 1px solid #11a;
558}
559
560pre.screen {
561 color: #000;
562 background-color: #e9e9e9;
563 font-weight: normal;
564}
565
566.literal, .prompt {
567 font-weight: normal;
568}
569
570
571/* Mixed tags */
572p.usernotes {
573 margin-left: -1em;
574 font-size: small;
575 font-weight: bold;
576 font-style: italic;
577}
578
579.underlined {
580 text-decoration: underline;
581}
582
583
584/* Last edited info */
585p.updated {
586 font-size: small;
587 font-weight: bold;
588 font-style: italic;
589}
590
591
592/* Special colored blocks */
593 /* OrangeRed4 */
594.feature-ssp {
595 color: #8B2500;
596}
597
598 /* RoyalBlue3 */
599.feature-aslr {
600 color: #3A5FCD;
601}
602
603 /* NavyBlue */
604.feature-pax {
605 color: #000080;
606}
607
608 /* VioletRed */
609.feature-hardened_tmp {
610 color: #d02090;
611}
612
613 /* PaleTurquoise4 */
614.feature-warnings {
615 color: #668b8b;
616}
617
618 /* RosyBrown */
619.feature-misc {
620 color: #bc8f8f;
621}
622
623 /* Sienna*/
624.feature-blowfish {
625 color: #8E6B23
626}
627 </xsl:text>
628 </style>
629 </xsl:template>
630
631</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.