File: chapter.xsl

package info (click to toggle)
dblatex 0.3.12py3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 12,684 kB
  • sloc: xml: 102,889; python: 8,259; makefile: 119; sh: 48
file content (40 lines) | stat: -rw-r--r-- 1,392 bytes parent folder | download | duplicates (6)
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
<?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>