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 | <!-- We use XHTML -->
|
---|
8 | <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/docbook.xsl"/>
|
---|
9 |
|
---|
10 | <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
|
---|
11 | <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
|
---|
12 |
|
---|
13 | <!-- Including our others customized templates -->
|
---|
14 | <xsl:include href="xhtml/lfs-admon.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 | <!-- This file contains our localization strings (for internationalization) -->
|
---|
22 | <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
|
---|
23 |
|
---|
24 | <!-- Dropping some unwanted style attributes -->
|
---|
25 | <xsl:param name="ulink.target" select="''"></xsl:param>
|
---|
26 | <xsl:param name="css.decoration" select="0"></xsl:param>
|
---|
27 |
|
---|
28 | <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)-->
|
---|
29 | <xsl:template name="sect2.titlepage">
|
---|
30 | <xsl:choose>
|
---|
31 | <xsl:when test="string-length(title) = 0"/>
|
---|
32 | <xsl:otherwise>
|
---|
33 | <div class="titlepage">
|
---|
34 | <xsl:if test="@id">
|
---|
35 | <a id="{@id}" name="{@id}"/>
|
---|
36 | </xsl:if>
|
---|
37 | <h3 class="{name(.)}">
|
---|
38 | <xsl:apply-templates select="." mode="label.markup"/>
|
---|
39 | <xsl:text>. </xsl:text>
|
---|
40 | <xsl:value-of select="title"/>
|
---|
41 | </h3>
|
---|
42 | </div>
|
---|
43 | </xsl:otherwise>
|
---|
44 | </xsl:choose>
|
---|
45 | </xsl:template>
|
---|
46 |
|
---|
47 | <!-- Added the role param for proper punctuation in xref calls
|
---|
48 | (from lfs-titles.xsl). -->
|
---|
49 | <xsl:template match="*" mode="insert.title.markup">
|
---|
50 | <xsl:param name="purpose"/>
|
---|
51 | <xsl:param name="xrefstyle"/>
|
---|
52 | <xsl:param name="title"/>
|
---|
53 | <xsl:param name="role"/>
|
---|
54 | <xsl:choose>
|
---|
55 | <xsl:when test="$purpose = 'xref' and titleabbrev">
|
---|
56 | <xsl:apply-templates select="." mode="titleabbrev.markup"/>
|
---|
57 | </xsl:when>
|
---|
58 | <xsl:otherwise>
|
---|
59 | <xsl:copy-of select="$title"/>
|
---|
60 | <xsl:value-of select="$role"/>
|
---|
61 | </xsl:otherwise>
|
---|
62 | </xsl:choose>
|
---|
63 | </xsl:template>
|
---|
64 |
|
---|
65 | <!-- The CSS Stylesheet -->
|
---|
66 | <xsl:template name='user.head.content'>
|
---|
67 | <style type="text/css">
|
---|
68 | <xsl:text>
|
---|
69 | /* Global settings */
|
---|
70 | body {
|
---|
71 | font-family: verdana, tahoma, helvetica, arial, sans-serif;
|
---|
72 | text-align: left;
|
---|
73 | background: #fff;
|
---|
74 | color: #333;
|
---|
75 | margin: 1em;
|
---|
76 | padding: 0;
|
---|
77 | font-size: 1em;
|
---|
78 | line-height: 1.2em
|
---|
79 | }
|
---|
80 |
|
---|
81 | a:link { color: #22b; }
|
---|
82 | a:visited { color: #7e4988; }
|
---|
83 | a:hover, a:focus { color: #d30e08; }
|
---|
84 | a:active { color: #6b77b1;}
|
---|
85 |
|
---|
86 | /* Headers */
|
---|
87 | h1, h2, b, strong {
|
---|
88 | color: #000;
|
---|
89 | font-weight: bold;
|
---|
90 | }
|
---|
91 |
|
---|
92 | h3, h4, h5, h6 {
|
---|
93 | color: #222;
|
---|
94 | }
|
---|
95 |
|
---|
96 | h1 { font-size: 173%; text-align: center; }
|
---|
97 | h2 { font-size: 144%; }
|
---|
98 | h2.subtitle { text-align: center; }
|
---|
99 | h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
|
---|
100 | h4 { font-size: 110%;}
|
---|
101 | h5, h6 { font-size: 110%; font-style: italic; }
|
---|
102 |
|
---|
103 | /* TOC and Index*/
|
---|
104 |
|
---|
105 | div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
|
---|
106 | list-style: none;
|
---|
107 | }
|
---|
108 |
|
---|
109 | div.toc, div.dedication {
|
---|
110 | padding-left: 1em;
|
---|
111 | }
|
---|
112 |
|
---|
113 | li.preface {
|
---|
114 | margin-left: 1em;
|
---|
115 | }
|
---|
116 |
|
---|
117 | div.toc ul li h3, div.toc ul li h4 {
|
---|
118 | margin: .4em;
|
---|
119 | }
|
---|
120 |
|
---|
121 | .item {
|
---|
122 | width: 15em;
|
---|
123 | float: left;
|
---|
124 | }
|
---|
125 |
|
---|
126 | .secitem {
|
---|
127 | font-weight: normal;
|
---|
128 | width: 14em;
|
---|
129 | float: left;
|
---|
130 | }
|
---|
131 |
|
---|
132 | /* Admonitions */
|
---|
133 | div.note, div.tip {
|
---|
134 | background-color: #fffff6;
|
---|
135 | border: 2px solid #dbddec;
|
---|
136 | width: 90%;
|
---|
137 | margin: .5em auto;
|
---|
138 | }
|
---|
139 |
|
---|
140 | div.important, div.warning, div.caution {
|
---|
141 | background-color: #fffff6;
|
---|
142 | border: medium solid #400;
|
---|
143 | width: 90%;
|
---|
144 | margin: 1.5em auto;
|
---|
145 | color: #600;
|
---|
146 | font-size: larger;
|
---|
147 | }
|
---|
148 |
|
---|
149 | div.important h3, div.warning h3, div.caution h3 {
|
---|
150 | color: #900;
|
---|
151 | }
|
---|
152 |
|
---|
153 | div.admonhead img {
|
---|
154 | display: none;
|
---|
155 | }
|
---|
156 |
|
---|
157 | h3.admontitle {
|
---|
158 | padding-left: 2.5em;
|
---|
159 | padding-top: 1em;
|
---|
160 | }
|
---|
161 |
|
---|
162 | div.admonbody {
|
---|
163 | margin: .5em;
|
---|
164 | }
|
---|
165 |
|
---|
166 | div.important em, div.warning em, div.caution em {
|
---|
167 | color: #000;
|
---|
168 | font-weight: bold;
|
---|
169 | }
|
---|
170 |
|
---|
171 | div.important tt, div.warning tt, div.caution tt {
|
---|
172 | font-weight: bold;
|
---|
173 | }
|
---|
174 |
|
---|
175 | /* variablelist and segmentedlist */
|
---|
176 | dl {
|
---|
177 | margin: 0;
|
---|
178 | padding: 0;
|
---|
179 | }
|
---|
180 |
|
---|
181 | dt {
|
---|
182 | display: list-item;
|
---|
183 | font-weight: bold;
|
---|
184 | margin: .33em 0 0 1em;
|
---|
185 | padding: 0;
|
---|
186 | }
|
---|
187 |
|
---|
188 | div.content dt {
|
---|
189 | list-style: none;
|
---|
190 | }
|
---|
191 |
|
---|
192 | dd {
|
---|
193 | margin: 0 0 1em 3em;
|
---|
194 | padding: 0;
|
---|
195 | }
|
---|
196 |
|
---|
197 | div.variablelist dd {
|
---|
198 | margin-bottom: 1em;
|
---|
199 | }
|
---|
200 |
|
---|
201 | div.variablelist dd p {
|
---|
202 | margin-top: 0px;
|
---|
203 | }
|
---|
204 |
|
---|
205 | dl.materials dd {
|
---|
206 | margin-left: 0px;
|
---|
207 | }
|
---|
208 |
|
---|
209 | div.segmentedlist {
|
---|
210 | margin-top: 1em;
|
---|
211 | }
|
---|
212 |
|
---|
213 | div.segmentedlist p {
|
---|
214 | margin: 0px auto;
|
---|
215 | }
|
---|
216 |
|
---|
217 | /* itemizedlist */
|
---|
218 |
|
---|
219 | div.itemizedlist {
|
---|
220 | margin-left: 1em;
|
---|
221 | }
|
---|
222 |
|
---|
223 | div.sect3 li p {
|
---|
224 | padding: 0.3em;
|
---|
225 | margin: 0em;
|
---|
226 | background-color: #f0fff0;
|
---|
227 | }
|
---|
228 |
|
---|
229 | /* Indented blocks */
|
---|
230 | p, ul, dl, code, blockquote {
|
---|
231 | padding-left: 1em;
|
---|
232 | }
|
---|
233 |
|
---|
234 | /* Monospaced elements */
|
---|
235 | tt, code, kbd, pre, .command {
|
---|
236 | font-family: monospace;
|
---|
237 | }
|
---|
238 |
|
---|
239 | pre.userinput {
|
---|
240 | color: #101310;
|
---|
241 | background-color: #e5e5e5;
|
---|
242 | border: 1px solid #050505;
|
---|
243 | padding: .5em 1em;
|
---|
244 | margin: 0 2em;
|
---|
245 | font-weight: bold;
|
---|
246 | }
|
---|
247 |
|
---|
248 | pre.screen {
|
---|
249 | background-color: #e9e9e9;
|
---|
250 | border: 1px solid #050505;
|
---|
251 | padding: .5em 1em;
|
---|
252 | margin: 0 2em;
|
---|
253 | }
|
---|
254 |
|
---|
255 | /* Sections */
|
---|
256 | div.package {
|
---|
257 | background: #f5f6f7;
|
---|
258 | border-bottom: 0.2em solid #dbddec;
|
---|
259 | padding: 0.5em 0.5em 0.3em 0.5em;
|
---|
260 | margin: 0px auto;
|
---|
261 | }
|
---|
262 |
|
---|
263 | div.installation {
|
---|
264 | padding: 0 0.5em 0.3em 0.5em;
|
---|
265 | margin: 0.5em 0 0.5em 0;
|
---|
266 | }
|
---|
267 |
|
---|
268 | div.configuration {
|
---|
269 | background: #fefefe;
|
---|
270 | border-top: 0.2em solid #dbddec;
|
---|
271 | padding: 0.5em;
|
---|
272 | margin: 0.5em 0 .5em 0;
|
---|
273 | }
|
---|
274 |
|
---|
275 | div.content {
|
---|
276 | background: #f5f6f7;
|
---|
277 | border-top: 0.2em solid #dbddec;
|
---|
278 | border-bottom: 0.2em solid #dbddec;
|
---|
279 | padding: 0.5em 0.5em 1em 0.5em;
|
---|
280 | margin: 0.5em 0 .5em 0;
|
---|
281 | }
|
---|
282 |
|
---|
283 | div.installation h3.title, div.content h3.title {
|
---|
284 | padding-top: 0.3em;
|
---|
285 | margin: 0;
|
---|
286 | }
|
---|
287 |
|
---|
288 | div.book, div.preface, div.part, div.chapter, div.sect1, div.appendix, div.index {
|
---|
289 | padding-bottom: 0.5em;
|
---|
290 | }
|
---|
291 |
|
---|
292 | div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.appendix h1, div.index h1 {
|
---|
293 | background: #f5f6f7;
|
---|
294 | border-bottom: .2em solid #dbddec;
|
---|
295 | border-top: .2em solid #dbddec;
|
---|
296 | margin-top 1em;
|
---|
297 | padding: .5em;
|
---|
298 | text-align: center;
|
---|
299 | }
|
---|
300 |
|
---|
301 | div.book h1 {
|
---|
302 | background: #f5f6f7;
|
---|
303 | margin: 0px auto;
|
---|
304 | padding: 0.5em;
|
---|
305 | }
|
---|
306 |
|
---|
307 | div.book h2.subtitle {
|
---|
308 | background: #dbddec;
|
---|
309 | margin: 0px auto;
|
---|
310 | padding: 0.2em;
|
---|
311 | }
|
---|
312 | div.authorgroup, div p.copyright, div.abstract div p.pubdate, div.revhistory {
|
---|
313 | background: #f5f6f7;
|
---|
314 | margin: 0px auto;
|
---|
315 | padding: 1em 0.5em;
|
---|
316 | }
|
---|
317 |
|
---|
318 | hr {
|
---|
319 | background: #dbddec;
|
---|
320 | height: .3em;
|
---|
321 | border: 0px;
|
---|
322 | margin: 0px auto;
|
---|
323 | padding: 0;
|
---|
324 | }
|
---|
325 | </xsl:text>
|
---|
326 | </style>
|
---|
327 | </xsl:template>
|
---|
328 |
|
---|
329 | </xsl:stylesheet>
|
---|