[3fe8b511] | 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 -->
|
---|
[ea5f366] | 8 | <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.69.1/xhtml/docbook.xsl"/>
|
---|
[3fe8b511] | 9 |
|
---|
[c5b9704] | 10 | <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
|
---|
[3fe8b511] | 11 | <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
|
---|
[845e9193] | 12 |
|
---|
[3fe8b511] | 13 | <!-- Including our others customized templates -->
|
---|
| 14 | <xsl:include href="xhtml/lfs-index.xsl"/>
|
---|
| 15 | <xsl:include href="xhtml/lfs-mixed.xsl"/>
|
---|
| 16 | <xsl:include href="xhtml/lfs-sections.xsl"/>
|
---|
| 17 | <xsl:include href="xhtml/lfs-toc.xsl"/>
|
---|
| 18 | <xsl:include href="xhtml/lfs-xref.xsl"/>
|
---|
| 19 |
|
---|
| 20 | <!-- This file contains our localization strings (for internationalization) -->
|
---|
[b26564ea] | 21 | <xsl:param name="local.l10n.xml" select="document('blfs-l10n.xml')"/>
|
---|
[3fe8b511] | 22 |
|
---|
| 23 | <!-- Dropping some unwanted style attributes -->
|
---|
| 24 | <xsl:param name="ulink.target" select="''"></xsl:param>
|
---|
| 25 | <xsl:param name="css.decoration" select="0"></xsl:param>
|
---|
| 26 |
|
---|
[c5b9704] | 27 | <!-- Don't use graphics in admonitions -->
|
---|
| 28 | <xsl:param name="admon.graphics" select="0"/>
|
---|
| 29 |
|
---|
| 30 | <!-- Changing the admonitions output tagging -->
|
---|
| 31 | <xsl:template name="nongraphical.admonition">
|
---|
| 32 | <div class="{name(.)}">
|
---|
| 33 | <div class ="admonhead">
|
---|
| 34 | <h3 class="admontitle">
|
---|
| 35 | <xsl:apply-templates select="." mode="object.title.markup"/>
|
---|
| 36 | </h3>
|
---|
| 37 | </div>
|
---|
| 38 | <div class="admonbody">
|
---|
| 39 | <xsl:apply-templates/>
|
---|
| 40 | </div>
|
---|
| 41 | </div>
|
---|
| 42 | </xsl:template>
|
---|
| 43 |
|
---|
[4a7621f] | 44 | <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)
|
---|
| 45 | Commented out until can do section numbering
|
---|
[3fe8b511] | 46 | <xsl:template name="sect2.titlepage">
|
---|
| 47 | <xsl:choose>
|
---|
| 48 | <xsl:when test="string-length(title) = 0"/>
|
---|
| 49 | <xsl:otherwise>
|
---|
| 50 | <div class="titlepage">
|
---|
| 51 | <xsl:if test="@id">
|
---|
| 52 | <a id="{@id}" name="{@id}"/>
|
---|
| 53 | </xsl:if>
|
---|
| 54 | <h3 class="{name(.)}">
|
---|
| 55 | <xsl:apply-templates select="." mode="label.markup"/>
|
---|
| 56 | <xsl:text>. </xsl:text>
|
---|
| 57 | <xsl:value-of select="title"/>
|
---|
| 58 | </h3>
|
---|
| 59 | </div>
|
---|
| 60 | </xsl:otherwise>
|
---|
| 61 | </xsl:choose>
|
---|
[4a7621f] | 62 | </xsl:template>-->
|
---|
[3fe8b511] | 63 |
|
---|
| 64 | <!-- Added the role param for proper punctuation in xref calls
|
---|
| 65 | (from lfs-titles.xsl). -->
|
---|
| 66 | <xsl:template match="*" mode="insert.title.markup">
|
---|
| 67 | <xsl:param name="purpose"/>
|
---|
| 68 | <xsl:param name="xrefstyle"/>
|
---|
| 69 | <xsl:param name="title"/>
|
---|
| 70 | <xsl:param name="role"/>
|
---|
| 71 | <xsl:choose>
|
---|
| 72 | <xsl:when test="$purpose = 'xref' and titleabbrev">
|
---|
| 73 | <xsl:apply-templates select="." mode="titleabbrev.markup"/>
|
---|
| 74 | </xsl:when>
|
---|
| 75 | <xsl:otherwise>
|
---|
| 76 | <xsl:copy-of select="$title"/>
|
---|
| 77 | <xsl:value-of select="$role"/>
|
---|
| 78 | </xsl:otherwise>
|
---|
| 79 | </xsl:choose>
|
---|
| 80 | </xsl:template>
|
---|
| 81 |
|
---|
| 82 | <!-- The CSS Stylesheet -->
|
---|
| 83 | <xsl:template name='user.head.content'>
|
---|
| 84 | <style type="text/css">
|
---|
| 85 | <xsl:text>
|
---|
| 86 | /* Global settings */
|
---|
| 87 | body {
|
---|
| 88 | font-family: verdana, tahoma, helvetica, arial, sans-serif;
|
---|
| 89 | text-align: left;
|
---|
| 90 | background: #fff;
|
---|
| 91 | color: #333;
|
---|
| 92 | margin: 1em;
|
---|
| 93 | padding: 0;
|
---|
| 94 | font-size: 1em;
|
---|
| 95 | line-height: 1.2em
|
---|
| 96 | }
|
---|
| 97 |
|
---|
| 98 | a:link { color: #22b; }
|
---|
| 99 | a:visited { color: #7e4988; }
|
---|
| 100 | a:hover, a:focus { color: #d30e08; }
|
---|
| 101 | a:active { color: #6b77b1;}
|
---|
| 102 |
|
---|
| 103 | /* Headers */
|
---|
| 104 | h1, h2, b, strong {
|
---|
| 105 | color: #000;
|
---|
| 106 | font-weight: bold;
|
---|
| 107 | }
|
---|
| 108 |
|
---|
| 109 | h3, h4, h5, h6 {
|
---|
| 110 | color: #222;
|
---|
| 111 | }
|
---|
| 112 |
|
---|
[e5d19ba] | 113 | h1 { font-size: 173%; text-align: center; line-height: 1.2em; }
|
---|
| 114 | h1.title sup { font-size: small; }
|
---|
| 115 | h2 { font-size: 144%; line-height: 1.2em; }
|
---|
| 116 | h2.subtitle { text-align: center; line-height: 1.2em; }
|
---|
| 117 | h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; line-height: 1.2em; }
|
---|
[3fe8b511] | 118 | h4 { font-size: 110%;}
|
---|
[e5d19ba] | 119 | div.package h4, h5, h6 { font-size: 110%; font-style: italic; }
|
---|
[3fe8b511] | 120 |
|
---|
| 121 | /* TOC and Index*/
|
---|
| 122 |
|
---|
| 123 | div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
|
---|
| 124 | list-style: none;
|
---|
| 125 | }
|
---|
| 126 |
|
---|
| 127 | div.toc, div.dedication {
|
---|
| 128 | padding-left: 1em;
|
---|
| 129 | }
|
---|
| 130 |
|
---|
| 131 | li.preface {
|
---|
| 132 | margin-left: 1em;
|
---|
| 133 | }
|
---|
| 134 |
|
---|
| 135 | div.toc ul li h3, div.toc ul li h4 {
|
---|
| 136 | margin: .4em;
|
---|
| 137 | }
|
---|
| 138 |
|
---|
| 139 | .item {
|
---|
[e5d19ba] | 140 | width: 18.5em;
|
---|
[3fe8b511] | 141 | float: left;
|
---|
| 142 | }
|
---|
| 143 |
|
---|
[e5d19ba] | 144 | .indexref {
|
---|
| 145 | margin-left: 18.5em;
|
---|
| 146 | }
|
---|
| 147 |
|
---|
[3fe8b511] | 148 | .secitem {
|
---|
| 149 | font-weight: normal;
|
---|
[e5d19ba] | 150 | width: 16em;
|
---|
[3fe8b511] | 151 | float: left;
|
---|
| 152 | }
|
---|
| 153 |
|
---|
| 154 | /* Admonitions */
|
---|
| 155 | div.note, div.tip {
|
---|
| 156 | background-color: #fffff6;
|
---|
| 157 | border: 2px solid #dbddec;
|
---|
| 158 | width: 90%;
|
---|
| 159 | margin: .5em auto;
|
---|
| 160 | }
|
---|
| 161 |
|
---|
| 162 | div.important, div.warning, div.caution {
|
---|
| 163 | background-color: #fffff6;
|
---|
| 164 | border: medium solid #400;
|
---|
| 165 | width: 90%;
|
---|
| 166 | margin: 1.5em auto;
|
---|
| 167 | color: #600;
|
---|
| 168 | font-size: larger;
|
---|
| 169 | }
|
---|
| 170 |
|
---|
| 171 | div.important h3, div.warning h3, div.caution h3 {
|
---|
| 172 | color: #900;
|
---|
| 173 | }
|
---|
| 174 |
|
---|
| 175 | h3.admontitle {
|
---|
| 176 | padding-left: 2.5em;
|
---|
| 177 | padding-top: 1em;
|
---|
| 178 | }
|
---|
| 179 |
|
---|
| 180 | div.admonbody {
|
---|
| 181 | margin: .5em;
|
---|
| 182 | }
|
---|
| 183 |
|
---|
| 184 | div.important em, div.warning em, div.caution em {
|
---|
| 185 | color: #000;
|
---|
| 186 | font-weight: bold;
|
---|
| 187 | }
|
---|
| 188 |
|
---|
| 189 | div.important tt, div.warning tt, div.caution tt {
|
---|
| 190 | font-weight: bold;
|
---|
| 191 | }
|
---|
| 192 |
|
---|
[e5d19ba] | 193 | table {
|
---|
| 194 | width: auto;
|
---|
| 195 | margin-left: 1em;
|
---|
| 196 | }
|
---|
| 197 |
|
---|
| 198 | td {
|
---|
| 199 | vertical-align: top;
|
---|
| 200 | }
|
---|
| 201 |
|
---|
| 202 | td span, td p {
|
---|
| 203 | margin: 0.3em;
|
---|
| 204 | }
|
---|
| 205 |
|
---|
| 206 | div.table table {
|
---|
| 207 | border-collapse: collapse;
|
---|
| 208 | }
|
---|
| 209 |
|
---|
| 210 | div.table td, div.table th {
|
---|
| 211 | padding: 0.3em;
|
---|
| 212 | text-align: right;
|
---|
| 213 | vertical-align: baseline;
|
---|
| 214 | }
|
---|
| 215 |
|
---|
| 216 | div.table tr > td:first-child, div.table tr > th:first-child {
|
---|
| 217 | text-align: left;
|
---|
| 218 | }
|
---|
| 219 |
|
---|
| 220 | span.term {
|
---|
| 221 | display: block;
|
---|
| 222 | }
|
---|
| 223 |
|
---|
[3fe8b511] | 224 | /* variablelist and segmentedlist */
|
---|
| 225 | dl {
|
---|
| 226 | margin: 0;
|
---|
| 227 | padding: 0;
|
---|
[e5d19ba] | 228 | list-style-type: none;
|
---|
[3fe8b511] | 229 | }
|
---|
| 230 |
|
---|
| 231 | dt {
|
---|
| 232 | display: list-item;
|
---|
| 233 | font-weight: bold;
|
---|
| 234 | margin: .33em 0 0 1em;
|
---|
| 235 | padding: 0;
|
---|
| 236 | }
|
---|
| 237 |
|
---|
[e5d19ba] | 238 | span.seg {
|
---|
| 239 | display: block;
|
---|
| 240 | padding-left: 12em;
|
---|
| 241 | }
|
---|
| 242 |
|
---|
[3fe8b511] | 243 | div.content dt {
|
---|
| 244 | list-style: none;
|
---|
| 245 | }
|
---|
| 246 |
|
---|
| 247 | dd {
|
---|
| 248 | margin: 0 0 1em 3em;
|
---|
| 249 | padding: 0;
|
---|
| 250 | }
|
---|
| 251 |
|
---|
| 252 | div.variablelist dd {
|
---|
| 253 | margin-bottom: 1em;
|
---|
| 254 | }
|
---|
| 255 |
|
---|
| 256 | div.variablelist dd p {
|
---|
| 257 | margin-top: 0px;
|
---|
| 258 | }
|
---|
| 259 |
|
---|
| 260 | dl.materials dd {
|
---|
| 261 | margin-left: 0px;
|
---|
| 262 | }
|
---|
| 263 |
|
---|
| 264 | div.segmentedlist {
|
---|
| 265 | margin-top: 1em;
|
---|
| 266 | }
|
---|
| 267 |
|
---|
| 268 | div.segmentedlist p {
|
---|
| 269 | margin: 0px auto;
|
---|
| 270 | }
|
---|
| 271 |
|
---|
[e5d19ba] | 272 | span.segtitle {
|
---|
| 273 | display: block;
|
---|
| 274 | float: left;
|
---|
| 275 | width: 12em;
|
---|
| 276 | }
|
---|
| 277 |
|
---|
| 278 | div.seg {
|
---|
| 279 | clear: left;
|
---|
| 280 | }
|
---|
| 281 |
|
---|
[3fe8b511] | 282 | /* itemizedlist */
|
---|
| 283 |
|
---|
| 284 | div.itemizedlist {
|
---|
| 285 | margin-left: 1em;
|
---|
| 286 | }
|
---|
| 287 |
|
---|
[e5d19ba] | 288 | ul[compact="compact"] li p {
|
---|
[3fe8b511] | 289 | padding: 0.3em;
|
---|
| 290 | margin: 0em;
|
---|
| 291 | background-color: #f0fff0;
|
---|
| 292 | }
|
---|
| 293 |
|
---|
| 294 | /* Indented blocks */
|
---|
| 295 | p, ul, dl, code, blockquote {
|
---|
| 296 | padding-left: 1em;
|
---|
| 297 | }
|
---|
| 298 |
|
---|
| 299 | /* Monospaced elements */
|
---|
| 300 | tt, code, kbd, pre, .command {
|
---|
| 301 | font-family: monospace;
|
---|
| 302 | }
|
---|
| 303 |
|
---|
| 304 | pre.userinput {
|
---|
| 305 | color: #101310;
|
---|
| 306 | background-color: #e5e5e5;
|
---|
| 307 | border: 1px solid #050505;
|
---|
| 308 | padding: .5em 1em;
|
---|
| 309 | margin: 0 2em;
|
---|
| 310 | font-weight: bold;
|
---|
| 311 | }
|
---|
| 312 |
|
---|
[e5d19ba] | 313 | pre.root {
|
---|
| 314 | color: #101310;
|
---|
| 315 | background-color: #e5e5e5;
|
---|
| 316 | border: 1px solid #050505;
|
---|
| 317 | padding: .5em 1em;
|
---|
| 318 | margin: 0 2em;
|
---|
| 319 | font-weight: bold;
|
---|
| 320 | }
|
---|
| 321 |
|
---|
| 322 | .literal, .prompt {
|
---|
| 323 | font-weight: normal;
|
---|
| 324 | }
|
---|
| 325 |
|
---|
[3fe8b511] | 326 | pre.screen {
|
---|
| 327 | background-color: #e9e9e9;
|
---|
| 328 | border: 1px solid #050505;
|
---|
| 329 | padding: .5em 1em;
|
---|
| 330 | margin: 0 2em;
|
---|
| 331 | }
|
---|
| 332 |
|
---|
| 333 | /* Sections */
|
---|
[e5d19ba] | 334 | div h2 {
|
---|
| 335 | padding: 1em 0 0.5em 0;
|
---|
[3fe8b511] | 336 | margin: 0px auto;
|
---|
| 337 | }
|
---|
| 338 |
|
---|
[e5d19ba] | 339 | div.glossary h2 {
|
---|
| 340 | text-align: center;
|
---|
| 341 | font-size: 173%;
|
---|
| 342 | padding-top: 0.4em;
|
---|
| 343 | border-bottom: .1em solid #dbddec;
|
---|
| 344 | }
|
---|
| 345 |
|
---|
| 346 | div.package {
|
---|
| 347 | padding: 0 0.5em 0.3em 0.5em;
|
---|
| 348 | margin: 0.5em 0 0.5em 0;
|
---|
| 349 | }
|
---|
| 350 |
|
---|
| 351 | div.kernel {
|
---|
| 352 | padding: 0 0.5em 0.3em 0.5em;
|
---|
| 353 | margin: 0.5em 0 0.5em 0;
|
---|
| 354 | }
|
---|
| 355 |
|
---|
[3fe8b511] | 356 | div.installation {
|
---|
| 357 | padding: 0 0.5em 0.3em 0.5em;
|
---|
| 358 | margin: 0.5em 0 0.5em 0;
|
---|
| 359 | }
|
---|
| 360 |
|
---|
[e5d19ba] | 361 | div.commands {
|
---|
| 362 | padding: 0 0.5em 0.3em 0.5em;
|
---|
| 363 | margin: 0.5em 0 0.5em 0;
|
---|
[3fe8b511] | 364 | }
|
---|
| 365 |
|
---|
[e5d19ba] | 366 | div.testing {
|
---|
| 367 | padding: 0 0.5em 0.3em 0.5em;
|
---|
| 368 | margin: 0.5em 0 0.5em 0;
|
---|
[3fe8b511] | 369 | }
|
---|
| 370 |
|
---|
[e5d19ba] | 371 | div.configuration {
|
---|
| 372 | padding: 0 0.5em 0.3em 0.5em;
|
---|
| 373 | margin: 0.5em 0 0.5em 0;
|
---|
| 374 | }
|
---|
| 375 |
|
---|
| 376 | div.content {
|
---|
| 377 | padding: 0 0.5em 0.3em 0.5em;
|
---|
| 378 | margin: 0.5em 0 0.5em 0;
|
---|
[3fe8b511] | 379 | }
|
---|
| 380 |
|
---|
| 381 | div.book, div.preface, div.part, div.chapter, div.sect1, div.appendix, div.index {
|
---|
| 382 | padding-bottom: 0.5em;
|
---|
| 383 | }
|
---|
| 384 |
|
---|
| 385 | div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.appendix h1, div.index h1 {
|
---|
| 386 | background: #f5f6f7;
|
---|
[e5d19ba] | 387 | border-bottom: .1em solid #dbddec;
|
---|
| 388 | border-top: .1em solid #dbddec;
|
---|
[3fe8b511] | 389 | margin-top 1em;
|
---|
| 390 | padding: .5em;
|
---|
| 391 | text-align: center;
|
---|
| 392 | }
|
---|
| 393 |
|
---|
| 394 | div.book h1 {
|
---|
| 395 | background: #f5f6f7;
|
---|
| 396 | margin: 0px auto;
|
---|
| 397 | padding: 0.5em;
|
---|
| 398 | }
|
---|
| 399 |
|
---|
| 400 | div.book h2.subtitle {
|
---|
| 401 | background: #dbddec;
|
---|
| 402 | margin: 0px auto;
|
---|
| 403 | padding: 0.2em;
|
---|
| 404 | }
|
---|
[e5d19ba] | 405 | div.authorgroup, div p.copyright, div.abstract, div p.pubdate, div.revhistory {
|
---|
[3fe8b511] | 406 | background: #f5f6f7;
|
---|
| 407 | margin: 0px auto;
|
---|
| 408 | padding: 1em 0.5em;
|
---|
| 409 | }
|
---|
| 410 |
|
---|
| 411 | hr {
|
---|
| 412 | background: #dbddec;
|
---|
| 413 | height: .3em;
|
---|
| 414 | border: 0px;
|
---|
| 415 | margin: 0px auto;
|
---|
| 416 | padding: 0;
|
---|
| 417 | }
|
---|
[e5d19ba] | 418 |
|
---|
| 419 | /* Last edited info */
|
---|
| 420 | p.updated {
|
---|
| 421 | font-size: small;
|
---|
| 422 | font-weight: bold;
|
---|
| 423 | font-style: italic;
|
---|
| 424 | }
|
---|
| 425 |
|
---|
| 426 | /* Inline tags */
|
---|
| 427 |
|
---|
| 428 | tt.systemitem {
|
---|
| 429 | font-style: italic;
|
---|
| 430 | }
|
---|
[3fe8b511] | 431 | </xsl:text>
|
---|
| 432 | </style>
|
---|
| 433 | </xsl:template>
|
---|
| 434 |
|
---|
| 435 | </xsl:stylesheet>
|
---|