aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/lfs-xsl/chunk-slave.xsl
blob: 42147525494b6bbfd50a5475a0737aca41deabef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?xml version='1.0' encoding='ISO-8859-1'?>

<!--
$LastChangedBy$
$Date$
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://www.w3.org/1999/xhtml"
                version="1.0">

  <!-- Second level chunked output template.
       Sets global params and include customized elements templates. -->

  <!-- Upstream XHTML presentation templates -->
  <xsl:import href="docbook-xsl-1.78.1/xhtml/docbook.xsl"/>

  <!-- Use ISO-8859-1 for output instead of default UTF-8 -->
  <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/>

  <!-- Including our customized elements templates -->
  <xsl:include href="common.xsl"/>
  <xsl:include href="xhtml/lfs-admon.xsl"/>
  <xsl:include href="xhtml/lfs-mixed.xsl"/>
  <xsl:include href="xhtml/lfs-sections.xsl"/>
  <xsl:include href="xhtml/lfs-titles.xsl"/>
  <xsl:include href="xhtml/lfs-toc.xsl"/>
  <xsl:include href="xhtml/lfs-xref.xsl"/>

  <xsl:param name="html.stylesheet" select="'stylesheets/lfs.css'"/>
  <!-- Print CSS Stylesheet -->
  <!-- The original template is in {docbook-xsl}/xhtml/docbook.xsl -->
  <xsl:template name='user.head.content'>
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  </xsl:template>

  <!-- Drop some unwanted style attributes -->
  <xsl:param name="ulink.target" select="''"/>
  <xsl:param name="css.decoration" select="0"/>

  <!-- No XML declaration -->
  <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>

  <!-- Control generation of ToCs and LoTs -->
  <xsl:param name="generate.toc">
    book      toc,title
    preface   toc
    part      toc
    chapter   toc
    appendix  nop
    sect1     nop
    sect2     nop
    sect3     nop
    sect4     nop
    sect5     nop
    section   nop
  </xsl:param>

  <!-- How deep should recursive sections appear in the TOC? -->
  <xsl:param name="toc.section.depth">1</xsl:param>

  <!-- How deep, at most, should each TOC be? -->
  <xsl:param name="toc.max.depth">3</xsl:param>

</xsl:stylesheet>