Changeset 8165
- Timestamp:
- 06/14/07 14:07:24 (1 year ago)
- Files:
-
- branches/new-xsl/lfs.css (modified) (7 diffs)
- branches/new-xsl/xhtml/lfs-admon.xsl (modified) (1 diff)
- branches/new-xsl/xhtml/lfs-index.xsl (modified) (6 diffs)
- branches/new-xsl/xhtml/lfs-mixed.xsl (modified) (1 diff)
- branches/new-xsl/xhtml/lfs-navigational.xsl (modified) (1 diff)
- branches/new-xsl/xhtml/lfs-titles.xsl (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/new-xsl/lfs.css
r8151 r8165 35 35 } 36 36 37 div.dedication .titlepage { 38 background: #fff; 39 } 40 41 div.dedication p { 42 padding-left: 2em; 37 div.dedication { 38 padding-left: 1em; 43 39 } 44 40 … … 159 155 } 160 156 161 div. headertitlesh4 {157 div.navheader h4 { 162 158 margin-top: .4em; 163 159 margin-bottom: 0; … … 165 161 } 166 162 167 div. headertitlesh3 {163 div.navheader h3 { 168 164 margin-top: .2em; 169 165 margin-bottom: 0; … … 265 261 } 266 262 263 .indexref { 264 display: block; 265 } 266 267 267 .item + .indexref { 268 268 margin-left: 31em; … … 275 275 276 276 /* Admonitions */ 277 div.admon img { 278 padding: .3em; 279 } 280 281 div.admon h3 { 282 display: inline; 283 margin-left: 2em; 284 } 285 286 div.admon p { 287 margin-left: .5em; 288 } 289 290 div.admon pre { 291 margin: 0.5em 3em; 292 } 293 277 294 div.note, div.tip { 278 295 background-color: #fffff6; … … 294 311 } 295 312 296 div.admonhead img {297 padding: .3em;298 }299 300 div.admonhead h3 {301 display: inline;302 margin-left: 1.5em;303 }304 305 div.admonbody {306 margin: .5em;307 }308 309 313 div.important em, div.warning em, div.caution em { 310 314 color: #000; … … 330 334 } 331 335 332 div.revhistory {336 .revhistory { 333 337 padding-left: 1em; 334 338 } 335 339 336 div.revhistory th {340 .revhistory th { 337 341 line-height: 2em; 338 342 text-align: left; 339 343 } 340 344 341 div.revhistory td {345 .revhistory td { 342 346 padding-right: 1em; 343 347 } branches/new-xsl/xhtml/lfs-admon.xsl
r8027 r8165 39 39 </xsl:call-template> 40 40 </xsl:variable> 41 <div class="{name(.)}"> 42 <div class ="admonhead"> 43 <img alt="[{$alt}]"> 44 <xsl:attribute name="src"> 45 <xsl:call-template name="admon.graphic"/> 46 </xsl:attribute> 47 </img> 48 <h3 class="admontitle"> 49 <xsl:apply-templates select="." mode="object.title.markup"/> 50 </h3> 51 </div> 52 <div class="admonbody"> 53 <xsl:apply-templates/> 54 </div> 41 <div class="admon {name(.)}"> 42 <img alt="[{$alt}]"> 43 <xsl:attribute name="src"> 44 <xsl:call-template name="admon.graphic"/> 45 </xsl:attribute> 46 </img> 47 <h3> 48 <xsl:apply-templates select="." mode="object.title.markup"/> 49 </h3> 50 <xsl:apply-templates/> 55 51 </div> 56 52 </xsl:template> branches/new-xsl/xhtml/lfs-index.xsl
r8139 r8165 35 35 <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl --> 36 36 <xsl:template name="index.titlepage"> 37 <div class="titlepage"> 38 <h1 class="index"> 39 <xsl:call-template name="gentext"> 40 <xsl:with-param name="key" select="$index-title"/> 41 </xsl:call-template> 42 </h1> 43 </div> 37 <h1 class="index"> 38 <xsl:call-template name="gentext"> 39 <xsl:with-param name="key" select="$index-title"/> 40 </xsl:call-template> 41 </h1> 44 42 </xsl:template> 45 43 … … 56 54 <!-- Make sure that we don't generate a div if there are no terms in scope --> 57 55 <xsl:if test="key('letter', $key)[&scope;] [count(.|key('primary', &primary;)[&scope;][1]) = 1]"> 58 <div class="indexdiv"> 59 <xsl:if test="contains(concat(&lowercase;, &uppercase;), $key)"> 60 <h2> 61 <xsl:choose> 62 <xsl:when test="$divtitle = 'A'"> 63 <a id="package-index" name="package-index"/> 56 <xsl:if test="contains(concat(&lowercase;, &uppercase;), $key)"> 57 <h2> 58 <xsl:choose> 59 <xsl:when test="$divtitle = 'A'"> 60 <a id="package-index" name="package-index"/> 61 <xsl:call-template name="gentext"> 62 <xsl:with-param name="key">Packages</xsl:with-param> 63 </xsl:call-template> 64 </xsl:when> 65 <xsl:when test="$divtitle = 'B'"> 66 <a id="program-index" name="program-index"/> 67 <xsl:call-template name="gentext"> 68 <xsl:with-param name="key">Programs</xsl:with-param> 69 </xsl:call-template> 70 </xsl:when> 71 <xsl:when test="$divtitle = 'C'"> 72 <a id="library-index" name="library-index"/> 73 <xsl:call-template name="gentext"> 74 <xsl:with-param name="key">Libraries</xsl:with-param> 75 </xsl:call-template> 76 </xsl:when> 77 <xsl:when test="$divtitle = 'D'"> 78 <xsl:choose> 79 <xsl:when test="$book-type = 'blfs'"> 80 <a id="kernel-config-index" name="kernel-config-index"/> 81 <xsl:call-template name="gentext"> 82 <xsl:with-param name="key">Kernel Configuration</xsl:with-param> 83 </xsl:call-template> 84 </xsl:when> 85 <xsl:otherwise> 86 <a id="scripts-index" name="scripts-index"/> 87 <xsl:call-template name="gentext"> 88 <xsl:with-param name="key">Scripts</xsl:with-param> 89 </xsl:call-template> 90 </xsl:otherwise> 91 </xsl:choose> 92 </xsl:when> 93 <xsl:when test="$divtitle = 'E'"> 94 <xsl:choose> 95 <xsl:when test="$book-type = 'blfs'"> 96 <a id="config-file-index" name="config-file-index"/> 97 <xsl:call-template name="gentext"> 98 <xsl:with-param name="key">Configuration Files</xsl:with-param> 99 </xsl:call-template> 100 </xsl:when> 101 <xsl:otherwise> 102 <a id="other-index" name="other-index"/> 103 <xsl:call-template name="gentext"> 104 <xsl:with-param name="key">Others</xsl:with-param> 105 </xsl:call-template> 106 </xsl:otherwise> 107 </xsl:choose> 108 </xsl:when> 109 <xsl:when test="$divtitle = 'F'"> 110 <a id="bootscript-index" name="bootscript-index"/> 64 111 <xsl:call-template name="gentext"> 65 <xsl:with-param name="key"> Packages</xsl:with-param>112 <xsl:with-param name="key">Bootscripts</xsl:with-param> 66 113 </xsl:call-template> 67 </xsl:when> 68 <xsl:when test="$divtitle = 'B'"> 69 <a id="program-index" name="program-index"/> 70 <xsl:call-template name="gentext"> 71 <xsl:with-param name="key">Programs</xsl:with-param> 72 </xsl:call-template> 73 </xsl:when> 74 <xsl:when test="$divtitle = 'C'"> 75 <a id="library-index" name="library-index"/> 76 <xsl:call-template name="gentext"> 77 <xsl:with-param name="key">Libraries</xsl:with-param> 78 </xsl:call-template> 79 </xsl:when> 80 <xsl:when test="$divtitle = 'D'"> 81 <xsl:choose> 82 <xsl:when test="$book-type = 'blfs'"> 83 <a id="kernel-config-index" name="kernel-config-index"/> 84 <xsl:call-template name="gentext"> 85 <xsl:with-param name="key">Kernel Configuration</xsl:with-param> 86 </xsl:call-template> 87 </xsl:when> 88 <xsl:otherwise> 89 <a id="scripts-index" name="scripts-index"/> 90 <xsl:call-template name="gentext"> 91 <xsl:with-param name="key">Scripts</xsl:with-param> 92 </xsl:call-template> 93 </xsl:otherwise> 94 </xsl:choose> 95 </xsl:when> 96 <xsl:when test="$divtitle = 'E'"> 97 <xsl:choose> 98 <xsl:when test="$book-type = 'blfs'"> 99 <a id="config-file-index" name="config-file-index"/> 100 <xsl:call-template name="gentext"> 101 <xsl:with-param name="key">Configuration Files</xsl:with-param> 102 </xsl:call-template> 103 </xsl:when> 104 <xsl:otherwise> 105 <a id="other-index" name="other-index"/> 106 <xsl:call-template name="gentext"> 107 <xsl:with-param name="key">Others</xsl:with-param> 108 </xsl:call-template> 109 </xsl:otherwise> 110 </xsl:choose> 111 </xsl:when> 112 <xsl:when test="$divtitle = 'F'"> 113 <a id="bootscript-index" name="bootscript-index"/> 114 <xsl:call-template name="gentext"> 115 <xsl:with-param name="key">Bootscripts</xsl:with-param> 116 </xsl:call-template> 117 </xsl:when> 118 <xsl:when test="$divtitle = 'G'"> 119 <a id="other-index" name="other-index"/> 120 <xsl:call-template name="gentext"> 121 <xsl:with-param name="key">Others</xsl:with-param> 122 </xsl:call-template> 123 </xsl:when> 124 <xsl:otherwise> 125 <xsl:value-of select="$divtitle"/> 126 </xsl:otherwise> 127 </xsl:choose> 128 </h2> 129 </xsl:if> 130 <ul> 131 <xsl:apply-templates select="key('letter', $key)[&scope;] [count(.|key('primary', &primary;)[&scope;][1])=1]" 132 mode="index-primary"> 133 <xsl:with-param name="scope" select="$scope"/> 134 <xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/> 135 </xsl:apply-templates> 136 </ul> 137 </div> 114 </xsl:when> 115 <xsl:when test="$divtitle = 'G'"> 116 <a id="other-index" name="other-index"/> 117 <xsl:call-template name="gentext"> 118 <xsl:with-param name="key">Others</xsl:with-param> 119 </xsl:call-template> 120 </xsl:when> 121 <xsl:otherwise> 122 <xsl:value-of select="$divtitle"/> 123 </xsl:otherwise> 124 </xsl:choose> 125 </h2> 126 </xsl:if> 127 <ul> 128 <xsl:apply-templates select="key('letter', $key)[&scope;] [count(.|key('primary', &primary;)[&scope;][1])=1]" 129 mode="index-primary"> 130 <xsl:with-param name="scope" select="$scope"/> 131 <xsl:sort select="translate(&primary;, &lowercase;, &uppercase;)"/> 132 </xsl:apply-templates> 133 </ul> 138 134 </xsl:if> 139 135 </xsl:template> … … 167 163 <xsl:text>: </xsl:text> 168 164 </strong> 169 < divclass='indexref'>165 <span class='indexref'> 170 166 <xsl:for-each select="$refs[generate-id() = generate-id(key('primary-section',concat($key, &sep;, §ion.id;))[&scope;][1])]"> 171 167 <xsl:apply-templates select="." mode="reference"> … … 173 169 </xsl:apply-templates> 174 170 </xsl:for-each> 175 </ div>171 </span> 176 172 <xsl:if test="$refs/secondary"> 177 173 <ul> … … 201 197 <xsl:text>: </xsl:text> 202 198 </strong> 203 < divclass='indexref'>199 <span class='indexref'> 204 200 <xsl:for-each select="$refs[generate-id() = generate-id(key('secondary-section', concat($key, &sep;, §ion.id;))[&scope;][1])]"> 205 201 <xsl:apply-templates select="." mode="reference"> … … 207 203 </xsl:apply-templates> 208 204 </xsl:for-each> 209 </ div>205 </span> 210 206 </li> 211 207 </xsl:template> branches/new-xsl/xhtml/lfs-mixed.xsl
r8139 r8165 245 245 </xsl:variable> 246 246 <xsl:variable name="contents"> 247 <div class="{name(.)}"> 248 <table summary="{$title}"> 249 <tr> 250 <th colspan="{$numcols}"> 251 <b> 252 <xsl:value-of select="$title"/> 253 </b> 254 </th> 255 </tr> 256 <xsl:apply-templates mode="titlepage.mode"> 257 <xsl:with-param name="numcols" select="$numcols"/> 258 </xsl:apply-templates> 259 </table> 260 </div> 247 <table summary="{$title}" class="{name(.)}"> 248 <tr> 249 <th colspan="{$numcols}"> 250 <b> 251 <xsl:value-of select="$title"/> 252 </b> 253 </th> 254 </tr> 255 <xsl:apply-templates mode="titlepage.mode"> 256 <xsl:with-param name="numcols" select="$numcols"/> 257 </xsl:apply-templates> 258 </table> 261 259 </xsl:variable> 262 260 <xsl:copy-of select="$contents"/> branches/new-xsl/xhtml/lfs-navigational.xsl
r8162 r8165 30 30 <xsl:if test="$home != ."> 31 31 <div class="navheader"> 32 <!-- Add common titles --> 33 <div class="headertitles"> 34 <!-- Book title and version --> 35 <h4> 36 <xsl:apply-templates select="$home" mode="object.title.markup"/> 37 <xsl:text> - </xsl:text> 38 <xsl:apply-templates select="$home" mode="object.subtitle.markup"/> 39 </h4> 40 <!-- Except for preface, part, and index, add the title of the parent --> 41 <xsl:if test="$up != $home"> 42 <h3> 43 <xsl:apply-templates select="$up" mode="object.title.markup"/> 44 </h3> 45 </xsl:if> 46 </div> 32 <!-- Book title and version --> 33 <h4> 34 <xsl:apply-templates select="$home" mode="object.title.markup"/> 35 <xsl:text> - </xsl:text> 36 <xsl:apply-templates select="$home" mode="object.subtitle.markup"/> 37 </h4> 38 <!-- Except for preface, part, and index, add the title of the parent --> 39 <xsl:if test="$up != $home"> 40 <h3> 41 <xsl:apply-templates select="$up" mode="object.title.markup"/> 42 </h3> 43 </xsl:if> 47 44 <!-- Create header navigational links --> 48 45 <xsl:call-template name="navigational.links"> branches/new-xsl/xhtml/lfs-titles.xsl
r8162 r8165 12 12 <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl --> 13 13 <xsl:template name="preface.titlepage"> 14 < div class="titlepage">14 <h1 class="{name(.)}"> 15 15 <xsl:if test="@id"> 16 16 <a id="{@id}" name="{@id}"/> 17 17 </xsl:if> 18 <h1 class="{name(.)}"> 19 <xsl:value-of select="title"/> 20 </h1> 21 </div> 18 <xsl:value-of select="title"/> 19 </h1> 22 20 </xsl:template> 23 21 … … 28 26 <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl --> 29 27 <xsl:template name="part.titlepage"> 30 < div class="titlepage">28 <h1 class="{name(.)}"> 31 29 <xsl:if test="@id"> 32 30 <a id="{@id}" name="{@id}"/> 33 31 </xsl:if> 34 <h1 class="{name(.)}"> 35 <xsl:if test="$section.autolabel != 0"> 36 <xsl:apply-templates select="." mode="label.markup"/> 37 <xsl:text>. </xsl:text> 38 </xsl:if> 39 <xsl:value-of select="title"/> 40 </h1> 41 </div> 32 <xsl:if test="$section.autolabel != 0"> 33 <xsl:apply-templates select="." mode="label.markup"/> 34 <xsl:text>. </xsl:text> 35 </xsl:if> 36 <xsl:value-of select="title"/> 37 </h1> 42 38 </xsl:template> 43 39 … … 47 43 <xsl:template name="partintro.titlepage"> 48 44 <xsl:if test="title"> 49 < div class="partintrotitle">45 <h2 class="{name(.)}"> 50 46 <xsl:if test="@id"> 51 47 <a id="{@id}" name="{@id}"/> 52 48 </xsl:if> 53 <h2 class="{name(.)}"> 54 <xsl:value-of select="title"/> 55 </h2> 56 </div> 49 <xsl:value-of select="title"/> 50 </h2> 57 51 </xsl:if> 58 52 </xsl:template> … … 64 58 <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl --> 65 59 <xsl:template name="appendix.titlepage"> 66 < div class="titlepage">60 <h1 class="{name(.)}"> 67 61 <xsl:if test="@id"> 68 62 <a id="{@id}" name="{@id}"/> 69 63 </xsl:if> 70 <h1 class="{name(.)}"> 71 <xsl:if test="$section.autolabel != 0"> 72 <xsl:apply-templates select="." mode="label.markup"/> 73 <xsl:text>. </xsl:text> 74 </xsl:if> 75 <xsl:value-of select="title"/> 76 </h1> 77 </div> 64 <xsl:if test="$section.autolabel != 0"> 65 <xsl:apply-templates select="." mode="label.markup"/> 66 <xsl:text>. </xsl:text> 67 </xsl:if> 68 <xsl:value-of select="title"/> 69 </h1> 78 70 </xsl:template> 79 71 … … 84 76 <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl --> 85 77 <xsl:template name="chapter.titlepage"> 86 < div class="titlepage">78 <h1 class="{name(.)}"> 87 79 <xsl:if test="@id"> 88 80 <a id="{@id}" name="{@id}"/> 89 81 </xsl:if> 90 <h1 class="{name(.)}"> 91 <xsl:if test="$section.autolabel != 0"> 92 <xsl:apply-templates select="." mode="label.markup"/> 93 <xsl:text>. </xsl:text> 94 </xsl:if> 95 <xsl:value-of select="title"/> 96 </h1> 97 </div> 82 <xsl:if test="$section.autolabel != 0"> 83 <xsl:apply-templates select="." mode="label.markup"/> 84 <xsl:text>. </xsl:text> 85 </xsl:if> 86 <xsl:value-of select="title"/> 87 </h1> 98 88 </xsl:template> 99 89 … … 102 92 <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl --> 103 93 <xsl:template name="sect1.titlepage"> 104 < div class="titlepage">94 <h1 class="{name(.)}"> 105 95 <xsl:if test="@id"> 106 96 <a id="{@id}" name="{@id}"/> 107 97 </xsl:if> 108 <h1 class="{name(.)}"> 109 <xsl:if test="$section.autolabel != 0"> 110 <xsl:apply-templates select="." mode="label.markup"/> 111 <xsl:text>. </xsl:text> 112 </xsl:if> 113 <xsl:value-of select="title"/> 114 </h1> 115 </div> 98 <xsl:if test="$section.autolabel != 0"> 99 <xsl:apply-templates select="." mode="label.markup"/> 100 <xsl:text>. </xsl:text> 101 </xsl:if> 102 <xsl:value-of select="title"/> 103 </h1> 116 104 </xsl:template> 117 105 … … 125 113 <xsl:when test="string-length(title) = 0"/> 126 114 <xsl:otherwise> 127 < div class="titlepage">115 <h2 class="{name(.)}"> 128 116 <xsl:if test="@id"> 129 117 <a id="{@id}" name="{@id}"/> 130 118 </xsl:if> 131 <h2 class="{name(.)}"> 132 <xsl:if test="not(ancestor::preface) and $section.autolabel != 0"> 133 <xsl:apply-templates select="." mode="label.markup"/> 134 <xsl:text>. </xsl:text> 135 </xsl:if> 136 <xsl:value-of select="title"/> 137 </h2> 138 </div> 119 <xsl:if test="not(ancestor::preface) and $section.autolabel != 0"> 120 <xsl:apply-templates select="." mode="label.markup"/> 121 <xsl:text>. </xsl:text> 122 </xsl:if> 123 <xsl:value-of select="title"/> 124 </h2> 139 125 </xsl:otherwise> 140 126 </xsl:choose> … … 145 131 <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl --> 146 132 <xsl:template name="sect3.titlepage"> 147 < div class="titlepage">133 <h3 class="{name(.)}"> 148 134 <xsl:if test="@id"> 149 135 <a id="{@id}" name="{@id}"/> 150 136 </xsl:if> 151 <h3 class="{name(.)}"> 152 <xsl:if test="$section.autolabel != 0"> 153 <xsl:apply-templates select="." mode="label.markup"/> 154 <xsl:text>. </xsl:text> 155 </xsl:if> 156 <xsl:value-of select="title"/> 157 </h3> 158 </div> 137 <xsl:if test="$section.autolabel != 0"> 138 <xsl:apply-templates select="." mode="label.markup"/> 139 <xsl:text>. </xsl:text> 140 </xsl:if> 141 <xsl:value-of select="title"/> 142 </h3> 159 143 </xsl:template> 160 144 … … 163 147 <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl --> 164 148 <xsl:template name="dedication.titlepage"> 165 <div class="titlepage"> 166 <h2 class="{name(.)}"> 167 <xsl:value-of select="title"/> 168 </h2> 169 </div> 149 <h2> 150 <xsl:value-of select="title"/> 151 </h2> 170 152 </xsl:template> 171 153
