[a34ad80] | 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 |
|
---|
[b711e1d] | 7 | <!-- We use XHTML -->
|
---|
[ea66eb9] | 8 | <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.67.2/xhtml/docbook.xsl"/>
|
---|
[8d11d9f] | 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" />
|
---|
[a34ad80] | 12 |
|
---|
[b711e1d] | 13 | <!-- Including our others customized templates -->
|
---|
[a34ad80] | 14 | <xsl:include href="xhtml/lfs-admon.xsl"/>
|
---|
| 15 | <xsl:include href="xhtml/lfs-index.xsl"/>
|
---|
| 16 | <xsl:include href="xhtml/lfs-mixed.xsl"/>
|
---|
[09a4b2f] | 17 | <xsl:include href="xhtml/lfs-sections.xsl"/>
|
---|
[a34ad80] | 18 | <xsl:include href="xhtml/lfs-toc.xsl"/>
|
---|
[09a4b2f] | 19 | <xsl:include href="xhtml/lfs-xref.xsl"/>
|
---|
[a34ad80] | 20 |
|
---|
[3e0c81bb] | 21 | <!-- This file contains our localization strings (for internationalization) -->
|
---|
| 22 | <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
|
---|
| 23 |
|
---|
[b711e1d] | 24 | <!-- Dropping some unwanted style attributes -->
|
---|
[a34ad80] | 25 | <xsl:param name="ulink.target" select="''"></xsl:param>
|
---|
| 26 | <xsl:param name="css.decoration" select="0"></xsl:param>
|
---|
[b711e1d] | 27 |
|
---|
[09a4b2f] | 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 |
|
---|
[b711e1d] | 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: 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 |
|
---|
[09a4b2f] | 217 | /* itemizedlist */
|
---|
| 218 |
|
---|
| 219 | div.itemizedlist {
|
---|
| 220 | margin-left: 1em;
|
---|
| 221 | }
|
---|
| 222 |
|
---|
[b711e1d] | 223 | /* Indented blocks */
|
---|
| 224 | p, ul, dl, code, blockquote {
|
---|
| 225 | padding-left: 1em;
|
---|
| 226 | }
|
---|
| 227 |
|
---|
| 228 | /* Monospaced elements */
|
---|
| 229 | tt, code, kbd, pre, .command {
|
---|
| 230 | font-family: monospace;
|
---|
| 231 | }
|
---|
| 232 |
|
---|
| 233 | pre.userinput {
|
---|
| 234 | color: #101310;
|
---|
| 235 | background-color: #e5e5e5;
|
---|
| 236 | border: 1px solid #050505;
|
---|
| 237 | padding: .5em 1em;
|
---|
| 238 | margin: 0 2em;
|
---|
| 239 | font-weight: bold;
|
---|
| 240 | }
|
---|
| 241 |
|
---|
| 242 | pre.screen {
|
---|
| 243 | background-color: #e9e9e9;
|
---|
| 244 | border: 1px solid #050505;
|
---|
| 245 | padding: .5em 1em;
|
---|
| 246 | margin: 0 2em;
|
---|
| 247 | }
|
---|
| 248 |
|
---|
| 249 | /* Sections */
|
---|
| 250 | div.package {
|
---|
| 251 | background: #f5f6f7;
|
---|
| 252 | border-bottom: 0.2em solid #dbddec;
|
---|
| 253 | padding: 0.5em 0.5em 0.3em 0.5em;
|
---|
| 254 | margin: 0px auto;
|
---|
| 255 | }
|
---|
| 256 |
|
---|
| 257 | div.installation {
|
---|
| 258 | padding: 0 0.5em 0.3em 0.5em;
|
---|
| 259 | margin: 0.5em 0 0.5em 0;
|
---|
| 260 | }
|
---|
| 261 |
|
---|
| 262 | div.configuration {
|
---|
| 263 | background: #fefefe;
|
---|
| 264 | border-top: 0.2em solid #dbddec;
|
---|
| 265 | padding: 0.5em;
|
---|
| 266 | margin: 0.5em 0 .5em 0;
|
---|
| 267 | }
|
---|
| 268 |
|
---|
| 269 | div.content {
|
---|
| 270 | background: #f5f6f7;
|
---|
| 271 | border-top: 0.2em solid #dbddec;
|
---|
| 272 | border-bottom: 0.2em solid #dbddec;
|
---|
| 273 | padding: 0.5em 0.5em 1em 0.5em;
|
---|
| 274 | margin: 0.5em 0 .5em 0;
|
---|
| 275 | }
|
---|
| 276 |
|
---|
| 277 | div.installation h3.title, div.content h3.title {
|
---|
| 278 | padding-top: 0.3em;
|
---|
| 279 | margin: 0;
|
---|
| 280 | }
|
---|
| 281 |
|
---|
| 282 | div.book, div.preface, div.part, div.chapter, div.sect1, div.index {
|
---|
| 283 | padding-bottom: 0.5em;
|
---|
| 284 | }
|
---|
| 285 |
|
---|
| 286 | div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.index h1 {
|
---|
| 287 | background: #f5f6f7;
|
---|
| 288 | border-bottom: .2em solid #dbddec;
|
---|
| 289 | border-top: .2em solid #dbddec;
|
---|
| 290 | margin-top 1em;
|
---|
| 291 | padding: .5em;
|
---|
| 292 | text-align: center;
|
---|
| 293 | }
|
---|
| 294 |
|
---|
| 295 | div.book h1 {
|
---|
| 296 | background: #f5f6f7;
|
---|
| 297 | margin: 0px auto;
|
---|
| 298 | padding: 0.5em;
|
---|
| 299 | }
|
---|
| 300 |
|
---|
| 301 | div.book h2.subtitle {
|
---|
| 302 | background: #dbddec;
|
---|
| 303 | margin: 0px auto;
|
---|
| 304 | padding: 0.2em;
|
---|
| 305 | }
|
---|
| 306 | div.authorgroup, div p.copyright, div.abstract {
|
---|
| 307 | background: #f5f6f7;
|
---|
| 308 | margin: 0px auto;
|
---|
| 309 | padding: 1em 0.5em;
|
---|
| 310 | }
|
---|
| 311 |
|
---|
| 312 | hr {
|
---|
| 313 | background: #dbddec;
|
---|
| 314 | height: .3em;
|
---|
| 315 | border: 0px;
|
---|
| 316 | margin: 0px auto;
|
---|
| 317 | padding: 0;
|
---|
| 318 | }
|
---|
| 319 | </xsl:text>
|
---|
| 320 | </style>
|
---|
| 321 | </xsl:template>
|
---|
| 322 |
|
---|
[a34ad80] | 323 | </xsl:stylesheet>
|
---|