trying to get HEAD building again. If you want the code
[nivanova/samba-autobuild/.git] / docs / docbook / xslt / db2latex / dedication.mod.xsl
1 <?xml version='1.0'?>
2 <!--############################################################################# 
3 |- #############################################################################
4 |                                                                                                               
5 |   PURPOSE:
6 + ############################################################################## -->
7
8 <xsl:stylesheet 
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'>
12
13
14
15     <!--############################################################################# -->
16     <!-- DOCUMENTATION                                                                -->
17     <doc:reference id="dedication" xmlns="">
18         <referenceinfo>
19             <releaseinfo role="meta">
20             </releaseinfo>
21             <authorgroup>
22             <author> <firstname>Ramon</firstname> <surname>Casellas</surname> </author>
23             <author> <firstname>James</firstname> <surname>Devenish</surname> </author>
24             </authorgroup>
25             <copyright>
26                 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
27                 <holder>Ramon Casellas</holder>
28             </copyright>
29         </referenceinfo>
30
31         <title>Dedication <filename>dedication.mod.xsl</filename></title>
32         <partintro>
33             <section><title>Introduction</title>
34                 <para></para>
35             </section>
36         </partintro>
37     </doc:reference>
38
39
40
41 <!--############################################################################# 
42  |  XSL Parameters 
43  +- ############################################################################# -->
44 <xsl:param name="latex.dedication.title.style">\sc</xsl:param>
45
46
47
48 <!--############################################################################# 
49  |  Dedication Template 
50  +- ############################################################################# -->
51 <xsl:template match="dedication">
52 <xsl:text>\newpage&#10;</xsl:text>
53 <xsl:text>% -------------------------------------------------------------&#10;</xsl:text>
54 <xsl:text>% Dedication                                                   &#10;</xsl:text>
55 <xsl:text>% -------------------------------------------------------------&#10;</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']"/>
61 </xsl:template>
62
63
64 <!--############################################################################# 
65  |  Dedication Title 
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>
72 <xsl:choose>
73         <xsl:when test="title">
74                 <xsl:apply-templates select="title"/>
75         </xsl:when>
76         <xsl:otherwise>
77         <xsl:call-template name="gentext">
78                 <xsl:with-param name="key">dedication</xsl:with-param>
79         </xsl:call-template>
80         </xsl:otherwise>
81 </xsl:choose>
82 <xsl:text>}&#10;</xsl:text>
83 <!-- done with title -->
84 </xsl:template>
85
86
87 <xsl:template match="dedication/title">
88 <xsl:apply-templates/>
89 </xsl:template>
90
91
92
93 <!--############################################################################# 
94  |  Dedication Subtitle 
95  +- ############################################################################# -->
96 <xsl:template name="dedication.subtitle">
97 <xsl:variable name="subtitle">
98         <xsl:apply-templates select="." mode="subtitle.content"/> 
99 </xsl:variable>
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>}&#10;</xsl:text>
106 </xsl:if>
107 </xsl:template>
108
109
110 <xsl:template match="dedication/subtitle">
111 <xsl:apply-templates/>
112 </xsl:template>
113
114 <xsl:template match="dedication/titleabbrev"/>
115
116
117 <!--############################################################################# 
118  |  Special treatment for dedication paragraphs 
119  +- ############################################################################# -->
120 <xsl:template match="dedication/para">
121 <xsl:text>&#10;\paragraph*{}&#10;</xsl:text>  <!-- This is a fixme !! -->
122 <xsl:apply-templates/>
123 </xsl:template>
124
125 </xsl:stylesheet>
126