2 <!--#############################################################################
3 |- #############################################################################
6 + ############################################################################## -->
9 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
10 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
11 exclude-result-prefixes="doc" version='1.0'>
14 <!--############################################################################# -->
15 <!-- DOCUMENTATION -->
16 <doc:reference id="part-chap-app" xmlns="">
18 <releaseinfo role="meta">
21 <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
22 <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
25 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
26 <holder>Ramon Casellas</holder>
29 <title>Parts, Chapters and Appendixes <filename>part-chap-app.mod.xsl</filename></title>
31 <section><title>Introduction</title>
36 <!--############################################################################# -->
41 <xsl:template match="part">
42 <xsl:call-template name="map.begin"/>
43 <xsl:apply-templates/>
46 <xsl:template match="part/docinfo"/>
47 <xsl:template match="part/title"/>
48 <xsl:template match="part/subtitle"/>
49 <xsl:template match="partintro"/>
50 <xsl:template match="partintro/title"/>
51 <xsl:template match="partintro/subtitle"/>
52 <xsl:template match="partintro/titleabbrev"/>
55 <!--#############################################################################
56 |- #############################################################################
59 + ############################################################################## -->
62 <!--############################################################################# -->
63 <!-- DOCUMENTATION -->
64 <doc:template match="chapter" xmlns="">
65 <refpurpose> XSL template for Chapters.</refpurpose>
67 <para> This is the main entry point for a <sgmltag class="start">chapter</sgmltag> subtree.
68 This template processes any chapter. Outputs <literal>\chapter{title}</literal>, calls
69 templates and apply-templates. Since chapters only apply in books,
70 some assumptions could be done in order to optimize the stylesheet behaviour.</para>
72 <formalpara><title>Remarks and Bugs</title>
75 EMPTY templates: chapter/title,
78 chapter/docinfo|chapterinfo.</para></listitem>
82 <formalpara><title>Affected by</title> map.
86 <!--############################################################################# -->
88 <xsl:template match="chapter">
89 <xsl:call-template name="map.begin"/>
90 <xsl:apply-templates/>
91 <xsl:call-template name="map.end"/>
94 <xsl:template match="chapter/title"/>
95 <xsl:template match="chapter/titleabbrev"/>
96 <xsl:template match="chapter/subtitle"/>
97 <xsl:template match="chapter/docinfo|chapterinfo"/>
100 <!--#############################################################################
101 |- #############################################################################
104 + ############################################################################## -->
106 <xsl:template match="appendix">
107 <xsl:if test="not (preceding-sibling::appendix)">
108 <xsl:text> </xsl:text>
110 <xsl:when test="local-name(..)='book' or local-name(..)='part'">
111 <xsl:text>\newcommand{\dbappendix}[1]{\chapter{#1}}% </xsl:text>
114 <xsl:text>\newcommand{\dbappendix}[1]{\section{#1}}% </xsl:text>
117 <xsl:call-template name="map.begin">
118 <xsl:with-param name="keyword">appendixes</xsl:with-param>
121 <xsl:call-template name="map.begin"/>
122 <xsl:apply-templates/>
123 <xsl:call-template name="map.end"/>
127 <xsl:template match="appendix/title"/>
128 <xsl:template match="appendix/titleabbrev"/>
129 <xsl:template match="appendix/subtitle"/>
130 <xsl:template match="appendix/docinfo|appendixinfo"/>