2 <!--#############################################################################
3 | $Id: preface.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'>
17 <!--############################################################################# -->
18 <!-- DOCUMENTATION -->
19 <doc:reference id="preface" xmlns="">
21 <releaseinfo role="meta">
22 $Id: preface.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $
25 <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
26 <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
29 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
30 <holder>Ramon Casellas</holder>
34 <title>Preface <filename>preface.mod.xsl</filename></title>
36 <section><title>Introduction</title>
43 <!--#############################################################################
45 +- ############################################################################# -->
46 <xsl:template match="preface">
47 <xsl:text>\newpage </xsl:text>
48 <xsl:text>% ------------------------------------------------------------- </xsl:text>
49 <xsl:text>% Preface </xsl:text>
50 <xsl:text>% ------------------------------------------------------------- </xsl:text>
51 <xsl:text>\chapter*{</xsl:text>
52 <!-- Output preface title or generic text -->
54 <xsl:when test="title">
55 <xsl:apply-templates select="title"/>
58 <xsl:call-template name="gentext">
59 <xsl:with-param name="key">preface</xsl:with-param>
63 <xsl:text>} </xsl:text>
64 <!-- done with title. Tag it. -->
65 <xsl:call-template name="label.id"/>
66 <!-- except title, titleabbrev and subtitle -->
67 <xsl:apply-templates select="*[name(.) != 'title' and name(.) != 'subtitle' and name(.) != 'titleabbrev']"/>
71 <!--#############################################################################
73 +- ############################################################################# -->
74 <xsl:template match="preface/title">
75 <xsl:apply-templates/>
79 <!--#############################################################################
80 | Other Preface Elements
81 +- ############################################################################# -->
82 <xsl:template match="preface/titleabbrev"/>
83 <xsl:template match="preface/subtitle"/>
84 <xsl:template match="preface/docinfo|prefaceinfo"/>
87 <xsl:template match="preface/sect1|preface/simplesect">
88 <xsl:text> \section*{</xsl:text>
89 <xsl:apply-templates select="title"/>
90 <xsl:text>} </xsl:text>
91 <xsl:apply-templates select="*[name(.) != 'title']"/>
95 <xsl:template match="preface/sect1/sect2">
96 <xsl:text> \subsection*{</xsl:text>
97 <xsl:apply-templates select="title"/>
98 <xsl:text>} </xsl:text>
99 <xsl:apply-templates select="*[name(.) != 'title']"/>
103 <xsl:template match="preface/sect1/sect2/sect3">
104 <xsl:text> \subsubsection*{</xsl:text>
105 <xsl:apply-templates select="title"/>
106 <xsl:text>} </xsl:text>
107 <xsl:apply-templates select="*[name(.) != 'title']"/>