nochunks.xsl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. <?xml version='1.0' encoding='ISO-8859-1'?>
  2. <!--
  3. $LastChangedBy$
  4. $Date$
  5. -->
  6. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  7. xmlns="http://www.w3.org/1999/xhtml"
  8. version="1.0">
  9. <!-- Stylesheet for non-chunked XHTML output
  10. Replaces {docbook-xsl}/xhtml/profile-docbook.xsl -->
  11. <!-- Upstream XHTML templates -->
  12. <xsl:import href="docbook-xsl-snapshot/xhtml/docbook.xsl"/>
  13. <!-- Fix encoding issues with default UTF-8 output of the xhtml stylesheet -->
  14. <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
  15. <!-- Including our others customized templates -->
  16. <xsl:include href="common.xsl"/>
  17. <xsl:include href="xhtml/lfs-index.xsl"/>
  18. <xsl:include href="xhtml/lfs-mixed.xsl"/>
  19. <xsl:include href="xhtml/lfs-sections.xsl"/>
  20. <xsl:include href="xhtml/lfs-toc.xsl"/>
  21. <xsl:include href="xhtml/lfs-xref.xsl"/>
  22. <!-- Control generation of ToCs and LoTs -->
  23. <xsl:param name="generate.toc">
  24. book toc,title
  25. preface nop
  26. part nop
  27. chapter nop
  28. appendix nop
  29. sect1 nop
  30. sect2 nop
  31. sect3 nop
  32. sect4 nop
  33. sect5 nop
  34. section nop
  35. </xsl:param>
  36. <!-- How deep should recursive sections appear in the TOC? -->
  37. <xsl:param name="toc.section.depth">1</xsl:param>
  38. <!-- How maximaly deep should be each TOC? -->
  39. <xsl:param name="toc.max.depth">3</xsl:param>
  40. <!-- Dropping some unwanted style attributes -->
  41. <xsl:param name="ulink.target" select="''"></xsl:param>
  42. <xsl:param name="css.decoration" select="0"></xsl:param>
  43. <!-- Don't use graphics in admonitions -->
  44. <xsl:param name="admon.graphics" select="0"/>
  45. <!-- Changing the admonitions output tagging:
  46. Removed $admon.style support
  47. Hardcoded $admon.textlabel feature -->
  48. <!-- The original template is in {docbook-xsl}/xhtml/admon.xsl -->
  49. <xsl:template name="nongraphical.admonition">
  50. <div class="admon {name(.)}">
  51. <h3>
  52. <xsl:apply-templates select="." mode="object.title.markup"/>
  53. </h3>
  54. <xsl:apply-templates/>
  55. </div>
  56. </xsl:template>
  57. <!-- sect2.titlepage:
  58. Removed a lot of unneeded code.
  59. Skip empty titles.
  60. No label in preface (actualy, skip the hardcoded dot). -->
  61. <!-- The original template is in {docbook-xsl}/xhtml/titlepage.templates.xsl -->
  62. <xsl:template name="sect2.titlepage">
  63. <xsl:choose>
  64. <xsl:when test="string-length(title) = 0"/>
  65. <xsl:otherwise>
  66. <h3 class="{name(.)}">
  67. <xsl:if test="@id">
  68. <a id="{@id}" name="{@id}"/>
  69. </xsl:if>
  70. <xsl:if test="not(ancestor::preface) and $section.autolabel != 0">
  71. <xsl:apply-templates select="." mode="label.markup"/>
  72. <xsl:text>. </xsl:text>
  73. </xsl:if>
  74. <xsl:value-of select="title"/>
  75. </h3>
  76. </xsl:otherwise>
  77. </xsl:choose>
  78. </xsl:template>
  79. <!-- The CSS Stylesheet:
  80. Note: there is some diferences with lfs.css code releated
  81. to h* values, admonitions and no navigational code. -->
  82. <!-- The original template is in {docbook-xsl}/xhtml/docbook.xsl -->
  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: #222;
  92. margin: 1em;
  93. padding: 0;
  94. font-size: 1em;
  95. line-height: 1.2em
  96. }
  97. /* Links */
  98. a:link { color: #22b; }
  99. a.ulink:link { font-weight: bold; color: #55f; }
  100. a:visited { color: #7e4988 ! important; }
  101. a:hover, a:focus { color: #d30e08 ! important; }
  102. a:active { color: #6b77b1 ! important;}
  103. /* Book titlepage */
  104. .book {
  105. margin: 0px auto;
  106. padding: 0 1em;
  107. }
  108. .book h1, .book .authorgroup, .book .copyright, .book .legalnotice .revhistory {
  109. background: #f5f6f7;
  110. margin: 0px auto;
  111. padding: .1em 1em;
  112. }
  113. .book hr {
  114. background: #dbddec;
  115. height: .3em;
  116. border: 0px;
  117. margin: 0;
  118. padding: 0;
  119. }
  120. div.dedication {
  121. padding-left: 1em;
  122. }
  123. /* Sections */
  124. div.sect1, div.appendix {
  125. padding-left: .3em;
  126. }
  127. .package, .kernel, .installation, .commands, .testing, .configuration, .content {
  128. padding: 0 .5em .2em 0;
  129. margin: 0;
  130. }
  131. .lfs .package {
  132. background: #f5f6f7;
  133. border-bottom: 0.2em solid #dbddec;
  134. padding-top: .1em;
  135. margin-top: 0;
  136. }
  137. .lfs .configuration {
  138. background: #fefefe;
  139. border-top: 0.2em solid #dbddec;
  140. }
  141. .lfs .content {
  142. background: #f5f6f7;
  143. border-top: 0.2em solid #dbddec;
  144. border-bottom: 0.2em solid #dbddec;
  145. padding-bottom: .1em;
  146. margin-bottom: 0;
  147. }
  148. /* Headers */
  149. h1, h2, h3, h4, h5, h6, b, .strong {
  150. color: #000;
  151. font-weight: bold;
  152. line-height: 1em;
  153. }
  154. h1 {
  155. font-size: 173%;
  156. text-align: center;
  157. }
  158. .book h1 {
  159. margin: 0;
  160. padding: 0.4em;
  161. }
  162. h1.title sup {
  163. font-size: small;
  164. }
  165. h2 {
  166. font-size: 144%;
  167. }
  168. .preface h2, .part h1, .chapter h2, .appendix h2, .index h1, .sect1 h2 {
  169. background: #f5f6f7;
  170. border-top: .2em solid #dbddec;
  171. border-bottom: .2em solid #dbddec;
  172. margin-bottom: 1em;
  173. margin-top: 1em;
  174. padding: .4em;
  175. text-align: center;
  176. }
  177. .sect1 h2, .appendix h2 {
  178. margin-left: -.2em;
  179. }
  180. .wrap h2 {
  181. background: #f5f6f7;
  182. border-bottom: 0;
  183. margin-top: 1em;
  184. margin-bottom: 0;
  185. padding-top: .4em;
  186. }
  187. .book h2.subtitle {
  188. text-align: center;
  189. background: #dbddec;
  190. margin: 0;
  191. padding: 0.2em;
  192. }
  193. h3 {
  194. font-size: 120%;
  195. }
  196. .appendix h3 {
  197. font-size: 133%;
  198. margin-top: .8em;
  199. margin-bottom: 0.2em;
  200. }
  201. h4 {
  202. font-size: 110%;
  203. }
  204. .package h4, h5, h6 {
  205. font-size: 100%;
  206. font-style: italic;
  207. }
  208. /* TOC */
  209. div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
  210. list-style: none;
  211. }
  212. div.toc {
  213. padding-left: 1em;
  214. }
  215. li.preface, .part li.appendix {
  216. margin-left: 1em;
  217. }
  218. div.toc h3 {
  219. margin: 1em 0 .3em 0;
  220. }
  221. li.appendix h3, li.glossary h3, li.index h3 {
  222. margin: .5em
  223. }
  224. div.toc h4 {
  225. margin: .6em 0 .2em 0;
  226. }
  227. li.chapter h4 a {
  228. display: block;
  229. margin-bottom: .4em
  230. }
  231. .dummy {
  232. display: block;
  233. font-weight: bold;
  234. font-size: 110%;
  235. margin: .6em 0 .2em 0;
  236. }
  237. /* Index */
  238. .item {
  239. float: left;
  240. margin-right: 1em
  241. }
  242. .secitem {
  243. font-weight: normal;
  244. float: left;
  245. margin-right: 1em
  246. }
  247. .indexref {
  248. display: block;
  249. }
  250. .item + .indexref {
  251. margin-left: 20em;
  252. }
  253. .secitem + .indexref {
  254. margin-left: 19em;
  255. }
  256. /* Admonitions */
  257. div.admon h3 {
  258. padding-left: 2.5em;
  259. padding-top: 1em;
  260. }
  261. div.admon p {
  262. margin-left: .5em;
  263. }
  264. div.admon pre {
  265. margin: 0.5em 3em;
  266. }
  267. div.note, div.tip {
  268. background-color: #fffff6;
  269. border: 2px solid #dbddec;
  270. width: 90%;
  271. margin: .5em auto;
  272. }
  273. div.important, div.warning, div.caution {
  274. background-color: #fffff6;
  275. border: medium solid #400;
  276. width: 90%;
  277. margin: .5em auto;
  278. color: #600;
  279. }
  280. div.important h3, div.warning h3, div.caution h3 {
  281. color: #900;
  282. }
  283. div.important em, div.warning em, div.caution em {
  284. color: #000;
  285. font-weight: bold;
  286. }
  287. /* table */
  288. .table p.title {
  289. text-align: center;
  290. margin-top: 0;
  291. margin-bottom: .3em;
  292. }
  293. .table table {
  294. margin-left: auto;
  295. margin-right: auto;
  296. }
  297. .table table th, .table table td {
  298. padding: 0.2em 2em 0.2em 2em;
  299. text-align: left;
  300. }
  301. .revhistory {
  302. padding-left: 1em;
  303. }
  304. .revhistory th {
  305. line-height: 2em;
  306. text-align: left;
  307. }
  308. .revhistory td {
  309. padding-right: 1em;
  310. }
  311. /* variablelist as table */
  312. .variablelist table {
  313. width: auto;
  314. margin: 0 1em 0 1em;
  315. }
  316. .variablelist td {
  317. vertical-align: top;
  318. }
  319. .variablelist td span, td p {
  320. margin: 0.25em;
  321. }
  322. .variablelist td p {
  323. margin-top: 0;
  324. }
  325. /* variablelist as list */
  326. dl {
  327. padding-left: 1em
  328. }
  329. dt {
  330. font-weight: bold;
  331. margin-left: 1em;
  332. }
  333. dd {
  334. margin-bottom: .6em;
  335. margin-left: 1em;
  336. }
  337. dd p {
  338. margin-top: 0;
  339. margin-bottom: 0;
  340. padding-top: 0;
  341. padding-bottom: 0;
  342. }
  343. div.materials dt {
  344. display: list-item;
  345. }
  346. div.materials dd {
  347. margin-left: 0;
  348. padding-left: 0;
  349. }
  350. /* segmentedlist */
  351. .appendix .segmentedlist {
  352. padding-left: 1em;
  353. }
  354. .package .seg {
  355. margin-bottom: 0em;
  356. margin-top: 0em;
  357. clear: left;
  358. }
  359. .content .seg {
  360. margin-bottom: .4em;
  361. margin-top: .4em;
  362. clear: left;
  363. }
  364. .segtitle {
  365. float: left;
  366. }
  367. .package .segbody, .appendix .segbody {
  368. display: block;
  369. padding-left: 14em;
  370. }
  371. .content .segbody {
  372. display: block;
  373. padding-left: 12em;
  374. }
  375. /* itemizedlist */
  376. ul {
  377. padding-left: 1em
  378. }
  379. .itemizedlist ul {
  380. margin-left: 1em
  381. }
  382. .itemizedlist li ul {
  383. margin-bottom: 1.2em;
  384. }
  385. .itemizedlist li ul li p {
  386. margin-top: .5em;
  387. margin-bottom: .5em;
  388. }
  389. .itemizedlist li ul li:first-child p:first-child {
  390. margin-top: -.6em;
  391. }
  392. ul.compact {
  393. list-style: none;
  394. }
  395. .blfs ul.compact {
  396. list-style: disc;
  397. }
  398. ul.compact li {
  399. margin: 0em;
  400. padding: 0em;
  401. }
  402. ul.compact li p {
  403. padding: 0.3em;
  404. margin: 0em;
  405. }
  406. .blfs ul.compact li p {
  407. background-color: #f0fff0;
  408. }
  409. /* orderedlist */
  410. ol {
  411. list-style: decimal;
  412. }
  413. ol ol {
  414. list-style: lower-alpha;
  415. }
  416. ol ol ol {
  417. list-style: lower-roman;
  418. }
  419. ol.compact li {
  420. margin: 0em;
  421. padding: 0em;
  422. }
  423. ol.compact li p {
  424. padding: 0.3em;
  425. margin: 0em;
  426. }
  427. /* Indented blocks */
  428. p, blockquote {
  429. padding-left: 1em;
  430. padding-right: 1em;
  431. }
  432. /* Monospaced elements */
  433. tt, code, kbd, pre, .command {
  434. font-family: monospace;
  435. }
  436. .systemitem {
  437. font-style: italic;
  438. }
  439. pre {
  440. background-color: #e5e5e5;
  441. border: 1px solid #050505;
  442. padding: .5em 1em;
  443. margin: 0 2em .5em 2em;
  444. font-weight: bold;
  445. }
  446. pre.userinput {
  447. color: #101310;
  448. }
  449. pre.root {
  450. color: #101310;
  451. border: 1px solid #11a;
  452. }
  453. pre.screen {
  454. color: #000;
  455. background-color: #e9e9e9;
  456. font-weight: normal;
  457. }
  458. .literal, .prompt {
  459. font-weight: normal;
  460. }
  461. /* Mixed tags */
  462. p.usernotes {
  463. margin-left: -1em;
  464. font-size: small;
  465. font-weight: bold;
  466. font-style: italic;
  467. }
  468. .underlined {
  469. text-decoration: underline;
  470. }
  471. /* Last edited info */
  472. p.updated {
  473. font-size: small;
  474. font-weight: bold;
  475. font-style: italic;
  476. }
  477. /* Special colored blocks */
  478. /* OrangeRed4 */
  479. .feature-ssp {
  480. color: #8B2500;
  481. }
  482. /* RoyalBlue3 */
  483. .feature-aslr {
  484. color: #3A5FCD;
  485. }
  486. /* NavyBlue */
  487. .feature-pax {
  488. color: #000080;
  489. }
  490. /* VioletRed */
  491. .feature-hardened_tmp {
  492. color: #d02090;
  493. }
  494. /* PaleTurquoise4 */
  495. .feature-warnings {
  496. color: #668b8b;
  497. }
  498. /* RosyBrown */
  499. .feature-misc {
  500. color: #bc8f8f;
  501. }
  502. /* Sienna*/
  503. .feature-blowfish {
  504. color: #8E6B23
  505. }
  506. </xsl:text>
  507. </style>
  508. </xsl:template>
  509. </xsl:stylesheet>