2 <!--#############################################################################
3 | $Id: part-chap-app.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $
4 |- #############################################################################
8 + ############################################################################## -->
11 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
13 exclude-result-prefixes="doc" version='1.0'>
16 <!--############################################################################# -->
17 <!-- DOCUMENTATION -->
18 <doc:reference id="part-chap-app" xmlns="">
20 <releaseinfo role="meta">
21 $Id: part-chap-app.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $
24 <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
25 <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
28 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
29 <holder>Ramon Casellas</holder>
32 <title>Parts, Chapters and Appendixes <filename>part-chap-app.mod.xsl</filename></title>
34 <section><title>Introduction</title>
39 <!--############################################################################# -->
44 <xsl:template match="part">
45 <xsl:call-template name="map.begin"/>
46 <xsl:apply-templates/>
49 <xsl:template match="part/docinfo"/>
50 <xsl:template match="part/title"/>
51 <xsl:template match="part/subtitle"/>
52 <xsl:template match="partintro"/>
53 <xsl:template match="partintro/title"/>
54 <xsl:template match="partintro/subtitle"/>
55 <xsl:template match="partintro/titleabbrev"/>
58 <!--#############################################################################
59 | $Id: part-chap-app.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $
60 |- #############################################################################
64 + ############################################################################## -->
67 <!--############################################################################# -->
68 <!-- DOCUMENTATION -->
69 <doc:template match="chapter" xmlns="">
70 <refpurpose> XSL template for Chapters.</refpurpose>
72 <para> This is the main entry point for a <sgmltag class="start">chapter</sgmltag> subtree.
73 This template processes any chapter. Outputs <literal>\chapter{title}</literal>, calls
74 templates and apply-templates. Since chapters only apply in books,
75 some assumptions could be done in order to optimize the stylesheet behaviour.</para>
77 <formalpara><title>Remarks and Bugs</title>
80 EMPTY templates: chapter/title,
83 chapter/docinfo|chapterinfo.</para></listitem>
87 <formalpara><title>Affected by</title> map.
91 <!--############################################################################# -->
93 <xsl:template match="chapter">
94 <xsl:call-template name="map.begin"/>
95 <xsl:apply-templates/>
96 <xsl:call-template name="map.end"/>
99 <xsl:template match="chapter/title"/>
100 <xsl:template match="chapter/titleabbrev"/>
101 <xsl:template match="chapter/subtitle"/>
102 <xsl:template match="chapter/docinfo|chapterinfo"/>
105 <!--#############################################################################
106 | $Id: part-chap-app.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $
107 |- #############################################################################
111 + ############################################################################## -->
113 <xsl:template match="appendix">
114 <xsl:if test="not (preceding-sibling::appendix)">
115 <xsl:text> </xsl:text>
117 <xsl:when test="local-name(..)='book' or local-name(..)='part'">
118 <xsl:text>\newcommand{\dbappendix}[1]{\chapter{#1}}% </xsl:text>
121 <xsl:text>\newcommand{\dbappendix}[1]{\section{#1}}% </xsl:text>
124 <xsl:call-template name="map.begin">
125 <xsl:with-param name="keyword">appendixes</xsl:with-param>
128 <xsl:call-template name="map.begin"/>
129 <xsl:apply-templates/>
130 <xsl:call-template name="map.end"/>
134 <xsl:template match="appendix/title"/>
135 <xsl:template match="appendix/titleabbrev"/>
136 <xsl:template match="appendix/subtitle"/>
137 <xsl:template match="appendix/docinfo|appendixinfo"/>