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'>
15 <!--############################################################################# -->
16 <!-- DOCUMENTATION -->
17 <doc:reference id="dedication" xmlns="">
19 <releaseinfo role="meta">
22 <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
23 <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
26 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
27 <holder>Ramon Casellas</holder>
31 <title>Dedication <filename>dedication.mod.xsl</filename></title>
33 <section><title>Introduction</title>
41 <!--#############################################################################
43 +- ############################################################################# -->
44 <xsl:param name="latex.dedication.title.style">\sc</xsl:param>
48 <!--#############################################################################
50 +- ############################################################################# -->
51 <xsl:template match="dedication">
52 <xsl:text>\newpage </xsl:text>
53 <xsl:text>% ------------------------------------------------------------- </xsl:text>
54 <xsl:text>% Dedication </xsl:text>
55 <xsl:text>% ------------------------------------------------------------- </xsl:text>
56 <xsl:call-template name="label.id"/>
57 <xsl:call-template name="dedication.title"/>
58 <xsl:call-template name="dedication.subtitle"/>
59 <!-- except title, titleabbrev and subtitle -->
60 <xsl:apply-templates select="*[name(.) != 'title' and name(.) != 'subtitle' and name(.) != 'titleabbrev']"/>
64 <!--#############################################################################
66 +- ############################################################################# -->
67 <xsl:template name="dedication.title">
68 <!-- Output dedication title or generic text -->
69 <xsl:text>{</xsl:text>
70 <xsl:value-of select="$latex.dedication.title.style"/>
71 <xsl:text> </xsl:text>
73 <xsl:when test="title">
74 <xsl:apply-templates select="title"/>
77 <xsl:call-template name="gentext">
78 <xsl:with-param name="key">dedication</xsl:with-param>
82 <xsl:text>} </xsl:text>
83 <!-- done with title -->
87 <xsl:template match="dedication/title">
88 <xsl:apply-templates/>
93 <!--#############################################################################
95 +- ############################################################################# -->
96 <xsl:template name="dedication.subtitle">
97 <xsl:variable name="subtitle">
98 <xsl:apply-templates select="." mode="subtitle.content"/>
100 <xsl:if test="$subtitle != ''">
101 <xsl:text>{</xsl:text>
102 <xsl:value-of select="$latex.dedication.title.style"/>
103 <xsl:text> </xsl:text>
104 <xsl:copy-of select="$subtitle"/>
105 <xsl:text>} </xsl:text>
110 <xsl:template match="dedication/subtitle">
111 <xsl:apply-templates/>
114 <xsl:template match="dedication/titleabbrev"/>
117 <!--#############################################################################
118 | Special treatment for dedication paragraphs
119 +- ############################################################################# -->
120 <xsl:template match="dedication/para">
121 <xsl:text> \paragraph*{} </xsl:text> <!-- This is a fixme !! -->
122 <xsl:apply-templates/>