Builtin macros for log_selector values
[exim.git] / doc / doc-docbook / MyTitleStyle.xsl
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
4 <!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. -->
5
6 <xsl:template name="book.titlepage.recto">
7 <xsl:choose>
8 <xsl:when test="bookinfo/title">
9 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/>
10 </xsl:when>
11 <xsl:when test="info/title">
12 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/title"/>
13 </xsl:when>
14 <xsl:when test="title">
15 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/>
16 </xsl:when>
17 </xsl:choose>
18
19 <xsl:choose>
20 <xsl:when test="bookinfo/subtitle">
21 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/>
22 </xsl:when>
23 <xsl:when test="info/subtitle">
24 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/subtitle"/>
25 </xsl:when>
26 <xsl:when test="subtitle">
27 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/>
28 </xsl:when>
29 </xsl:choose>
30
31 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/>
32 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/corpauthor"/>
33 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/>
34 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup"/>
35 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
36 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
37 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/affiliation"/>
38 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/affiliation"/>
39 </xsl:template>
40
41 <xsl:template name="book.titlepage.verso">
42 <xsl:choose>
43 <xsl:when test="bookinfo/title">
44 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/title"/>
45 </xsl:when>
46 <xsl:when test="info/title">
47 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/title"/>
48 </xsl:when>
49 <xsl:when test="title">
50 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="title"/>
51 </xsl:when>
52 </xsl:choose>
53
54 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/corpauthor"/>
55 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/corpauthor"/>
56 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup"/>
57 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/authorgroup"/>
58 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author"/>
59 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/author"/>
60 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/affiliation"/>
61 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/affiliation"/>
62 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/address"/>
63 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/address"/>
64 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/pubdate"/>
65 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/pubdate"/>
66 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/abstract"/>
67 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/abstract"/>
68 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/>
69 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/copyright"/>
70 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/revhistory"/>
71 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/revhistory"/>
72 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/>
73 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/legalnotice"/>
74 </xsl:template>
75
76 <xsl:template name="book.titlepage.separator">
77 </xsl:template>
78
79 <xsl:template name="book.titlepage.before.recto">
80 </xsl:template>
81
82 <xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
83 </xsl:template>
84
85 <xsl:template name="book.titlepage">
86 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
87 <xsl:variable name="recto.content">
88 <xsl:call-template name="book.titlepage.before.recto"/>
89 <xsl:call-template name="book.titlepage.recto"/>
90 </xsl:variable>
91 <xsl:if test="normalize-space($recto.content) != ''">
92 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
93 </xsl:if>
94 <xsl:variable name="verso.content">
95 <xsl:call-template name="book.titlepage.before.verso"/>
96 <xsl:call-template name="book.titlepage.verso"/>
97 </xsl:variable>
98 <xsl:if test="normalize-space($verso.content) != ''">
99 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
100 </xsl:if>
101 <xsl:call-template name="book.titlepage.separator"/>
102 </fo:block>
103 </xsl:template>
104
105 <xsl:template match="*" mode="book.titlepage.recto.mode">
106 <!-- if an element isn't found in this mode, -->
107 <!-- try the generic titlepage.mode -->
108 <xsl:apply-templates select="." mode="titlepage.mode"/>
109 </xsl:template>
110
111 <xsl:template match="*" mode="book.titlepage.verso.mode">
112 <!-- if an element isn't found in this mode, -->
113 <!-- try the generic titlepage.mode -->
114 <xsl:apply-templates select="." mode="titlepage.mode"/>
115 </xsl:template>
116
117 <xsl:template match="title" mode="book.titlepage.recto.auto.mode">
118 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="5em" font-weight="bold" font-family="{$title.fontset}">
119 <xsl:call-template name="division.title">
120 <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
121 </xsl:call-template>
122 </fo:block>
123 </xsl:template>
124
125 <xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
126 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-family="{$title.fontset}">
127 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
128 </fo:block>
129 </xsl:template>
130
131 <xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode">
132 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" keep-with-next="always" space-before="2in">
133 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
134 </fo:block>
135 </xsl:template>
136
137 <xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode">
138 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" space-before="2in">
139 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
140 </fo:block>
141 </xsl:template>
142
143 <xsl:template match="author" mode="book.titlepage.recto.auto.mode">
144 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" space-before="10.8pt" keep-with-next="always">
145 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
146 </fo:block>
147 </xsl:template>
148
149 <xsl:template match="affiliation" mode="book.titlepage.recto.auto.mode">
150 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" space-before="1em">
151 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
152 </fo:block>
153 </xsl:template>
154
155 <xsl:template match="title" mode="book.titlepage.verso.auto.mode">
156 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="14.4pt" font-weight="bold" font-family="{$title.fontset}">
157 <xsl:call-template name="book.verso.title">
158 </xsl:call-template>
159 </fo:block>
160 </xsl:template>
161
162 <xsl:template match="corpauthor" mode="book.titlepage.verso.auto.mode">
163 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
164 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
165 </fo:block>
166 </xsl:template>
167
168 <xsl:template match="authorgroup" mode="book.titlepage.verso.auto.mode">
169 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
170 <xsl:call-template name="verso.authorgroup">
171 </xsl:call-template>
172 </fo:block>
173 </xsl:template>
174
175 <xsl:template match="author" mode="book.titlepage.verso.auto.mode">
176 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
177 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
178 </fo:block>
179 </xsl:template>
180
181 <xsl:template match="affiliation" mode="book.titlepage.verso.auto.mode">
182 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
183 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
184 </fo:block>
185 </xsl:template>
186
187 <xsl:template match="address" mode="book.titlepage.verso.auto.mode">
188 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
189 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
190 </fo:block>
191 </xsl:template>
192
193 <xsl:template match="pubdate" mode="book.titlepage.verso.auto.mode">
194 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
195 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
196 </fo:block>
197 </xsl:template>
198
199 <xsl:template match="abstract" mode="book.titlepage.verso.auto.mode">
200 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
201 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
202 </fo:block>
203 </xsl:template>
204
205 <xsl:template match="copyright" mode="book.titlepage.verso.auto.mode">
206 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
207 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
208 </fo:block>
209 </xsl:template>
210
211 <xsl:template match="revhistory" mode="book.titlepage.verso.auto.mode">
212 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
213 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
214 </fo:block>
215 </xsl:template>
216
217 <xsl:template match="legalnotice" mode="book.titlepage.verso.auto.mode">
218 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="8pt">
219 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
220 </fo:block>
221 </xsl:template>
222
223 </xsl:stylesheet>