lfs-nochunks.xsl 6.3 KB

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