Changeset b3a7074
- Timestamp:
- 07/05/2007 10:31:18 PM (17 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 0e6d3c0
- Parents:
- 3a1e4220
- Location:
- stylesheets
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stylesheets/lfs-chunked.xsl
r3a1e4220 rb3a7074 1 1 <?xml version='1.0' encoding='ISO-8859-1'?> 2 3 <!-- 4 $LastChangedBy: manuel $ 5 $Date: 2007-05-19 20:43:37 +0200 (sáb, 19 may 2007) $ 6 --> 2 7 3 8 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" … … 5 10 version="1.0"> 6 11 7 <xsl:import href="lfs-chunked2.xsl"/> 8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.69.1/xhtml/chunk-common.xsl"/> 9 <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.69.1/xhtml/manifest.xsl"/> 12 <!-- LFS top-level chunk templates. --> 13 <xsl:import href="lfs-xsl/chunkfast.xsl"/> 10 14 11 <!-- From the original chunk.xsl file: 12 13 Why is chunk-code now xsl:included? 14 15 Suppose you want to customize *both* the chunking algorithm used *and* the 16 presentation of some elements that may be chunks. In order to do that, you 17 must get the order of imports "just right". The answer is to make your own 18 copy of this file, where you replace the initial import of "docbook.xsl" 19 with an import of your own base.xsl (that does its own import of docbook.xsl). 20 21 Put the templates for changing the presentation of elements in your base.xsl. 22 23 Put the templates that control chunking after the include of chunk-code.xsl. 24 25 Voila! (Man I hope we can do this better in XSLT 2.0) --> 26 27 <xsl:include href="http://docbook.sourceforge.net/release/xsl/1.69.1/xhtml/profile-chunk-code.xsl"/> 28 29 <!-- Including our others customized chunks templates --> 30 <xsl:include href="xhtml/lfs-legalnotice.xsl"/> 31 <xsl:include href="xhtml/lfs-index.xsl"/> 32 <xsl:include href="xhtml/lfs-navigational.xsl"/> 15 <!-- The LFS book type to be processed (lfs, blfs, clfs, or hlfs) --> 16 <xsl:param name="book-type">lfs</xsl:param> 33 17 34 18 </xsl:stylesheet> -
stylesheets/lfs-nochunks.xsl
r3a1e4220 rb3a7074 1 1 <?xml version='1.0' encoding='ISO-8859-1'?> 2 3 <!-- 4 $LastChangedBy: manuel $ 5 $Date: 2007-06-12 20:18:51 +0200 (mar, 12 jun 2007) $ 6 --> 2 7 3 8 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" … … 5 10 version="1.0"> 6 11 7 <!-- We use XHTML-->8 <xsl:import href=" http://docbook.sourceforge.net/release/xsl/1.69.1/xhtml/profile-docbook.xsl"/>12 <!-- LFS top-level no-chunk templates. --> 13 <xsl:import href="lfs-xsl/nochunks.xsl"/> 9 14 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-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) --> 21 <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/> 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 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 44 <!-- To drop the remainig dot when title is empty (from lfs-titles.xsl)--> 45 <xsl:template name="sect2.titlepage"> 46 <xsl:choose> 47 <xsl:when test="string-length(title) = 0"/> 48 <xsl:otherwise> 49 <div class="titlepage"> 50 <xsl:if test="@id"> 51 <a id="{@id}" name="{@id}"/> 52 </xsl:if> 53 <h3 class="{name(.)}"> 54 <xsl:apply-templates select="." mode="label.markup"/> 55 <xsl:text>. </xsl:text> 56 <xsl:value-of select="title"/> 57 </h3> 58 </div> 59 </xsl:otherwise> 60 </xsl:choose> 61 </xsl:template> 62 63 <!-- Added the role param for proper punctuation in xref calls 64 (from lfs-titles.xsl). --> 65 <xsl:template match="*" mode="insert.title.markup"> 66 <xsl:param name="purpose"/> 67 <xsl:param name="xrefstyle"/> 68 <xsl:param name="title"/> 69 <xsl:param name="role"/> 70 <xsl:choose> 71 <xsl:when test="$purpose = 'xref' and titleabbrev"> 72 <xsl:apply-templates select="." mode="titleabbrev.markup"/> 73 </xsl:when> 74 <xsl:otherwise> 75 <xsl:copy-of select="$title"/> 76 <xsl:value-of select="$role"/> 77 </xsl:otherwise> 78 </xsl:choose> 79 </xsl:template> 80 81 <!-- The CSS Stylesheet --> 82 <xsl:template name='user.head.content'> 83 <style type="text/css"> 84 <xsl:text> 85 /* Global settings */ 86 body { 87 font-family: sans-serif; 88 text-align: left; 89 background: #fff; 90 color: #333; 91 margin: 1em; 92 padding: 0; 93 font-size: 1em; 94 line-height: 1.2em 95 } 96 97 a:link { color: #22b; } 98 a:visited { color: #7e4988; } 99 a:hover, a:focus { color: #d30e08; } 100 a:active { color: #6b77b1;} 101 102 /* Headers */ 103 h1, h2, b, strong { 104 color: #000; 105 font-weight: bold; 106 } 107 108 h3, h4, h5, h6 { 109 color: #222; 110 } 111 112 h1 { font-size: 173%; text-align: center; } 113 h2 { font-size: 144%; } 114 h2.subtitle { text-align: center; } 115 h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; } 116 h4 { font-size: 110%;} 117 h5, h6 { font-size: 110%; font-style: italic; } 118 119 /* TOC and Index*/ 120 121 div.toc ul, div.index ul, div.navheader ul, div.navfooter ul { 122 list-style: none; 123 } 124 125 div.toc, div.dedication { 126 padding-left: 1em; 127 } 128 129 li.preface { 130 margin-left: 1em; 131 } 132 133 div.toc ul li h3, div.toc ul li h4 { 134 margin: .4em; 135 } 136 137 .item { 138 width: 15em; 139 float: left; 140 } 141 142 .secitem { 143 font-weight: normal; 144 width: 14em; 145 float: left; 146 } 147 148 /* Admonitions */ 149 div.note, div.tip { 150 background-color: #fffff6; 151 border: 2px solid #dbddec; 152 width: 90%; 153 margin: .5em auto; 154 } 155 156 div.important, div.warning, div.caution { 157 background-color: #fffff6; 158 border: medium solid #400; 159 width: 90%; 160 margin: 1.5em auto; 161 color: #600; 162 font-size: larger; 163 } 164 165 div.important h3, div.warning h3, div.caution h3 { 166 color: #900; 167 } 168 169 h3.admontitle { 170 padding-left: 2.5em; 171 padding-top: 1em; 172 } 173 174 div.admonbody { 175 margin: .5em; 176 } 177 178 div.important em, div.warning em, div.caution em { 179 color: #000; 180 font-weight: bold; 181 } 182 183 div.important tt, div.warning tt, div.caution tt { 184 font-weight: bold; 185 } 186 187 /* variablelist and segmentedlist */ 188 dl { 189 margin: 0; 190 padding: 0; 191 } 192 193 dt { 194 display: list-item; 195 font-weight: bold; 196 margin: .33em 0 0 1em; 197 padding: 0; 198 } 199 200 div.content dt { 201 list-style: none; 202 } 203 204 dd { 205 margin: 0 0 1em 3em; 206 padding: 0; 207 } 208 209 div.variablelist dd { 210 margin-bottom: 1em; 211 } 212 213 div.variablelist dd p { 214 margin-top: 0px; 215 } 216 217 dl.materials dd { 218 margin-left: 0px; 219 } 220 221 div.segmentedlist { 222 margin-top: 1em; 223 } 224 225 div.segmentedlist p { 226 margin: 0px auto; 227 } 228 229 /* itemizedlist */ 230 231 div.itemizedlist { 232 margin-left: 1em; 233 } 234 235 /* Indented blocks */ 236 p, ul, dl, code, blockquote { 237 padding-left: 1em; 238 } 239 240 /* Monospaced elements */ 241 tt, code, kbd, pre, .command { 242 font-family: monospace; 243 } 244 245 pre.userinput { 246 color: #101310; 247 background-color: #e5e5e5; 248 border: 1px solid #050505; 249 padding: .5em 1em; 250 margin: 0 2em; 251 font-weight: bold; 252 } 253 254 pre.screen { 255 background-color: #e9e9e9; 256 border: 1px solid #050505; 257 padding: .5em 1em; 258 margin: 0 2em; 259 } 260 261 /* Sections */ 262 div.package { 263 background: #f5f6f7; 264 border-bottom: 0.2em solid #dbddec; 265 padding: 0.5em 0.5em 0.3em 0.5em; 266 margin: 0px auto; 267 } 268 269 div.installation { 270 padding: 0 0.5em 0.3em 0.5em; 271 margin: 0.5em 0 0.5em 0; 272 } 273 274 div.configuration { 275 background: #fefefe; 276 border-top: 0.2em solid #dbddec; 277 padding: 0.5em; 278 margin: 0.5em 0 .5em 0; 279 } 280 281 div.content { 282 background: #f5f6f7; 283 border-top: 0.2em solid #dbddec; 284 border-bottom: 0.2em solid #dbddec; 285 padding: 0.5em 0.5em 1em 0.5em; 286 margin: 0.5em 0 .5em 0; 287 } 288 289 div.installation h3.title, div.content h3.title { 290 padding-top: 0.3em; 291 margin: 0; 292 } 293 294 div.book, div.preface, div.part, div.chapter, div.sect1, div.index { 295 padding-bottom: 0.5em; 296 } 297 298 div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.index h1 { 299 background: #f5f6f7; 300 border-bottom: .2em solid #dbddec; 301 border-top: .2em solid #dbddec; 302 margin-top 1em; 303 padding: .5em; 304 text-align: center; 305 } 306 307 div.book h1 { 308 background: #f5f6f7; 309 margin: 0px auto; 310 padding: 0.5em; 311 } 312 313 div.book h2.subtitle { 314 background: #dbddec; 315 margin: 0px auto; 316 padding: 0.2em; 317 } 318 div.authorgroup, div p.copyright, div.abstract { 319 background: #f5f6f7; 320 margin: 0px auto; 321 padding: 1em 0.5em; 322 } 323 324 hr { 325 background: #dbddec; 326 height: .3em; 327 border: 0px; 328 margin: 0px auto; 329 padding: 0; 330 } 331 </xsl:text> 332 </style> 333 </xsl:template> 15 <!-- The LFS book type to be processed (lfs, blfs, clfs, or hlfs) --> 16 <xsl:param name="book-type">lfs</xsl:param> 334 17 335 18 </xsl:stylesheet> -
stylesheets/lfs-pdf.xsl
r3a1e4220 rb3a7074 1 1 <?xml version='1.0' encoding='ISO-8859-1'?> 2 2 3 <!-- 4 $LastChangedBy: manuel $ 5 $Date: 2007-05-19 20:43:37 +0200 (sáb, 19 may 2007) $ 6 --> 7 3 8 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 xmlns :fo="http://www.w3.org/1999/XSL/Format"9 xmlns="http://www.w3.org/1999/xhtml" 5 10 version="1.0"> 6 <!-- We use FO and FOP as the processor -->7 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.69.1/fo/docbook.xsl"/>8 <xsl:param name="fop.extensions" select="1"/>9 <xsl:param name="draft.mode" select="'no'"/>10 11 11 <!-- Including our others customized templates --> 12 <xsl:include href="pdf/lfs-index.xsl"/> 13 <xsl:include href="pdf/lfs-pagesetup.xsl"/> 14 <xsl:include href="pdf/lfs-sections.xsl"/> 15 <xsl:include href="pdf/lfs-admon.xsl"/> 16 <xsl:include href="pdf/lfs-mixed.xsl"/> 17 <xsl:include href="pdf/lfs-xref.xsl"/> 12 <!-- LFS top-level pdf templates. --> 13 <xsl:import href="lfs-xsl/pdf.xsl"/> 18 14 19 <!-- This file contains our localization strings (for internationalization) --> 20 <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/> 21 22 <!-- Standart paper size --> 23 <xsl:param name="paper.type" select="'letter'"/> 24 25 <!-- Paper size required by the publisher 26 <xsl:param name="paper.type" select="'Customized'"/> 27 <xsl:param name="page.width">7.25in</xsl:param> 28 <xsl:param name="page.height">9.25in</xsl:param> 29 --> 30 31 <!-- Printing Style --> 32 <!-- Change "double.sided" to "1" for published versions --> 33 <xsl:param name="double.sided" select="0"/> 34 <xsl:param name="hyphenate">false</xsl:param> 35 <xsl:param name="alignment">justify</xsl:param> 36 37 <!-- Font size --> 38 <xsl:param name="body.font.master">9</xsl:param> 39 <xsl:param name="body.font.size">12pt</xsl:param> 40 41 <!-- TOC stuff --> 42 <xsl:param name="generate.toc"> 43 book toc 44 part nop 45 </xsl:param> 46 <xsl:param name="toc.section.depth">1</xsl:param> 47 <xsl:param name="generate.section.toc.level" select="-1"></xsl:param> 48 <xsl:param name="toc.indent.width" select="18"></xsl:param> 49 50 <!-- Page number in Xref ?--> 51 <xsl:param name="insert.xref.page.number">no</xsl:param> 52 53 <!-- Prevent duplicate e-mails in the Acknowledgments pages--> 54 <xsl:param name="ulink.show" select="0"/> 15 <!-- The LFS book type to be processed (lfs, blfs, clfs, or hlfs) --> 16 <xsl:param name="book-type">lfs</xsl:param> 55 17 56 18 </xsl:stylesheet>
Note:
See TracChangeset
for help on using the changeset viewer.