chapter.xsl coverage = 9/26 (34.62%)

 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
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>

<!--############################################################################
    XSLT Stylesheet DocBook -> LaTeX 
    ############################################################################ -->


<xsl:template match="chapter">
  <xsl:text>&#10;</xsl:text>
  <xsl:text>% ------- &#10;</xsl:text>
  <xsl:text>% Chapter &#10;</xsl:text>
  <xsl:text>% ------- &#10;</xsl:text>
  <xsl:apply-templates select="." mode="endnotes"/>
  <xsl:call-template name="mapheading"/>
  <xsl:apply-templates/>
</xsl:template>

<!-- An empty label specifies an unnumbered chapter -->
<xsl:template match="chapter[@label and @label='']">
  <xsl:text>&#10;</xsl:text>
  <xsl:text>% ------------------ &#10;</xsl:text>
  <xsl:text>% Unnumbered Chapter &#10;</xsl:text>
  <xsl:text>% ------------------ &#10;</xsl:text>
  <xsl:call-template name="section.unnumbered">
    <xsl:with-param name="tocdepth" select="$toc.section.depth + 1"/>
    <xsl:with-param name="level" select="0"/>
  </xsl:call-template>
</xsl:template>

<xsl:template match="chapter/title"/>
<xsl:template match="chapter/titleabbrev"/>
<xsl:template match="chapter/subtitle"/>
<xsl:template match="chapterinfo/pubdate"/>
<xsl:template match="chapter/docinfo|chapterinfo">
  <xsl:apply-templates/>
</xsl:template>

</xsl:stylesheet>