Debian Codegraph @

xsl/chapter.xsl

raw
1 <?xml version='1.0'?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
3
4 <!--############################################################################
5 XSLT Stylesheet DocBook -> LaTeX
6 ############################################################################ -->
7
8
9 <xsl:template match="chapter">
10 <xsl:text>&#10;</xsl:text>
11 <xsl:text>% ------- &#10;</xsl:text>
12 <xsl:text>% Chapter &#10;</xsl:text>
13 <xsl:text>% ------- &#10;</xsl:text>
14 <xsl:apply-templates select="." mode="endnotes"/>
15 <xsl:call-template name="mapheading"/>
16 <xsl:apply-templates/>
17 </xsl:template>
18
19 <!-- An empty label specifies an unnumbered chapter -->
20 <xsl:template match="chapter[@label and @label='']">
21 <xsl:text>&#10;</xsl:text>
22 <xsl:text>% ------------------ &#10;</xsl:text>
23 <xsl:text>% Unnumbered Chapter &#10;</xsl:text>
24 <xsl:text>% ------------------ &#10;</xsl:text>
25 <xsl:call-template name="section.unnumbered">
26 <xsl:with-param name="tocdepth" select="$toc.section.depth + 1"/>
27 <xsl:with-param name="level" select="0"/>
28 </xsl:call-template>
29 </xsl:template>
30
31 <xsl:template match="chapter/title"/>
32 <xsl:template match="chapter/titleabbrev"/>
33 <xsl:template match="chapter/subtitle"/>
34 <xsl:template match="chapterinfo/pubdate"/>
35 <xsl:template match="chapter/docinfo|chapterinfo">
36 <xsl:apply-templates/>
37 </xsl:template>
38
39 </xsl:stylesheet>
40