1 | <?xml version="1.0"?>
|
---|
2 |
|
---|
3 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" version="1.0" exclude-result-prefixes="exsl">
|
---|
4 |
|
---|
5 | <!-- This stylesheet was created by template/titlepage.xsl-->
|
---|
6 |
|
---|
7 | <xsl:template name="article.titlepage.recto">
|
---|
8 | <xsl:choose>
|
---|
9 | <xsl:when test="articleinfo/title">
|
---|
10 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/title"/>
|
---|
11 | </xsl:when>
|
---|
12 | <xsl:when test="artheader/title">
|
---|
13 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/title"/>
|
---|
14 | </xsl:when>
|
---|
15 | <xsl:when test="info/title">
|
---|
16 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/title"/>
|
---|
17 | </xsl:when>
|
---|
18 | <xsl:when test="title">
|
---|
19 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="title"/>
|
---|
20 | </xsl:when>
|
---|
21 | </xsl:choose>
|
---|
22 |
|
---|
23 | <xsl:choose>
|
---|
24 | <xsl:when test="articleinfo/subtitle">
|
---|
25 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/subtitle"/>
|
---|
26 | </xsl:when>
|
---|
27 | <xsl:when test="artheader/subtitle">
|
---|
28 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/subtitle"/>
|
---|
29 | </xsl:when>
|
---|
30 | <xsl:when test="info/subtitle">
|
---|
31 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
32 | </xsl:when>
|
---|
33 | <xsl:when test="subtitle">
|
---|
34 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
35 | </xsl:when>
|
---|
36 | </xsl:choose>
|
---|
37 |
|
---|
38 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/corpauthor"/>
|
---|
39 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/corpauthor"/>
|
---|
40 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
41 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/authorgroup"/>
|
---|
42 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/authorgroup"/>
|
---|
43 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
44 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/author"/>
|
---|
45 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/author"/>
|
---|
46 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/author"/>
|
---|
47 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/othercredit"/>
|
---|
48 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/othercredit"/>
|
---|
49 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
50 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/releaseinfo"/>
|
---|
51 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/releaseinfo"/>
|
---|
52 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
53 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/copyright"/>
|
---|
54 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/copyright"/>
|
---|
55 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
56 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/legalnotice"/>
|
---|
57 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/legalnotice"/>
|
---|
58 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
59 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/pubdate"/>
|
---|
60 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/pubdate"/>
|
---|
61 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
62 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revision"/>
|
---|
63 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revision"/>
|
---|
64 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
65 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/revhistory"/>
|
---|
66 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/revhistory"/>
|
---|
67 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
68 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="articleinfo/abstract"/>
|
---|
69 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="artheader/abstract"/>
|
---|
70 | <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
71 | </xsl:template>
|
---|
72 |
|
---|
73 | <xsl:template name="article.titlepage.verso">
|
---|
74 | </xsl:template>
|
---|
75 |
|
---|
76 | <xsl:template name="article.titlepage.separator"><hr xmlns="http://www.w3.org/1999/xhtml"/>
|
---|
77 | </xsl:template>
|
---|
78 |
|
---|
79 | <xsl:template name="article.titlepage.before.recto">
|
---|
80 | </xsl:template>
|
---|
81 |
|
---|
82 | <xsl:template name="article.titlepage.before.verso">
|
---|
83 | </xsl:template>
|
---|
84 |
|
---|
85 | <xsl:template name="article.titlepage">
|
---|
86 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
87 | <xsl:variable name="recto.content">
|
---|
88 | <xsl:call-template name="article.titlepage.before.recto"/>
|
---|
89 | <xsl:call-template name="article.titlepage.recto"/>
|
---|
90 | </xsl:variable>
|
---|
91 | <xsl:variable name="recto.elements.count">
|
---|
92 | <xsl:choose>
|
---|
93 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
94 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
95 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
96 | <xsl:otherwise>1</xsl:otherwise>
|
---|
97 | </xsl:choose>
|
---|
98 | </xsl:variable>
|
---|
99 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
100 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
101 | </xsl:if>
|
---|
102 | <xsl:variable name="verso.content">
|
---|
103 | <xsl:call-template name="article.titlepage.before.verso"/>
|
---|
104 | <xsl:call-template name="article.titlepage.verso"/>
|
---|
105 | </xsl:variable>
|
---|
106 | <xsl:variable name="verso.elements.count">
|
---|
107 | <xsl:choose>
|
---|
108 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
109 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
110 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
111 | <xsl:otherwise>1</xsl:otherwise>
|
---|
112 | </xsl:choose>
|
---|
113 | </xsl:variable>
|
---|
114 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
115 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
116 | </xsl:if>
|
---|
117 | <xsl:call-template name="article.titlepage.separator"/>
|
---|
118 | </div>
|
---|
119 | </xsl:template>
|
---|
120 |
|
---|
121 | <xsl:template match="*" mode="article.titlepage.recto.mode">
|
---|
122 | <!-- if an element isn't found in this mode, -->
|
---|
123 | <!-- try the generic titlepage.mode -->
|
---|
124 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
125 | </xsl:template>
|
---|
126 |
|
---|
127 | <xsl:template match="*" mode="article.titlepage.verso.mode">
|
---|
128 | <!-- if an element isn't found in this mode, -->
|
---|
129 | <!-- try the generic titlepage.mode -->
|
---|
130 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
131 | </xsl:template>
|
---|
132 |
|
---|
133 | <xsl:template match="title" mode="article.titlepage.recto.auto.mode">
|
---|
134 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
135 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
136 | </div>
|
---|
137 | </xsl:template>
|
---|
138 |
|
---|
139 | <xsl:template match="subtitle" mode="article.titlepage.recto.auto.mode">
|
---|
140 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
141 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
142 | </div>
|
---|
143 | </xsl:template>
|
---|
144 |
|
---|
145 | <xsl:template match="corpauthor" mode="article.titlepage.recto.auto.mode">
|
---|
146 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
147 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
148 | </div>
|
---|
149 | </xsl:template>
|
---|
150 |
|
---|
151 | <xsl:template match="authorgroup" mode="article.titlepage.recto.auto.mode">
|
---|
152 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
153 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
154 | </div>
|
---|
155 | </xsl:template>
|
---|
156 |
|
---|
157 | <xsl:template match="author" mode="article.titlepage.recto.auto.mode">
|
---|
158 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
159 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
160 | </div>
|
---|
161 | </xsl:template>
|
---|
162 |
|
---|
163 | <xsl:template match="othercredit" mode="article.titlepage.recto.auto.mode">
|
---|
164 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
165 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
166 | </div>
|
---|
167 | </xsl:template>
|
---|
168 |
|
---|
169 | <xsl:template match="releaseinfo" mode="article.titlepage.recto.auto.mode">
|
---|
170 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
171 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
172 | </div>
|
---|
173 | </xsl:template>
|
---|
174 |
|
---|
175 | <xsl:template match="copyright" mode="article.titlepage.recto.auto.mode">
|
---|
176 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
177 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
178 | </div>
|
---|
179 | </xsl:template>
|
---|
180 |
|
---|
181 | <xsl:template match="legalnotice" mode="article.titlepage.recto.auto.mode">
|
---|
182 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
183 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
184 | </div>
|
---|
185 | </xsl:template>
|
---|
186 |
|
---|
187 | <xsl:template match="pubdate" mode="article.titlepage.recto.auto.mode">
|
---|
188 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
189 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
190 | </div>
|
---|
191 | </xsl:template>
|
---|
192 |
|
---|
193 | <xsl:template match="revision" mode="article.titlepage.recto.auto.mode">
|
---|
194 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
195 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
196 | </div>
|
---|
197 | </xsl:template>
|
---|
198 |
|
---|
199 | <xsl:template match="revhistory" mode="article.titlepage.recto.auto.mode">
|
---|
200 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
201 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
202 | </div>
|
---|
203 | </xsl:template>
|
---|
204 |
|
---|
205 | <xsl:template match="abstract" mode="article.titlepage.recto.auto.mode">
|
---|
206 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="article.titlepage.recto.style">
|
---|
207 | <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
|
---|
208 | </div>
|
---|
209 | </xsl:template>
|
---|
210 |
|
---|
211 | <xsl:template name="set.titlepage.recto">
|
---|
212 | <xsl:choose>
|
---|
213 | <xsl:when test="setinfo/title">
|
---|
214 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/title"/>
|
---|
215 | </xsl:when>
|
---|
216 | <xsl:when test="info/title">
|
---|
217 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/title"/>
|
---|
218 | </xsl:when>
|
---|
219 | <xsl:when test="title">
|
---|
220 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="title"/>
|
---|
221 | </xsl:when>
|
---|
222 | </xsl:choose>
|
---|
223 |
|
---|
224 | <xsl:choose>
|
---|
225 | <xsl:when test="setinfo/subtitle">
|
---|
226 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/subtitle"/>
|
---|
227 | </xsl:when>
|
---|
228 | <xsl:when test="info/subtitle">
|
---|
229 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
230 | </xsl:when>
|
---|
231 | <xsl:when test="subtitle">
|
---|
232 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
233 | </xsl:when>
|
---|
234 | </xsl:choose>
|
---|
235 |
|
---|
236 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/corpauthor"/>
|
---|
237 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
238 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/authorgroup"/>
|
---|
239 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
240 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/author"/>
|
---|
241 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/author"/>
|
---|
242 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/othercredit"/>
|
---|
243 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
244 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/releaseinfo"/>
|
---|
245 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
246 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/copyright"/>
|
---|
247 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
248 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/legalnotice"/>
|
---|
249 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
250 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/pubdate"/>
|
---|
251 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
252 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revision"/>
|
---|
253 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
254 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/revhistory"/>
|
---|
255 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
256 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="setinfo/abstract"/>
|
---|
257 | <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
258 | </xsl:template>
|
---|
259 |
|
---|
260 | <xsl:template name="set.titlepage.verso">
|
---|
261 | </xsl:template>
|
---|
262 |
|
---|
263 | <xsl:template name="set.titlepage.separator"><hr xmlns="http://www.w3.org/1999/xhtml"/>
|
---|
264 | </xsl:template>
|
---|
265 |
|
---|
266 | <xsl:template name="set.titlepage.before.recto">
|
---|
267 | </xsl:template>
|
---|
268 |
|
---|
269 | <xsl:template name="set.titlepage.before.verso">
|
---|
270 | </xsl:template>
|
---|
271 |
|
---|
272 | <xsl:template name="set.titlepage">
|
---|
273 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
274 | <xsl:variable name="recto.content">
|
---|
275 | <xsl:call-template name="set.titlepage.before.recto"/>
|
---|
276 | <xsl:call-template name="set.titlepage.recto"/>
|
---|
277 | </xsl:variable>
|
---|
278 | <xsl:variable name="recto.elements.count">
|
---|
279 | <xsl:choose>
|
---|
280 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
281 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
282 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
283 | <xsl:otherwise>1</xsl:otherwise>
|
---|
284 | </xsl:choose>
|
---|
285 | </xsl:variable>
|
---|
286 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
287 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
288 | </xsl:if>
|
---|
289 | <xsl:variable name="verso.content">
|
---|
290 | <xsl:call-template name="set.titlepage.before.verso"/>
|
---|
291 | <xsl:call-template name="set.titlepage.verso"/>
|
---|
292 | </xsl:variable>
|
---|
293 | <xsl:variable name="verso.elements.count">
|
---|
294 | <xsl:choose>
|
---|
295 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
296 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
297 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
298 | <xsl:otherwise>1</xsl:otherwise>
|
---|
299 | </xsl:choose>
|
---|
300 | </xsl:variable>
|
---|
301 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
302 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
303 | </xsl:if>
|
---|
304 | <xsl:call-template name="set.titlepage.separator"/>
|
---|
305 | </div>
|
---|
306 | </xsl:template>
|
---|
307 |
|
---|
308 | <xsl:template match="*" mode="set.titlepage.recto.mode">
|
---|
309 | <!-- if an element isn't found in this mode, -->
|
---|
310 | <!-- try the generic titlepage.mode -->
|
---|
311 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
312 | </xsl:template>
|
---|
313 |
|
---|
314 | <xsl:template match="*" mode="set.titlepage.verso.mode">
|
---|
315 | <!-- if an element isn't found in this mode, -->
|
---|
316 | <!-- try the generic titlepage.mode -->
|
---|
317 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
318 | </xsl:template>
|
---|
319 |
|
---|
320 | <xsl:template match="title" mode="set.titlepage.recto.auto.mode">
|
---|
321 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
322 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
323 | </div>
|
---|
324 | </xsl:template>
|
---|
325 |
|
---|
326 | <xsl:template match="subtitle" mode="set.titlepage.recto.auto.mode">
|
---|
327 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
328 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
329 | </div>
|
---|
330 | </xsl:template>
|
---|
331 |
|
---|
332 | <xsl:template match="corpauthor" mode="set.titlepage.recto.auto.mode">
|
---|
333 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
334 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
335 | </div>
|
---|
336 | </xsl:template>
|
---|
337 |
|
---|
338 | <xsl:template match="authorgroup" mode="set.titlepage.recto.auto.mode">
|
---|
339 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
340 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
341 | </div>
|
---|
342 | </xsl:template>
|
---|
343 |
|
---|
344 | <xsl:template match="author" mode="set.titlepage.recto.auto.mode">
|
---|
345 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
346 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
347 | </div>
|
---|
348 | </xsl:template>
|
---|
349 |
|
---|
350 | <xsl:template match="othercredit" mode="set.titlepage.recto.auto.mode">
|
---|
351 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
352 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
353 | </div>
|
---|
354 | </xsl:template>
|
---|
355 |
|
---|
356 | <xsl:template match="releaseinfo" mode="set.titlepage.recto.auto.mode">
|
---|
357 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
358 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
359 | </div>
|
---|
360 | </xsl:template>
|
---|
361 |
|
---|
362 | <xsl:template match="copyright" mode="set.titlepage.recto.auto.mode">
|
---|
363 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
364 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
365 | </div>
|
---|
366 | </xsl:template>
|
---|
367 |
|
---|
368 | <xsl:template match="legalnotice" mode="set.titlepage.recto.auto.mode">
|
---|
369 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
370 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
371 | </div>
|
---|
372 | </xsl:template>
|
---|
373 |
|
---|
374 | <xsl:template match="pubdate" mode="set.titlepage.recto.auto.mode">
|
---|
375 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
376 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
377 | </div>
|
---|
378 | </xsl:template>
|
---|
379 |
|
---|
380 | <xsl:template match="revision" mode="set.titlepage.recto.auto.mode">
|
---|
381 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
382 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
383 | </div>
|
---|
384 | </xsl:template>
|
---|
385 |
|
---|
386 | <xsl:template match="revhistory" mode="set.titlepage.recto.auto.mode">
|
---|
387 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
388 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
389 | </div>
|
---|
390 | </xsl:template>
|
---|
391 |
|
---|
392 | <xsl:template match="abstract" mode="set.titlepage.recto.auto.mode">
|
---|
393 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="set.titlepage.recto.style">
|
---|
394 | <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
|
---|
395 | </div>
|
---|
396 | </xsl:template>
|
---|
397 |
|
---|
398 | <xsl:template name="book.titlepage.recto">
|
---|
399 | <xsl:choose>
|
---|
400 | <xsl:when test="bookinfo/title">
|
---|
401 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/>
|
---|
402 | </xsl:when>
|
---|
403 | <xsl:when test="info/title">
|
---|
404 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/title"/>
|
---|
405 | </xsl:when>
|
---|
406 | <xsl:when test="title">
|
---|
407 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/>
|
---|
408 | </xsl:when>
|
---|
409 | </xsl:choose>
|
---|
410 |
|
---|
411 | <xsl:choose>
|
---|
412 | <xsl:when test="bookinfo/subtitle">
|
---|
413 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/>
|
---|
414 | </xsl:when>
|
---|
415 | <xsl:when test="info/subtitle">
|
---|
416 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
417 | </xsl:when>
|
---|
418 | <xsl:when test="subtitle">
|
---|
419 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
420 | </xsl:when>
|
---|
421 | </xsl:choose>
|
---|
422 |
|
---|
423 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/isbn"/>
|
---|
424 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/isbn"/>
|
---|
425 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/issn"/>
|
---|
426 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/issn"/>
|
---|
427 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/biblioid"/>
|
---|
428 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/biblioid"/>
|
---|
429 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/>
|
---|
430 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
431 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/>
|
---|
432 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
433 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
|
---|
434 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
|
---|
435 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/othercredit"/>
|
---|
436 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
437 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/releaseinfo"/>
|
---|
438 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
439 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/copyright"/>
|
---|
440 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
441 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/legalnotice"/>
|
---|
442 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
443 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/pubdate"/>
|
---|
444 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
445 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revision"/>
|
---|
446 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
447 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revhistory"/>
|
---|
448 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
449 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/abstract"/>
|
---|
450 | <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
451 | </xsl:template>
|
---|
452 |
|
---|
453 | <xsl:template name="book.titlepage.verso">
|
---|
454 | </xsl:template>
|
---|
455 |
|
---|
456 | <xsl:template name="book.titlepage.separator"><hr xmlns="http://www.w3.org/1999/xhtml"/>
|
---|
457 | </xsl:template>
|
---|
458 |
|
---|
459 | <xsl:template name="book.titlepage.before.recto">
|
---|
460 | </xsl:template>
|
---|
461 |
|
---|
462 | <xsl:template name="book.titlepage.before.verso">
|
---|
463 | </xsl:template>
|
---|
464 |
|
---|
465 | <xsl:template name="book.titlepage">
|
---|
466 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
467 | <xsl:variable name="recto.content">
|
---|
468 | <xsl:call-template name="book.titlepage.before.recto"/>
|
---|
469 | <xsl:call-template name="book.titlepage.recto"/>
|
---|
470 | </xsl:variable>
|
---|
471 | <xsl:variable name="recto.elements.count">
|
---|
472 | <xsl:choose>
|
---|
473 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
474 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
475 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
476 | <xsl:otherwise>1</xsl:otherwise>
|
---|
477 | </xsl:choose>
|
---|
478 | </xsl:variable>
|
---|
479 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
480 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
481 | </xsl:if>
|
---|
482 | <xsl:variable name="verso.content">
|
---|
483 | <xsl:call-template name="book.titlepage.before.verso"/>
|
---|
484 | <xsl:call-template name="book.titlepage.verso"/>
|
---|
485 | </xsl:variable>
|
---|
486 | <xsl:variable name="verso.elements.count">
|
---|
487 | <xsl:choose>
|
---|
488 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
489 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
490 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
491 | <xsl:otherwise>1</xsl:otherwise>
|
---|
492 | </xsl:choose>
|
---|
493 | </xsl:variable>
|
---|
494 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
495 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
496 | </xsl:if>
|
---|
497 | <xsl:call-template name="book.titlepage.separator"/>
|
---|
498 | </div>
|
---|
499 | </xsl:template>
|
---|
500 |
|
---|
501 | <xsl:template match="*" mode="book.titlepage.recto.mode">
|
---|
502 | <!-- if an element isn't found in this mode, -->
|
---|
503 | <!-- try the generic titlepage.mode -->
|
---|
504 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
505 | </xsl:template>
|
---|
506 |
|
---|
507 | <xsl:template match="*" mode="book.titlepage.verso.mode">
|
---|
508 | <!-- if an element isn't found in this mode, -->
|
---|
509 | <!-- try the generic titlepage.mode -->
|
---|
510 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
511 | </xsl:template>
|
---|
512 |
|
---|
513 | <xsl:template match="title" mode="book.titlepage.recto.auto.mode">
|
---|
514 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
515 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
516 | </div>
|
---|
517 | </xsl:template>
|
---|
518 |
|
---|
519 | <xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
|
---|
520 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
521 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
522 | </div>
|
---|
523 | </xsl:template>
|
---|
524 |
|
---|
525 | <xsl:template match="isbn" mode="book.titlepage.recto.auto.mode">
|
---|
526 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
527 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
528 | </div>
|
---|
529 | </xsl:template>
|
---|
530 |
|
---|
531 | <xsl:template match="issn" mode="book.titlepage.recto.auto.mode">
|
---|
532 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
533 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
534 | </div>
|
---|
535 | </xsl:template>
|
---|
536 |
|
---|
537 | <xsl:template match="biblioid" mode="book.titlepage.recto.auto.mode">
|
---|
538 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
539 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
540 | </div>
|
---|
541 | </xsl:template>
|
---|
542 |
|
---|
543 | <xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode">
|
---|
544 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
545 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
546 | </div>
|
---|
547 | </xsl:template>
|
---|
548 |
|
---|
549 | <xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode">
|
---|
550 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
551 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
552 | </div>
|
---|
553 | </xsl:template>
|
---|
554 |
|
---|
555 | <xsl:template match="author" mode="book.titlepage.recto.auto.mode">
|
---|
556 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
557 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
558 | </div>
|
---|
559 | </xsl:template>
|
---|
560 |
|
---|
561 | <xsl:template match="othercredit" mode="book.titlepage.recto.auto.mode">
|
---|
562 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
563 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
564 | </div>
|
---|
565 | </xsl:template>
|
---|
566 |
|
---|
567 | <xsl:template match="releaseinfo" mode="book.titlepage.recto.auto.mode">
|
---|
568 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
569 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
570 | </div>
|
---|
571 | </xsl:template>
|
---|
572 |
|
---|
573 | <xsl:template match="copyright" mode="book.titlepage.recto.auto.mode">
|
---|
574 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
575 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
576 | </div>
|
---|
577 | </xsl:template>
|
---|
578 |
|
---|
579 | <xsl:template match="legalnotice" mode="book.titlepage.recto.auto.mode">
|
---|
580 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
581 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
582 | </div>
|
---|
583 | </xsl:template>
|
---|
584 |
|
---|
585 | <xsl:template match="pubdate" mode="book.titlepage.recto.auto.mode">
|
---|
586 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
587 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
588 | </div>
|
---|
589 | </xsl:template>
|
---|
590 |
|
---|
591 | <xsl:template match="revision" mode="book.titlepage.recto.auto.mode">
|
---|
592 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
593 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
594 | </div>
|
---|
595 | </xsl:template>
|
---|
596 |
|
---|
597 | <xsl:template match="revhistory" mode="book.titlepage.recto.auto.mode">
|
---|
598 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
599 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
600 | </div>
|
---|
601 | </xsl:template>
|
---|
602 |
|
---|
603 | <xsl:template match="abstract" mode="book.titlepage.recto.auto.mode">
|
---|
604 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="book.titlepage.recto.style">
|
---|
605 | <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
|
---|
606 | </div>
|
---|
607 | </xsl:template>
|
---|
608 |
|
---|
609 | <xsl:template name="part.titlepage.recto">
|
---|
610 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
611 | <xsl:call-template name="division.title">
|
---|
612 | <xsl:with-param name="node" select="ancestor-or-self::part[1]"/>
|
---|
613 | </xsl:call-template></div>
|
---|
614 | <xsl:choose>
|
---|
615 | <xsl:when test="partinfo/subtitle">
|
---|
616 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/subtitle"/>
|
---|
617 | </xsl:when>
|
---|
618 | <xsl:when test="docinfo/subtitle">
|
---|
619 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
620 | </xsl:when>
|
---|
621 | <xsl:when test="info/subtitle">
|
---|
622 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
623 | </xsl:when>
|
---|
624 | <xsl:when test="subtitle">
|
---|
625 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
626 | </xsl:when>
|
---|
627 | </xsl:choose>
|
---|
628 |
|
---|
629 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/corpauthor"/>
|
---|
630 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
|
---|
631 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
632 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/authorgroup"/>
|
---|
633 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
|
---|
634 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
635 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/author"/>
|
---|
636 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/author"/>
|
---|
637 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/author"/>
|
---|
638 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/othercredit"/>
|
---|
639 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
|
---|
640 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
641 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/releaseinfo"/>
|
---|
642 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
|
---|
643 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
644 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/copyright"/>
|
---|
645 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/copyright"/>
|
---|
646 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
647 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/legalnotice"/>
|
---|
648 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
|
---|
649 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
650 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/pubdate"/>
|
---|
651 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
|
---|
652 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
653 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/revision"/>
|
---|
654 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/revision"/>
|
---|
655 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
656 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/revhistory"/>
|
---|
657 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
|
---|
658 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
659 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="partinfo/abstract"/>
|
---|
660 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="docinfo/abstract"/>
|
---|
661 | <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
662 | </xsl:template>
|
---|
663 |
|
---|
664 | <xsl:template name="part.titlepage.verso">
|
---|
665 | </xsl:template>
|
---|
666 |
|
---|
667 | <xsl:template name="part.titlepage.separator">
|
---|
668 | </xsl:template>
|
---|
669 |
|
---|
670 | <xsl:template name="part.titlepage.before.recto">
|
---|
671 | </xsl:template>
|
---|
672 |
|
---|
673 | <xsl:template name="part.titlepage.before.verso">
|
---|
674 | </xsl:template>
|
---|
675 |
|
---|
676 | <xsl:template name="part.titlepage">
|
---|
677 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
678 | <xsl:variable name="recto.content">
|
---|
679 | <xsl:call-template name="part.titlepage.before.recto"/>
|
---|
680 | <xsl:call-template name="part.titlepage.recto"/>
|
---|
681 | </xsl:variable>
|
---|
682 | <xsl:variable name="recto.elements.count">
|
---|
683 | <xsl:choose>
|
---|
684 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
685 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
686 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
687 | <xsl:otherwise>1</xsl:otherwise>
|
---|
688 | </xsl:choose>
|
---|
689 | </xsl:variable>
|
---|
690 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
691 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
692 | </xsl:if>
|
---|
693 | <xsl:variable name="verso.content">
|
---|
694 | <xsl:call-template name="part.titlepage.before.verso"/>
|
---|
695 | <xsl:call-template name="part.titlepage.verso"/>
|
---|
696 | </xsl:variable>
|
---|
697 | <xsl:variable name="verso.elements.count">
|
---|
698 | <xsl:choose>
|
---|
699 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
700 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
701 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
702 | <xsl:otherwise>1</xsl:otherwise>
|
---|
703 | </xsl:choose>
|
---|
704 | </xsl:variable>
|
---|
705 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
706 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
707 | </xsl:if>
|
---|
708 | <xsl:call-template name="part.titlepage.separator"/>
|
---|
709 | </div>
|
---|
710 | </xsl:template>
|
---|
711 |
|
---|
712 | <xsl:template match="*" mode="part.titlepage.recto.mode">
|
---|
713 | <!-- if an element isn't found in this mode, -->
|
---|
714 | <!-- try the generic titlepage.mode -->
|
---|
715 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
716 | </xsl:template>
|
---|
717 |
|
---|
718 | <xsl:template match="*" mode="part.titlepage.verso.mode">
|
---|
719 | <!-- if an element isn't found in this mode, -->
|
---|
720 | <!-- try the generic titlepage.mode -->
|
---|
721 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
722 | </xsl:template>
|
---|
723 |
|
---|
724 | <xsl:template match="subtitle" mode="part.titlepage.recto.auto.mode">
|
---|
725 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
726 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
727 | </div>
|
---|
728 | </xsl:template>
|
---|
729 |
|
---|
730 | <xsl:template match="corpauthor" mode="part.titlepage.recto.auto.mode">
|
---|
731 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
732 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
733 | </div>
|
---|
734 | </xsl:template>
|
---|
735 |
|
---|
736 | <xsl:template match="authorgroup" mode="part.titlepage.recto.auto.mode">
|
---|
737 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
738 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
739 | </div>
|
---|
740 | </xsl:template>
|
---|
741 |
|
---|
742 | <xsl:template match="author" mode="part.titlepage.recto.auto.mode">
|
---|
743 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
744 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
745 | </div>
|
---|
746 | </xsl:template>
|
---|
747 |
|
---|
748 | <xsl:template match="othercredit" mode="part.titlepage.recto.auto.mode">
|
---|
749 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
750 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
751 | </div>
|
---|
752 | </xsl:template>
|
---|
753 |
|
---|
754 | <xsl:template match="releaseinfo" mode="part.titlepage.recto.auto.mode">
|
---|
755 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
756 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
757 | </div>
|
---|
758 | </xsl:template>
|
---|
759 |
|
---|
760 | <xsl:template match="copyright" mode="part.titlepage.recto.auto.mode">
|
---|
761 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
762 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
763 | </div>
|
---|
764 | </xsl:template>
|
---|
765 |
|
---|
766 | <xsl:template match="legalnotice" mode="part.titlepage.recto.auto.mode">
|
---|
767 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
768 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
769 | </div>
|
---|
770 | </xsl:template>
|
---|
771 |
|
---|
772 | <xsl:template match="pubdate" mode="part.titlepage.recto.auto.mode">
|
---|
773 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
774 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
775 | </div>
|
---|
776 | </xsl:template>
|
---|
777 |
|
---|
778 | <xsl:template match="revision" mode="part.titlepage.recto.auto.mode">
|
---|
779 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
780 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
781 | </div>
|
---|
782 | </xsl:template>
|
---|
783 |
|
---|
784 | <xsl:template match="revhistory" mode="part.titlepage.recto.auto.mode">
|
---|
785 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
786 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
787 | </div>
|
---|
788 | </xsl:template>
|
---|
789 |
|
---|
790 | <xsl:template match="abstract" mode="part.titlepage.recto.auto.mode">
|
---|
791 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="part.titlepage.recto.style">
|
---|
792 | <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
|
---|
793 | </div>
|
---|
794 | </xsl:template>
|
---|
795 |
|
---|
796 | <xsl:template name="partintro.titlepage.recto">
|
---|
797 | <xsl:choose>
|
---|
798 | <xsl:when test="partintroinfo/title">
|
---|
799 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/title"/>
|
---|
800 | </xsl:when>
|
---|
801 | <xsl:when test="docinfo/title">
|
---|
802 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/title"/>
|
---|
803 | </xsl:when>
|
---|
804 | <xsl:when test="info/title">
|
---|
805 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/title"/>
|
---|
806 | </xsl:when>
|
---|
807 | <xsl:when test="title">
|
---|
808 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="title"/>
|
---|
809 | </xsl:when>
|
---|
810 | </xsl:choose>
|
---|
811 |
|
---|
812 | <xsl:choose>
|
---|
813 | <xsl:when test="partintroinfo/subtitle">
|
---|
814 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/subtitle"/>
|
---|
815 | </xsl:when>
|
---|
816 | <xsl:when test="docinfo/subtitle">
|
---|
817 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
818 | </xsl:when>
|
---|
819 | <xsl:when test="info/subtitle">
|
---|
820 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
821 | </xsl:when>
|
---|
822 | <xsl:when test="subtitle">
|
---|
823 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
824 | </xsl:when>
|
---|
825 | </xsl:choose>
|
---|
826 |
|
---|
827 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/corpauthor"/>
|
---|
828 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
|
---|
829 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
830 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/authorgroup"/>
|
---|
831 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
|
---|
832 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
833 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/author"/>
|
---|
834 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/author"/>
|
---|
835 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/author"/>
|
---|
836 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/othercredit"/>
|
---|
837 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
|
---|
838 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
839 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/releaseinfo"/>
|
---|
840 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
|
---|
841 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
842 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/copyright"/>
|
---|
843 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/copyright"/>
|
---|
844 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
845 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/legalnotice"/>
|
---|
846 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
|
---|
847 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
848 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/pubdate"/>
|
---|
849 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
|
---|
850 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
851 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revision"/>
|
---|
852 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revision"/>
|
---|
853 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
854 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/revhistory"/>
|
---|
855 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
|
---|
856 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
857 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="partintroinfo/abstract"/>
|
---|
858 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="docinfo/abstract"/>
|
---|
859 | <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
860 | </xsl:template>
|
---|
861 |
|
---|
862 | <xsl:template name="partintro.titlepage.verso">
|
---|
863 | </xsl:template>
|
---|
864 |
|
---|
865 | <xsl:template name="partintro.titlepage.separator">
|
---|
866 | </xsl:template>
|
---|
867 |
|
---|
868 | <xsl:template name="partintro.titlepage.before.recto">
|
---|
869 | </xsl:template>
|
---|
870 |
|
---|
871 | <xsl:template name="partintro.titlepage.before.verso">
|
---|
872 | </xsl:template>
|
---|
873 |
|
---|
874 | <xsl:template name="partintro.titlepage">
|
---|
875 | <div xmlns="http://www.w3.org/1999/xhtml">
|
---|
876 | <xsl:variable name="recto.content">
|
---|
877 | <xsl:call-template name="partintro.titlepage.before.recto"/>
|
---|
878 | <xsl:call-template name="partintro.titlepage.recto"/>
|
---|
879 | </xsl:variable>
|
---|
880 | <xsl:variable name="recto.elements.count">
|
---|
881 | <xsl:choose>
|
---|
882 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
883 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
884 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
885 | <xsl:otherwise>1</xsl:otherwise>
|
---|
886 | </xsl:choose>
|
---|
887 | </xsl:variable>
|
---|
888 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
889 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
890 | </xsl:if>
|
---|
891 | <xsl:variable name="verso.content">
|
---|
892 | <xsl:call-template name="partintro.titlepage.before.verso"/>
|
---|
893 | <xsl:call-template name="partintro.titlepage.verso"/>
|
---|
894 | </xsl:variable>
|
---|
895 | <xsl:variable name="verso.elements.count">
|
---|
896 | <xsl:choose>
|
---|
897 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
898 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
899 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
900 | <xsl:otherwise>1</xsl:otherwise>
|
---|
901 | </xsl:choose>
|
---|
902 | </xsl:variable>
|
---|
903 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
904 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
905 | </xsl:if>
|
---|
906 | <xsl:call-template name="partintro.titlepage.separator"/>
|
---|
907 | </div>
|
---|
908 | </xsl:template>
|
---|
909 |
|
---|
910 | <xsl:template match="*" mode="partintro.titlepage.recto.mode">
|
---|
911 | <!-- if an element isn't found in this mode, -->
|
---|
912 | <!-- try the generic titlepage.mode -->
|
---|
913 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
914 | </xsl:template>
|
---|
915 |
|
---|
916 | <xsl:template match="*" mode="partintro.titlepage.verso.mode">
|
---|
917 | <!-- if an element isn't found in this mode, -->
|
---|
918 | <!-- try the generic titlepage.mode -->
|
---|
919 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
920 | </xsl:template>
|
---|
921 |
|
---|
922 | <xsl:template match="title" mode="partintro.titlepage.recto.auto.mode">
|
---|
923 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
924 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
925 | </div>
|
---|
926 | </xsl:template>
|
---|
927 |
|
---|
928 | <xsl:template match="subtitle" mode="partintro.titlepage.recto.auto.mode">
|
---|
929 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
930 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
931 | </div>
|
---|
932 | </xsl:template>
|
---|
933 |
|
---|
934 | <xsl:template match="corpauthor" mode="partintro.titlepage.recto.auto.mode">
|
---|
935 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
936 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
937 | </div>
|
---|
938 | </xsl:template>
|
---|
939 |
|
---|
940 | <xsl:template match="authorgroup" mode="partintro.titlepage.recto.auto.mode">
|
---|
941 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
942 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
943 | </div>
|
---|
944 | </xsl:template>
|
---|
945 |
|
---|
946 | <xsl:template match="author" mode="partintro.titlepage.recto.auto.mode">
|
---|
947 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
948 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
949 | </div>
|
---|
950 | </xsl:template>
|
---|
951 |
|
---|
952 | <xsl:template match="othercredit" mode="partintro.titlepage.recto.auto.mode">
|
---|
953 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
954 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
955 | </div>
|
---|
956 | </xsl:template>
|
---|
957 |
|
---|
958 | <xsl:template match="releaseinfo" mode="partintro.titlepage.recto.auto.mode">
|
---|
959 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
960 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
961 | </div>
|
---|
962 | </xsl:template>
|
---|
963 |
|
---|
964 | <xsl:template match="copyright" mode="partintro.titlepage.recto.auto.mode">
|
---|
965 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
966 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
967 | </div>
|
---|
968 | </xsl:template>
|
---|
969 |
|
---|
970 | <xsl:template match="legalnotice" mode="partintro.titlepage.recto.auto.mode">
|
---|
971 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
972 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
973 | </div>
|
---|
974 | </xsl:template>
|
---|
975 |
|
---|
976 | <xsl:template match="pubdate" mode="partintro.titlepage.recto.auto.mode">
|
---|
977 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
978 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
979 | </div>
|
---|
980 | </xsl:template>
|
---|
981 |
|
---|
982 | <xsl:template match="revision" mode="partintro.titlepage.recto.auto.mode">
|
---|
983 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
984 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
985 | </div>
|
---|
986 | </xsl:template>
|
---|
987 |
|
---|
988 | <xsl:template match="revhistory" mode="partintro.titlepage.recto.auto.mode">
|
---|
989 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
990 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
991 | </div>
|
---|
992 | </xsl:template>
|
---|
993 |
|
---|
994 | <xsl:template match="abstract" mode="partintro.titlepage.recto.auto.mode">
|
---|
995 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="partintro.titlepage.recto.style">
|
---|
996 | <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
|
---|
997 | </div>
|
---|
998 | </xsl:template>
|
---|
999 |
|
---|
1000 | <xsl:template name="reference.titlepage.recto">
|
---|
1001 | <xsl:choose>
|
---|
1002 | <xsl:when test="referenceinfo/title">
|
---|
1003 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/title"/>
|
---|
1004 | </xsl:when>
|
---|
1005 | <xsl:when test="docinfo/title">
|
---|
1006 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/title"/>
|
---|
1007 | </xsl:when>
|
---|
1008 | <xsl:when test="info/title">
|
---|
1009 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/title"/>
|
---|
1010 | </xsl:when>
|
---|
1011 | <xsl:when test="title">
|
---|
1012 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="title"/>
|
---|
1013 | </xsl:when>
|
---|
1014 | </xsl:choose>
|
---|
1015 |
|
---|
1016 | <xsl:choose>
|
---|
1017 | <xsl:when test="referenceinfo/subtitle">
|
---|
1018 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/subtitle"/>
|
---|
1019 | </xsl:when>
|
---|
1020 | <xsl:when test="docinfo/subtitle">
|
---|
1021 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
1022 | </xsl:when>
|
---|
1023 | <xsl:when test="info/subtitle">
|
---|
1024 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
1025 | </xsl:when>
|
---|
1026 | <xsl:when test="subtitle">
|
---|
1027 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
1028 | </xsl:when>
|
---|
1029 | </xsl:choose>
|
---|
1030 |
|
---|
1031 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/corpauthor"/>
|
---|
1032 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
|
---|
1033 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
1034 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/authorgroup"/>
|
---|
1035 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
|
---|
1036 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
1037 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/author"/>
|
---|
1038 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/author"/>
|
---|
1039 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/author"/>
|
---|
1040 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/othercredit"/>
|
---|
1041 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
|
---|
1042 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
1043 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/releaseinfo"/>
|
---|
1044 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
|
---|
1045 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
1046 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/copyright"/>
|
---|
1047 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/copyright"/>
|
---|
1048 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
1049 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/legalnotice"/>
|
---|
1050 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
|
---|
1051 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
1052 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/pubdate"/>
|
---|
1053 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
|
---|
1054 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
1055 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revision"/>
|
---|
1056 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revision"/>
|
---|
1057 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
1058 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/revhistory"/>
|
---|
1059 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
|
---|
1060 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
1061 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="referenceinfo/abstract"/>
|
---|
1062 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="docinfo/abstract"/>
|
---|
1063 | <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
1064 | </xsl:template>
|
---|
1065 |
|
---|
1066 | <xsl:template name="reference.titlepage.verso">
|
---|
1067 | </xsl:template>
|
---|
1068 |
|
---|
1069 | <xsl:template name="reference.titlepage.separator"><hr xmlns="http://www.w3.org/1999/xhtml"/>
|
---|
1070 | </xsl:template>
|
---|
1071 |
|
---|
1072 | <xsl:template name="reference.titlepage.before.recto">
|
---|
1073 | </xsl:template>
|
---|
1074 |
|
---|
1075 | <xsl:template name="reference.titlepage.before.verso">
|
---|
1076 | </xsl:template>
|
---|
1077 |
|
---|
1078 | <xsl:template name="reference.titlepage">
|
---|
1079 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
1080 | <xsl:variable name="recto.content">
|
---|
1081 | <xsl:call-template name="reference.titlepage.before.recto"/>
|
---|
1082 | <xsl:call-template name="reference.titlepage.recto"/>
|
---|
1083 | </xsl:variable>
|
---|
1084 | <xsl:variable name="recto.elements.count">
|
---|
1085 | <xsl:choose>
|
---|
1086 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1087 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1088 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1089 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1090 | </xsl:choose>
|
---|
1091 | </xsl:variable>
|
---|
1092 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
1093 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
1094 | </xsl:if>
|
---|
1095 | <xsl:variable name="verso.content">
|
---|
1096 | <xsl:call-template name="reference.titlepage.before.verso"/>
|
---|
1097 | <xsl:call-template name="reference.titlepage.verso"/>
|
---|
1098 | </xsl:variable>
|
---|
1099 | <xsl:variable name="verso.elements.count">
|
---|
1100 | <xsl:choose>
|
---|
1101 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1102 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1103 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1104 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1105 | </xsl:choose>
|
---|
1106 | </xsl:variable>
|
---|
1107 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
1108 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
1109 | </xsl:if>
|
---|
1110 | <xsl:call-template name="reference.titlepage.separator"/>
|
---|
1111 | </div>
|
---|
1112 | </xsl:template>
|
---|
1113 |
|
---|
1114 | <xsl:template match="*" mode="reference.titlepage.recto.mode">
|
---|
1115 | <!-- if an element isn't found in this mode, -->
|
---|
1116 | <!-- try the generic titlepage.mode -->
|
---|
1117 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1118 | </xsl:template>
|
---|
1119 |
|
---|
1120 | <xsl:template match="*" mode="reference.titlepage.verso.mode">
|
---|
1121 | <!-- if an element isn't found in this mode, -->
|
---|
1122 | <!-- try the generic titlepage.mode -->
|
---|
1123 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1124 | </xsl:template>
|
---|
1125 |
|
---|
1126 | <xsl:template match="title" mode="reference.titlepage.recto.auto.mode">
|
---|
1127 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1128 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1129 | </div>
|
---|
1130 | </xsl:template>
|
---|
1131 |
|
---|
1132 | <xsl:template match="subtitle" mode="reference.titlepage.recto.auto.mode">
|
---|
1133 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1134 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1135 | </div>
|
---|
1136 | </xsl:template>
|
---|
1137 |
|
---|
1138 | <xsl:template match="corpauthor" mode="reference.titlepage.recto.auto.mode">
|
---|
1139 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1140 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1141 | </div>
|
---|
1142 | </xsl:template>
|
---|
1143 |
|
---|
1144 | <xsl:template match="authorgroup" mode="reference.titlepage.recto.auto.mode">
|
---|
1145 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1146 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1147 | </div>
|
---|
1148 | </xsl:template>
|
---|
1149 |
|
---|
1150 | <xsl:template match="author" mode="reference.titlepage.recto.auto.mode">
|
---|
1151 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1152 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1153 | </div>
|
---|
1154 | </xsl:template>
|
---|
1155 |
|
---|
1156 | <xsl:template match="othercredit" mode="reference.titlepage.recto.auto.mode">
|
---|
1157 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1158 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1159 | </div>
|
---|
1160 | </xsl:template>
|
---|
1161 |
|
---|
1162 | <xsl:template match="releaseinfo" mode="reference.titlepage.recto.auto.mode">
|
---|
1163 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1164 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1165 | </div>
|
---|
1166 | </xsl:template>
|
---|
1167 |
|
---|
1168 | <xsl:template match="copyright" mode="reference.titlepage.recto.auto.mode">
|
---|
1169 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1170 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1171 | </div>
|
---|
1172 | </xsl:template>
|
---|
1173 |
|
---|
1174 | <xsl:template match="legalnotice" mode="reference.titlepage.recto.auto.mode">
|
---|
1175 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1176 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1177 | </div>
|
---|
1178 | </xsl:template>
|
---|
1179 |
|
---|
1180 | <xsl:template match="pubdate" mode="reference.titlepage.recto.auto.mode">
|
---|
1181 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1182 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1183 | </div>
|
---|
1184 | </xsl:template>
|
---|
1185 |
|
---|
1186 | <xsl:template match="revision" mode="reference.titlepage.recto.auto.mode">
|
---|
1187 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1188 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1189 | </div>
|
---|
1190 | </xsl:template>
|
---|
1191 |
|
---|
1192 | <xsl:template match="revhistory" mode="reference.titlepage.recto.auto.mode">
|
---|
1193 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1194 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1195 | </div>
|
---|
1196 | </xsl:template>
|
---|
1197 |
|
---|
1198 | <xsl:template match="abstract" mode="reference.titlepage.recto.auto.mode">
|
---|
1199 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="reference.titlepage.recto.style">
|
---|
1200 | <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
|
---|
1201 | </div>
|
---|
1202 | </xsl:template>
|
---|
1203 |
|
---|
1204 | <xsl:template name="refentry.titlepage.recto">
|
---|
1205 | </xsl:template>
|
---|
1206 |
|
---|
1207 | <xsl:template name="refentry.titlepage.verso">
|
---|
1208 | </xsl:template>
|
---|
1209 |
|
---|
1210 | <xsl:template name="refentry.titlepage.separator">
|
---|
1211 | </xsl:template>
|
---|
1212 |
|
---|
1213 | <xsl:template name="refentry.titlepage.before.recto">
|
---|
1214 | </xsl:template>
|
---|
1215 |
|
---|
1216 | <xsl:template name="refentry.titlepage.before.verso">
|
---|
1217 | </xsl:template>
|
---|
1218 |
|
---|
1219 | <xsl:template name="refentry.titlepage">
|
---|
1220 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
1221 | <xsl:variable name="recto.content">
|
---|
1222 | <xsl:call-template name="refentry.titlepage.before.recto"/>
|
---|
1223 | <xsl:call-template name="refentry.titlepage.recto"/>
|
---|
1224 | </xsl:variable>
|
---|
1225 | <xsl:variable name="recto.elements.count">
|
---|
1226 | <xsl:choose>
|
---|
1227 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1228 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1229 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1230 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1231 | </xsl:choose>
|
---|
1232 | </xsl:variable>
|
---|
1233 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
1234 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
1235 | </xsl:if>
|
---|
1236 | <xsl:variable name="verso.content">
|
---|
1237 | <xsl:call-template name="refentry.titlepage.before.verso"/>
|
---|
1238 | <xsl:call-template name="refentry.titlepage.verso"/>
|
---|
1239 | </xsl:variable>
|
---|
1240 | <xsl:variable name="verso.elements.count">
|
---|
1241 | <xsl:choose>
|
---|
1242 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1243 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1244 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1245 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1246 | </xsl:choose>
|
---|
1247 | </xsl:variable>
|
---|
1248 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
1249 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
1250 | </xsl:if>
|
---|
1251 | <xsl:call-template name="refentry.titlepage.separator"/>
|
---|
1252 | </div>
|
---|
1253 | </xsl:template>
|
---|
1254 |
|
---|
1255 | <xsl:template match="*" mode="refentry.titlepage.recto.mode">
|
---|
1256 | <!-- if an element isn't found in this mode, -->
|
---|
1257 | <!-- try the generic titlepage.mode -->
|
---|
1258 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1259 | </xsl:template>
|
---|
1260 |
|
---|
1261 | <xsl:template match="*" mode="refentry.titlepage.verso.mode">
|
---|
1262 | <!-- if an element isn't found in this mode, -->
|
---|
1263 | <!-- try the generic titlepage.mode -->
|
---|
1264 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1265 | </xsl:template>
|
---|
1266 |
|
---|
1267 | <xsl:template name="dedication.titlepage.recto">
|
---|
1268 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="dedication.titlepage.recto.style">
|
---|
1269 | <xsl:call-template name="component.title">
|
---|
1270 | <xsl:with-param name="node" select="ancestor-or-self::dedication[1]"/>
|
---|
1271 | </xsl:call-template></div>
|
---|
1272 | <xsl:choose>
|
---|
1273 | <xsl:when test="dedicationinfo/subtitle">
|
---|
1274 | <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="dedicationinfo/subtitle"/>
|
---|
1275 | </xsl:when>
|
---|
1276 | <xsl:when test="docinfo/subtitle">
|
---|
1277 | <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
1278 | </xsl:when>
|
---|
1279 | <xsl:when test="info/subtitle">
|
---|
1280 | <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
1281 | </xsl:when>
|
---|
1282 | <xsl:when test="subtitle">
|
---|
1283 | <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
1284 | </xsl:when>
|
---|
1285 | </xsl:choose>
|
---|
1286 |
|
---|
1287 | </xsl:template>
|
---|
1288 |
|
---|
1289 | <xsl:template name="dedication.titlepage.verso">
|
---|
1290 | </xsl:template>
|
---|
1291 |
|
---|
1292 | <xsl:template name="dedication.titlepage.separator">
|
---|
1293 | </xsl:template>
|
---|
1294 |
|
---|
1295 | <xsl:template name="dedication.titlepage.before.recto">
|
---|
1296 | </xsl:template>
|
---|
1297 |
|
---|
1298 | <xsl:template name="dedication.titlepage.before.verso">
|
---|
1299 | </xsl:template>
|
---|
1300 |
|
---|
1301 | <xsl:template name="dedication.titlepage">
|
---|
1302 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
1303 | <xsl:variable name="recto.content">
|
---|
1304 | <xsl:call-template name="dedication.titlepage.before.recto"/>
|
---|
1305 | <xsl:call-template name="dedication.titlepage.recto"/>
|
---|
1306 | </xsl:variable>
|
---|
1307 | <xsl:variable name="recto.elements.count">
|
---|
1308 | <xsl:choose>
|
---|
1309 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1310 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1311 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1312 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1313 | </xsl:choose>
|
---|
1314 | </xsl:variable>
|
---|
1315 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
1316 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
1317 | </xsl:if>
|
---|
1318 | <xsl:variable name="verso.content">
|
---|
1319 | <xsl:call-template name="dedication.titlepage.before.verso"/>
|
---|
1320 | <xsl:call-template name="dedication.titlepage.verso"/>
|
---|
1321 | </xsl:variable>
|
---|
1322 | <xsl:variable name="verso.elements.count">
|
---|
1323 | <xsl:choose>
|
---|
1324 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1325 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1326 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1327 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1328 | </xsl:choose>
|
---|
1329 | </xsl:variable>
|
---|
1330 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
1331 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
1332 | </xsl:if>
|
---|
1333 | <xsl:call-template name="dedication.titlepage.separator"/>
|
---|
1334 | </div>
|
---|
1335 | </xsl:template>
|
---|
1336 |
|
---|
1337 | <xsl:template match="*" mode="dedication.titlepage.recto.mode">
|
---|
1338 | <!-- if an element isn't found in this mode, -->
|
---|
1339 | <!-- try the generic titlepage.mode -->
|
---|
1340 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1341 | </xsl:template>
|
---|
1342 |
|
---|
1343 | <xsl:template match="*" mode="dedication.titlepage.verso.mode">
|
---|
1344 | <!-- if an element isn't found in this mode, -->
|
---|
1345 | <!-- try the generic titlepage.mode -->
|
---|
1346 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1347 | </xsl:template>
|
---|
1348 |
|
---|
1349 | <xsl:template match="subtitle" mode="dedication.titlepage.recto.auto.mode">
|
---|
1350 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="dedication.titlepage.recto.style">
|
---|
1351 | <xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
|
---|
1352 | </div>
|
---|
1353 | </xsl:template>
|
---|
1354 |
|
---|
1355 | <xsl:template name="acknowledgements.titlepage.recto">
|
---|
1356 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="acknowledgements.titlepage.recto.style">
|
---|
1357 | <xsl:call-template name="component.title">
|
---|
1358 | <xsl:with-param name="node" select="ancestor-or-self::acknowledgements[1]"/>
|
---|
1359 | </xsl:call-template></div>
|
---|
1360 | <xsl:choose>
|
---|
1361 | <xsl:when test="acknowledgementsinfo/subtitle">
|
---|
1362 | <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="acknowledgementsinfo/subtitle"/>
|
---|
1363 | </xsl:when>
|
---|
1364 | <xsl:when test="docinfo/subtitle">
|
---|
1365 | <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
1366 | </xsl:when>
|
---|
1367 | <xsl:when test="info/subtitle">
|
---|
1368 | <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
1369 | </xsl:when>
|
---|
1370 | <xsl:when test="subtitle">
|
---|
1371 | <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
1372 | </xsl:when>
|
---|
1373 | </xsl:choose>
|
---|
1374 |
|
---|
1375 | </xsl:template>
|
---|
1376 |
|
---|
1377 | <xsl:template name="acknowledgements.titlepage.verso">
|
---|
1378 | </xsl:template>
|
---|
1379 |
|
---|
1380 | <xsl:template name="acknowledgements.titlepage.separator">
|
---|
1381 | </xsl:template>
|
---|
1382 |
|
---|
1383 | <xsl:template name="acknowledgements.titlepage.before.recto">
|
---|
1384 | </xsl:template>
|
---|
1385 |
|
---|
1386 | <xsl:template name="acknowledgements.titlepage.before.verso">
|
---|
1387 | </xsl:template>
|
---|
1388 |
|
---|
1389 | <xsl:template name="acknowledgements.titlepage">
|
---|
1390 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
1391 | <xsl:variable name="recto.content">
|
---|
1392 | <xsl:call-template name="acknowledgements.titlepage.before.recto"/>
|
---|
1393 | <xsl:call-template name="acknowledgements.titlepage.recto"/>
|
---|
1394 | </xsl:variable>
|
---|
1395 | <xsl:variable name="recto.elements.count">
|
---|
1396 | <xsl:choose>
|
---|
1397 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1398 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1399 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1400 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1401 | </xsl:choose>
|
---|
1402 | </xsl:variable>
|
---|
1403 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
1404 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
1405 | </xsl:if>
|
---|
1406 | <xsl:variable name="verso.content">
|
---|
1407 | <xsl:call-template name="acknowledgements.titlepage.before.verso"/>
|
---|
1408 | <xsl:call-template name="acknowledgements.titlepage.verso"/>
|
---|
1409 | </xsl:variable>
|
---|
1410 | <xsl:variable name="verso.elements.count">
|
---|
1411 | <xsl:choose>
|
---|
1412 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1413 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1414 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1415 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1416 | </xsl:choose>
|
---|
1417 | </xsl:variable>
|
---|
1418 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
1419 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
1420 | </xsl:if>
|
---|
1421 | <xsl:call-template name="acknowledgements.titlepage.separator"/>
|
---|
1422 | </div>
|
---|
1423 | </xsl:template>
|
---|
1424 |
|
---|
1425 | <xsl:template match="*" mode="acknowledgements.titlepage.recto.mode">
|
---|
1426 | <!-- if an element isn't found in this mode, -->
|
---|
1427 | <!-- try the generic titlepage.mode -->
|
---|
1428 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1429 | </xsl:template>
|
---|
1430 |
|
---|
1431 | <xsl:template match="*" mode="acknowledgements.titlepage.verso.mode">
|
---|
1432 | <!-- if an element isn't found in this mode, -->
|
---|
1433 | <!-- try the generic titlepage.mode -->
|
---|
1434 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1435 | </xsl:template>
|
---|
1436 |
|
---|
1437 | <xsl:template match="subtitle" mode="acknowledgements.titlepage.recto.auto.mode">
|
---|
1438 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="acknowledgements.titlepage.recto.style">
|
---|
1439 | <xsl:apply-templates select="." mode="acknowledgements.titlepage.recto.mode"/>
|
---|
1440 | </div>
|
---|
1441 | </xsl:template>
|
---|
1442 |
|
---|
1443 | <xsl:template name="preface.titlepage.recto">
|
---|
1444 | <xsl:choose>
|
---|
1445 | <xsl:when test="prefaceinfo/title">
|
---|
1446 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/title"/>
|
---|
1447 | </xsl:when>
|
---|
1448 | <xsl:when test="docinfo/title">
|
---|
1449 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/title"/>
|
---|
1450 | </xsl:when>
|
---|
1451 | <xsl:when test="info/title">
|
---|
1452 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/title"/>
|
---|
1453 | </xsl:when>
|
---|
1454 | <xsl:when test="title">
|
---|
1455 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="title"/>
|
---|
1456 | </xsl:when>
|
---|
1457 | </xsl:choose>
|
---|
1458 |
|
---|
1459 | <xsl:choose>
|
---|
1460 | <xsl:when test="prefaceinfo/subtitle">
|
---|
1461 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/subtitle"/>
|
---|
1462 | </xsl:when>
|
---|
1463 | <xsl:when test="docinfo/subtitle">
|
---|
1464 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
1465 | </xsl:when>
|
---|
1466 | <xsl:when test="info/subtitle">
|
---|
1467 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
1468 | </xsl:when>
|
---|
1469 | <xsl:when test="subtitle">
|
---|
1470 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
1471 | </xsl:when>
|
---|
1472 | </xsl:choose>
|
---|
1473 |
|
---|
1474 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/corpauthor"/>
|
---|
1475 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
|
---|
1476 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
1477 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/authorgroup"/>
|
---|
1478 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
|
---|
1479 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
1480 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/author"/>
|
---|
1481 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/author"/>
|
---|
1482 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/author"/>
|
---|
1483 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/othercredit"/>
|
---|
1484 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
|
---|
1485 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
1486 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/releaseinfo"/>
|
---|
1487 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
|
---|
1488 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
1489 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/copyright"/>
|
---|
1490 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/copyright"/>
|
---|
1491 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
1492 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/legalnotice"/>
|
---|
1493 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
|
---|
1494 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
1495 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/pubdate"/>
|
---|
1496 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
|
---|
1497 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
1498 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revision"/>
|
---|
1499 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revision"/>
|
---|
1500 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
1501 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/revhistory"/>
|
---|
1502 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
|
---|
1503 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
1504 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="prefaceinfo/abstract"/>
|
---|
1505 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="docinfo/abstract"/>
|
---|
1506 | <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
1507 | </xsl:template>
|
---|
1508 |
|
---|
1509 | <xsl:template name="preface.titlepage.verso">
|
---|
1510 | </xsl:template>
|
---|
1511 |
|
---|
1512 | <xsl:template name="preface.titlepage.separator">
|
---|
1513 | </xsl:template>
|
---|
1514 |
|
---|
1515 | <xsl:template name="preface.titlepage.before.recto">
|
---|
1516 | </xsl:template>
|
---|
1517 |
|
---|
1518 | <xsl:template name="preface.titlepage.before.verso">
|
---|
1519 | </xsl:template>
|
---|
1520 |
|
---|
1521 | <xsl:template name="preface.titlepage">
|
---|
1522 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
1523 | <xsl:variable name="recto.content">
|
---|
1524 | <xsl:call-template name="preface.titlepage.before.recto"/>
|
---|
1525 | <xsl:call-template name="preface.titlepage.recto"/>
|
---|
1526 | </xsl:variable>
|
---|
1527 | <xsl:variable name="recto.elements.count">
|
---|
1528 | <xsl:choose>
|
---|
1529 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1530 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1531 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1532 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1533 | </xsl:choose>
|
---|
1534 | </xsl:variable>
|
---|
1535 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
1536 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
1537 | </xsl:if>
|
---|
1538 | <xsl:variable name="verso.content">
|
---|
1539 | <xsl:call-template name="preface.titlepage.before.verso"/>
|
---|
1540 | <xsl:call-template name="preface.titlepage.verso"/>
|
---|
1541 | </xsl:variable>
|
---|
1542 | <xsl:variable name="verso.elements.count">
|
---|
1543 | <xsl:choose>
|
---|
1544 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1545 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1546 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1547 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1548 | </xsl:choose>
|
---|
1549 | </xsl:variable>
|
---|
1550 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
1551 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
1552 | </xsl:if>
|
---|
1553 | <xsl:call-template name="preface.titlepage.separator"/>
|
---|
1554 | </div>
|
---|
1555 | </xsl:template>
|
---|
1556 |
|
---|
1557 | <xsl:template match="*" mode="preface.titlepage.recto.mode">
|
---|
1558 | <!-- if an element isn't found in this mode, -->
|
---|
1559 | <!-- try the generic titlepage.mode -->
|
---|
1560 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1561 | </xsl:template>
|
---|
1562 |
|
---|
1563 | <xsl:template match="*" mode="preface.titlepage.verso.mode">
|
---|
1564 | <!-- if an element isn't found in this mode, -->
|
---|
1565 | <!-- try the generic titlepage.mode -->
|
---|
1566 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1567 | </xsl:template>
|
---|
1568 |
|
---|
1569 | <xsl:template match="title" mode="preface.titlepage.recto.auto.mode">
|
---|
1570 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1571 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1572 | </div>
|
---|
1573 | </xsl:template>
|
---|
1574 |
|
---|
1575 | <xsl:template match="subtitle" mode="preface.titlepage.recto.auto.mode">
|
---|
1576 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1577 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1578 | </div>
|
---|
1579 | </xsl:template>
|
---|
1580 |
|
---|
1581 | <xsl:template match="corpauthor" mode="preface.titlepage.recto.auto.mode">
|
---|
1582 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1583 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1584 | </div>
|
---|
1585 | </xsl:template>
|
---|
1586 |
|
---|
1587 | <xsl:template match="authorgroup" mode="preface.titlepage.recto.auto.mode">
|
---|
1588 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1589 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1590 | </div>
|
---|
1591 | </xsl:template>
|
---|
1592 |
|
---|
1593 | <xsl:template match="author" mode="preface.titlepage.recto.auto.mode">
|
---|
1594 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1595 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1596 | </div>
|
---|
1597 | </xsl:template>
|
---|
1598 |
|
---|
1599 | <xsl:template match="othercredit" mode="preface.titlepage.recto.auto.mode">
|
---|
1600 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1601 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1602 | </div>
|
---|
1603 | </xsl:template>
|
---|
1604 |
|
---|
1605 | <xsl:template match="releaseinfo" mode="preface.titlepage.recto.auto.mode">
|
---|
1606 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1607 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1608 | </div>
|
---|
1609 | </xsl:template>
|
---|
1610 |
|
---|
1611 | <xsl:template match="copyright" mode="preface.titlepage.recto.auto.mode">
|
---|
1612 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1613 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1614 | </div>
|
---|
1615 | </xsl:template>
|
---|
1616 |
|
---|
1617 | <xsl:template match="legalnotice" mode="preface.titlepage.recto.auto.mode">
|
---|
1618 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1619 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1620 | </div>
|
---|
1621 | </xsl:template>
|
---|
1622 |
|
---|
1623 | <xsl:template match="pubdate" mode="preface.titlepage.recto.auto.mode">
|
---|
1624 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1625 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1626 | </div>
|
---|
1627 | </xsl:template>
|
---|
1628 |
|
---|
1629 | <xsl:template match="revision" mode="preface.titlepage.recto.auto.mode">
|
---|
1630 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1631 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1632 | </div>
|
---|
1633 | </xsl:template>
|
---|
1634 |
|
---|
1635 | <xsl:template match="revhistory" mode="preface.titlepage.recto.auto.mode">
|
---|
1636 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1637 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1638 | </div>
|
---|
1639 | </xsl:template>
|
---|
1640 |
|
---|
1641 | <xsl:template match="abstract" mode="preface.titlepage.recto.auto.mode">
|
---|
1642 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="preface.titlepage.recto.style">
|
---|
1643 | <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
|
---|
1644 | </div>
|
---|
1645 | </xsl:template>
|
---|
1646 |
|
---|
1647 | <xsl:template name="chapter.titlepage.recto">
|
---|
1648 | <xsl:choose>
|
---|
1649 | <xsl:when test="chapterinfo/title">
|
---|
1650 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/title"/>
|
---|
1651 | </xsl:when>
|
---|
1652 | <xsl:when test="docinfo/title">
|
---|
1653 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/title"/>
|
---|
1654 | </xsl:when>
|
---|
1655 | <xsl:when test="info/title">
|
---|
1656 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/title"/>
|
---|
1657 | </xsl:when>
|
---|
1658 | <xsl:when test="title">
|
---|
1659 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="title"/>
|
---|
1660 | </xsl:when>
|
---|
1661 | </xsl:choose>
|
---|
1662 |
|
---|
1663 | <xsl:choose>
|
---|
1664 | <xsl:when test="chapterinfo/subtitle">
|
---|
1665 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/subtitle"/>
|
---|
1666 | </xsl:when>
|
---|
1667 | <xsl:when test="docinfo/subtitle">
|
---|
1668 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
1669 | </xsl:when>
|
---|
1670 | <xsl:when test="info/subtitle">
|
---|
1671 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
1672 | </xsl:when>
|
---|
1673 | <xsl:when test="subtitle">
|
---|
1674 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
1675 | </xsl:when>
|
---|
1676 | </xsl:choose>
|
---|
1677 |
|
---|
1678 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/corpauthor"/>
|
---|
1679 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
|
---|
1680 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
1681 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/authorgroup"/>
|
---|
1682 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
|
---|
1683 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
1684 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/author"/>
|
---|
1685 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/author"/>
|
---|
1686 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/author"/>
|
---|
1687 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/othercredit"/>
|
---|
1688 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
|
---|
1689 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
1690 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/releaseinfo"/>
|
---|
1691 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
|
---|
1692 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
1693 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/copyright"/>
|
---|
1694 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/copyright"/>
|
---|
1695 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
1696 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/legalnotice"/>
|
---|
1697 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
|
---|
1698 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
1699 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/pubdate"/>
|
---|
1700 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
|
---|
1701 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
1702 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revision"/>
|
---|
1703 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revision"/>
|
---|
1704 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
1705 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/revhistory"/>
|
---|
1706 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
|
---|
1707 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
1708 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="chapterinfo/abstract"/>
|
---|
1709 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="docinfo/abstract"/>
|
---|
1710 | <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
1711 | </xsl:template>
|
---|
1712 |
|
---|
1713 | <xsl:template name="chapter.titlepage.verso">
|
---|
1714 | </xsl:template>
|
---|
1715 |
|
---|
1716 | <xsl:template name="chapter.titlepage.separator">
|
---|
1717 | </xsl:template>
|
---|
1718 |
|
---|
1719 | <xsl:template name="chapter.titlepage.before.recto">
|
---|
1720 | </xsl:template>
|
---|
1721 |
|
---|
1722 | <xsl:template name="chapter.titlepage.before.verso">
|
---|
1723 | </xsl:template>
|
---|
1724 |
|
---|
1725 | <xsl:template name="chapter.titlepage">
|
---|
1726 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
1727 | <xsl:variable name="recto.content">
|
---|
1728 | <xsl:call-template name="chapter.titlepage.before.recto"/>
|
---|
1729 | <xsl:call-template name="chapter.titlepage.recto"/>
|
---|
1730 | </xsl:variable>
|
---|
1731 | <xsl:variable name="recto.elements.count">
|
---|
1732 | <xsl:choose>
|
---|
1733 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1734 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1735 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1736 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1737 | </xsl:choose>
|
---|
1738 | </xsl:variable>
|
---|
1739 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
1740 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
1741 | </xsl:if>
|
---|
1742 | <xsl:variable name="verso.content">
|
---|
1743 | <xsl:call-template name="chapter.titlepage.before.verso"/>
|
---|
1744 | <xsl:call-template name="chapter.titlepage.verso"/>
|
---|
1745 | </xsl:variable>
|
---|
1746 | <xsl:variable name="verso.elements.count">
|
---|
1747 | <xsl:choose>
|
---|
1748 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1749 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1750 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1751 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1752 | </xsl:choose>
|
---|
1753 | </xsl:variable>
|
---|
1754 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
1755 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
1756 | </xsl:if>
|
---|
1757 | <xsl:call-template name="chapter.titlepage.separator"/>
|
---|
1758 | </div>
|
---|
1759 | </xsl:template>
|
---|
1760 |
|
---|
1761 | <xsl:template match="*" mode="chapter.titlepage.recto.mode">
|
---|
1762 | <!-- if an element isn't found in this mode, -->
|
---|
1763 | <!-- try the generic titlepage.mode -->
|
---|
1764 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1765 | </xsl:template>
|
---|
1766 |
|
---|
1767 | <xsl:template match="*" mode="chapter.titlepage.verso.mode">
|
---|
1768 | <!-- if an element isn't found in this mode, -->
|
---|
1769 | <!-- try the generic titlepage.mode -->
|
---|
1770 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1771 | </xsl:template>
|
---|
1772 |
|
---|
1773 | <xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
|
---|
1774 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1775 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1776 | </div>
|
---|
1777 | </xsl:template>
|
---|
1778 |
|
---|
1779 | <xsl:template match="subtitle" mode="chapter.titlepage.recto.auto.mode">
|
---|
1780 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1781 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1782 | </div>
|
---|
1783 | </xsl:template>
|
---|
1784 |
|
---|
1785 | <xsl:template match="corpauthor" mode="chapter.titlepage.recto.auto.mode">
|
---|
1786 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1787 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1788 | </div>
|
---|
1789 | </xsl:template>
|
---|
1790 |
|
---|
1791 | <xsl:template match="authorgroup" mode="chapter.titlepage.recto.auto.mode">
|
---|
1792 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1793 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1794 | </div>
|
---|
1795 | </xsl:template>
|
---|
1796 |
|
---|
1797 | <xsl:template match="author" mode="chapter.titlepage.recto.auto.mode">
|
---|
1798 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1799 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1800 | </div>
|
---|
1801 | </xsl:template>
|
---|
1802 |
|
---|
1803 | <xsl:template match="othercredit" mode="chapter.titlepage.recto.auto.mode">
|
---|
1804 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1805 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1806 | </div>
|
---|
1807 | </xsl:template>
|
---|
1808 |
|
---|
1809 | <xsl:template match="releaseinfo" mode="chapter.titlepage.recto.auto.mode">
|
---|
1810 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1811 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1812 | </div>
|
---|
1813 | </xsl:template>
|
---|
1814 |
|
---|
1815 | <xsl:template match="copyright" mode="chapter.titlepage.recto.auto.mode">
|
---|
1816 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1817 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1818 | </div>
|
---|
1819 | </xsl:template>
|
---|
1820 |
|
---|
1821 | <xsl:template match="legalnotice" mode="chapter.titlepage.recto.auto.mode">
|
---|
1822 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1823 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1824 | </div>
|
---|
1825 | </xsl:template>
|
---|
1826 |
|
---|
1827 | <xsl:template match="pubdate" mode="chapter.titlepage.recto.auto.mode">
|
---|
1828 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1829 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1830 | </div>
|
---|
1831 | </xsl:template>
|
---|
1832 |
|
---|
1833 | <xsl:template match="revision" mode="chapter.titlepage.recto.auto.mode">
|
---|
1834 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1835 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1836 | </div>
|
---|
1837 | </xsl:template>
|
---|
1838 |
|
---|
1839 | <xsl:template match="revhistory" mode="chapter.titlepage.recto.auto.mode">
|
---|
1840 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1841 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1842 | </div>
|
---|
1843 | </xsl:template>
|
---|
1844 |
|
---|
1845 | <xsl:template match="abstract" mode="chapter.titlepage.recto.auto.mode">
|
---|
1846 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="chapter.titlepage.recto.style">
|
---|
1847 | <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
|
---|
1848 | </div>
|
---|
1849 | </xsl:template>
|
---|
1850 |
|
---|
1851 | <xsl:template name="appendix.titlepage.recto">
|
---|
1852 | <xsl:choose>
|
---|
1853 | <xsl:when test="appendixinfo/title">
|
---|
1854 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/title"/>
|
---|
1855 | </xsl:when>
|
---|
1856 | <xsl:when test="docinfo/title">
|
---|
1857 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/title"/>
|
---|
1858 | </xsl:when>
|
---|
1859 | <xsl:when test="info/title">
|
---|
1860 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/title"/>
|
---|
1861 | </xsl:when>
|
---|
1862 | <xsl:when test="title">
|
---|
1863 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="title"/>
|
---|
1864 | </xsl:when>
|
---|
1865 | </xsl:choose>
|
---|
1866 |
|
---|
1867 | <xsl:choose>
|
---|
1868 | <xsl:when test="appendixinfo/subtitle">
|
---|
1869 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/subtitle"/>
|
---|
1870 | </xsl:when>
|
---|
1871 | <xsl:when test="docinfo/subtitle">
|
---|
1872 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
1873 | </xsl:when>
|
---|
1874 | <xsl:when test="info/subtitle">
|
---|
1875 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
1876 | </xsl:when>
|
---|
1877 | <xsl:when test="subtitle">
|
---|
1878 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
1879 | </xsl:when>
|
---|
1880 | </xsl:choose>
|
---|
1881 |
|
---|
1882 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/corpauthor"/>
|
---|
1883 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
|
---|
1884 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
1885 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/authorgroup"/>
|
---|
1886 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
|
---|
1887 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
1888 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/author"/>
|
---|
1889 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/author"/>
|
---|
1890 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/author"/>
|
---|
1891 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/othercredit"/>
|
---|
1892 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
|
---|
1893 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
1894 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/releaseinfo"/>
|
---|
1895 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
|
---|
1896 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
1897 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/copyright"/>
|
---|
1898 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/copyright"/>
|
---|
1899 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
1900 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/legalnotice"/>
|
---|
1901 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
|
---|
1902 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
1903 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/pubdate"/>
|
---|
1904 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
|
---|
1905 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
1906 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revision"/>
|
---|
1907 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revision"/>
|
---|
1908 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
1909 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/revhistory"/>
|
---|
1910 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
|
---|
1911 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
1912 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="appendixinfo/abstract"/>
|
---|
1913 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="docinfo/abstract"/>
|
---|
1914 | <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
1915 | </xsl:template>
|
---|
1916 |
|
---|
1917 | <xsl:template name="appendix.titlepage.verso">
|
---|
1918 | </xsl:template>
|
---|
1919 |
|
---|
1920 | <xsl:template name="appendix.titlepage.separator">
|
---|
1921 | </xsl:template>
|
---|
1922 |
|
---|
1923 | <xsl:template name="appendix.titlepage.before.recto">
|
---|
1924 | </xsl:template>
|
---|
1925 |
|
---|
1926 | <xsl:template name="appendix.titlepage.before.verso">
|
---|
1927 | </xsl:template>
|
---|
1928 |
|
---|
1929 | <xsl:template name="appendix.titlepage">
|
---|
1930 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
1931 | <xsl:variable name="recto.content">
|
---|
1932 | <xsl:call-template name="appendix.titlepage.before.recto"/>
|
---|
1933 | <xsl:call-template name="appendix.titlepage.recto"/>
|
---|
1934 | </xsl:variable>
|
---|
1935 | <xsl:variable name="recto.elements.count">
|
---|
1936 | <xsl:choose>
|
---|
1937 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1938 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1939 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
1940 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1941 | </xsl:choose>
|
---|
1942 | </xsl:variable>
|
---|
1943 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
1944 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
1945 | </xsl:if>
|
---|
1946 | <xsl:variable name="verso.content">
|
---|
1947 | <xsl:call-template name="appendix.titlepage.before.verso"/>
|
---|
1948 | <xsl:call-template name="appendix.titlepage.verso"/>
|
---|
1949 | </xsl:variable>
|
---|
1950 | <xsl:variable name="verso.elements.count">
|
---|
1951 | <xsl:choose>
|
---|
1952 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1953 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
1954 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
1955 | <xsl:otherwise>1</xsl:otherwise>
|
---|
1956 | </xsl:choose>
|
---|
1957 | </xsl:variable>
|
---|
1958 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
1959 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
1960 | </xsl:if>
|
---|
1961 | <xsl:call-template name="appendix.titlepage.separator"/>
|
---|
1962 | </div>
|
---|
1963 | </xsl:template>
|
---|
1964 |
|
---|
1965 | <xsl:template match="*" mode="appendix.titlepage.recto.mode">
|
---|
1966 | <!-- if an element isn't found in this mode, -->
|
---|
1967 | <!-- try the generic titlepage.mode -->
|
---|
1968 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1969 | </xsl:template>
|
---|
1970 |
|
---|
1971 | <xsl:template match="*" mode="appendix.titlepage.verso.mode">
|
---|
1972 | <!-- if an element isn't found in this mode, -->
|
---|
1973 | <!-- try the generic titlepage.mode -->
|
---|
1974 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
1975 | </xsl:template>
|
---|
1976 |
|
---|
1977 | <xsl:template match="title" mode="appendix.titlepage.recto.auto.mode">
|
---|
1978 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
1979 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
1980 | </div>
|
---|
1981 | </xsl:template>
|
---|
1982 |
|
---|
1983 | <xsl:template match="subtitle" mode="appendix.titlepage.recto.auto.mode">
|
---|
1984 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
1985 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
1986 | </div>
|
---|
1987 | </xsl:template>
|
---|
1988 |
|
---|
1989 | <xsl:template match="corpauthor" mode="appendix.titlepage.recto.auto.mode">
|
---|
1990 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
1991 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
1992 | </div>
|
---|
1993 | </xsl:template>
|
---|
1994 |
|
---|
1995 | <xsl:template match="authorgroup" mode="appendix.titlepage.recto.auto.mode">
|
---|
1996 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
1997 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
1998 | </div>
|
---|
1999 | </xsl:template>
|
---|
2000 |
|
---|
2001 | <xsl:template match="author" mode="appendix.titlepage.recto.auto.mode">
|
---|
2002 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
2003 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
2004 | </div>
|
---|
2005 | </xsl:template>
|
---|
2006 |
|
---|
2007 | <xsl:template match="othercredit" mode="appendix.titlepage.recto.auto.mode">
|
---|
2008 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
2009 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
2010 | </div>
|
---|
2011 | </xsl:template>
|
---|
2012 |
|
---|
2013 | <xsl:template match="releaseinfo" mode="appendix.titlepage.recto.auto.mode">
|
---|
2014 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
2015 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
2016 | </div>
|
---|
2017 | </xsl:template>
|
---|
2018 |
|
---|
2019 | <xsl:template match="copyright" mode="appendix.titlepage.recto.auto.mode">
|
---|
2020 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
2021 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
2022 | </div>
|
---|
2023 | </xsl:template>
|
---|
2024 |
|
---|
2025 | <xsl:template match="legalnotice" mode="appendix.titlepage.recto.auto.mode">
|
---|
2026 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
2027 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
2028 | </div>
|
---|
2029 | </xsl:template>
|
---|
2030 |
|
---|
2031 | <xsl:template match="pubdate" mode="appendix.titlepage.recto.auto.mode">
|
---|
2032 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
2033 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
2034 | </div>
|
---|
2035 | </xsl:template>
|
---|
2036 |
|
---|
2037 | <xsl:template match="revision" mode="appendix.titlepage.recto.auto.mode">
|
---|
2038 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
2039 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
2040 | </div>
|
---|
2041 | </xsl:template>
|
---|
2042 |
|
---|
2043 | <xsl:template match="revhistory" mode="appendix.titlepage.recto.auto.mode">
|
---|
2044 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
2045 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
2046 | </div>
|
---|
2047 | </xsl:template>
|
---|
2048 |
|
---|
2049 | <xsl:template match="abstract" mode="appendix.titlepage.recto.auto.mode">
|
---|
2050 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="appendix.titlepage.recto.style">
|
---|
2051 | <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
|
---|
2052 | </div>
|
---|
2053 | </xsl:template>
|
---|
2054 |
|
---|
2055 | <xsl:template name="section.titlepage.recto">
|
---|
2056 | <xsl:choose>
|
---|
2057 | <xsl:when test="sectioninfo/title">
|
---|
2058 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/title"/>
|
---|
2059 | </xsl:when>
|
---|
2060 | <xsl:when test="info/title">
|
---|
2061 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/title"/>
|
---|
2062 | </xsl:when>
|
---|
2063 | <xsl:when test="title">
|
---|
2064 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="title"/>
|
---|
2065 | </xsl:when>
|
---|
2066 | </xsl:choose>
|
---|
2067 |
|
---|
2068 | <xsl:choose>
|
---|
2069 | <xsl:when test="sectioninfo/subtitle">
|
---|
2070 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/subtitle"/>
|
---|
2071 | </xsl:when>
|
---|
2072 | <xsl:when test="info/subtitle">
|
---|
2073 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
2074 | </xsl:when>
|
---|
2075 | <xsl:when test="subtitle">
|
---|
2076 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
2077 | </xsl:when>
|
---|
2078 | </xsl:choose>
|
---|
2079 |
|
---|
2080 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/corpauthor"/>
|
---|
2081 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
2082 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/authorgroup"/>
|
---|
2083 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
2084 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/author"/>
|
---|
2085 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/author"/>
|
---|
2086 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/othercredit"/>
|
---|
2087 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
2088 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/releaseinfo"/>
|
---|
2089 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
2090 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/copyright"/>
|
---|
2091 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
2092 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/legalnotice"/>
|
---|
2093 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
2094 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/pubdate"/>
|
---|
2095 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
2096 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revision"/>
|
---|
2097 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
2098 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/revhistory"/>
|
---|
2099 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
2100 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="sectioninfo/abstract"/>
|
---|
2101 | <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
2102 | </xsl:template>
|
---|
2103 |
|
---|
2104 | <xsl:template name="section.titlepage.verso">
|
---|
2105 | </xsl:template>
|
---|
2106 |
|
---|
2107 | <xsl:template name="section.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr xmlns="http://www.w3.org/1999/xhtml"/></xsl:if>
|
---|
2108 | </xsl:template>
|
---|
2109 |
|
---|
2110 | <xsl:template name="section.titlepage.before.recto">
|
---|
2111 | </xsl:template>
|
---|
2112 |
|
---|
2113 | <xsl:template name="section.titlepage.before.verso">
|
---|
2114 | </xsl:template>
|
---|
2115 |
|
---|
2116 | <xsl:template name="section.titlepage">
|
---|
2117 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
2118 | <xsl:variable name="recto.content">
|
---|
2119 | <xsl:call-template name="section.titlepage.before.recto"/>
|
---|
2120 | <xsl:call-template name="section.titlepage.recto"/>
|
---|
2121 | </xsl:variable>
|
---|
2122 | <xsl:variable name="recto.elements.count">
|
---|
2123 | <xsl:choose>
|
---|
2124 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
2125 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
2126 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
2127 | <xsl:otherwise>1</xsl:otherwise>
|
---|
2128 | </xsl:choose>
|
---|
2129 | </xsl:variable>
|
---|
2130 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
2131 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
2132 | </xsl:if>
|
---|
2133 | <xsl:variable name="verso.content">
|
---|
2134 | <xsl:call-template name="section.titlepage.before.verso"/>
|
---|
2135 | <xsl:call-template name="section.titlepage.verso"/>
|
---|
2136 | </xsl:variable>
|
---|
2137 | <xsl:variable name="verso.elements.count">
|
---|
2138 | <xsl:choose>
|
---|
2139 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
2140 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
2141 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
2142 | <xsl:otherwise>1</xsl:otherwise>
|
---|
2143 | </xsl:choose>
|
---|
2144 | </xsl:variable>
|
---|
2145 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
2146 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
2147 | </xsl:if>
|
---|
2148 | <xsl:call-template name="section.titlepage.separator"/>
|
---|
2149 | </div>
|
---|
2150 | </xsl:template>
|
---|
2151 |
|
---|
2152 | <xsl:template match="*" mode="section.titlepage.recto.mode">
|
---|
2153 | <!-- if an element isn't found in this mode, -->
|
---|
2154 | <!-- try the generic titlepage.mode -->
|
---|
2155 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
2156 | </xsl:template>
|
---|
2157 |
|
---|
2158 | <xsl:template match="*" mode="section.titlepage.verso.mode">
|
---|
2159 | <!-- if an element isn't found in this mode, -->
|
---|
2160 | <!-- try the generic titlepage.mode -->
|
---|
2161 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
2162 | </xsl:template>
|
---|
2163 |
|
---|
2164 | <xsl:template match="title" mode="section.titlepage.recto.auto.mode">
|
---|
2165 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2166 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2167 | </div>
|
---|
2168 | </xsl:template>
|
---|
2169 |
|
---|
2170 | <xsl:template match="subtitle" mode="section.titlepage.recto.auto.mode">
|
---|
2171 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2172 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2173 | </div>
|
---|
2174 | </xsl:template>
|
---|
2175 |
|
---|
2176 | <xsl:template match="corpauthor" mode="section.titlepage.recto.auto.mode">
|
---|
2177 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2178 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2179 | </div>
|
---|
2180 | </xsl:template>
|
---|
2181 |
|
---|
2182 | <xsl:template match="authorgroup" mode="section.titlepage.recto.auto.mode">
|
---|
2183 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2184 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2185 | </div>
|
---|
2186 | </xsl:template>
|
---|
2187 |
|
---|
2188 | <xsl:template match="author" mode="section.titlepage.recto.auto.mode">
|
---|
2189 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2190 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2191 | </div>
|
---|
2192 | </xsl:template>
|
---|
2193 |
|
---|
2194 | <xsl:template match="othercredit" mode="section.titlepage.recto.auto.mode">
|
---|
2195 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2196 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2197 | </div>
|
---|
2198 | </xsl:template>
|
---|
2199 |
|
---|
2200 | <xsl:template match="releaseinfo" mode="section.titlepage.recto.auto.mode">
|
---|
2201 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2202 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2203 | </div>
|
---|
2204 | </xsl:template>
|
---|
2205 |
|
---|
2206 | <xsl:template match="copyright" mode="section.titlepage.recto.auto.mode">
|
---|
2207 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2208 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2209 | </div>
|
---|
2210 | </xsl:template>
|
---|
2211 |
|
---|
2212 | <xsl:template match="legalnotice" mode="section.titlepage.recto.auto.mode">
|
---|
2213 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2214 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2215 | </div>
|
---|
2216 | </xsl:template>
|
---|
2217 |
|
---|
2218 | <xsl:template match="pubdate" mode="section.titlepage.recto.auto.mode">
|
---|
2219 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2220 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2221 | </div>
|
---|
2222 | </xsl:template>
|
---|
2223 |
|
---|
2224 | <xsl:template match="revision" mode="section.titlepage.recto.auto.mode">
|
---|
2225 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2226 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2227 | </div>
|
---|
2228 | </xsl:template>
|
---|
2229 |
|
---|
2230 | <xsl:template match="revhistory" mode="section.titlepage.recto.auto.mode">
|
---|
2231 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2232 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2233 | </div>
|
---|
2234 | </xsl:template>
|
---|
2235 |
|
---|
2236 | <xsl:template match="abstract" mode="section.titlepage.recto.auto.mode">
|
---|
2237 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="section.titlepage.recto.style">
|
---|
2238 | <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
|
---|
2239 | </div>
|
---|
2240 | </xsl:template>
|
---|
2241 |
|
---|
2242 | <xsl:template name="sect1.titlepage.recto">
|
---|
2243 | <xsl:choose>
|
---|
2244 | <xsl:when test="sect1info/title">
|
---|
2245 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/title"/>
|
---|
2246 | </xsl:when>
|
---|
2247 | <xsl:when test="info/title">
|
---|
2248 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/title"/>
|
---|
2249 | </xsl:when>
|
---|
2250 | <xsl:when test="title">
|
---|
2251 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="title"/>
|
---|
2252 | </xsl:when>
|
---|
2253 | </xsl:choose>
|
---|
2254 |
|
---|
2255 | <xsl:choose>
|
---|
2256 | <xsl:when test="sect1info/subtitle">
|
---|
2257 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/subtitle"/>
|
---|
2258 | </xsl:when>
|
---|
2259 | <xsl:when test="info/subtitle">
|
---|
2260 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
2261 | </xsl:when>
|
---|
2262 | <xsl:when test="subtitle">
|
---|
2263 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
2264 | </xsl:when>
|
---|
2265 | </xsl:choose>
|
---|
2266 |
|
---|
2267 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/corpauthor"/>
|
---|
2268 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
2269 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/authorgroup"/>
|
---|
2270 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
2271 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/author"/>
|
---|
2272 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/author"/>
|
---|
2273 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/othercredit"/>
|
---|
2274 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
2275 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/releaseinfo"/>
|
---|
2276 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
2277 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/copyright"/>
|
---|
2278 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
2279 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/legalnotice"/>
|
---|
2280 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
2281 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/pubdate"/>
|
---|
2282 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
2283 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revision"/>
|
---|
2284 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
2285 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/revhistory"/>
|
---|
2286 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
2287 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="sect1info/abstract"/>
|
---|
2288 | <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
2289 | </xsl:template>
|
---|
2290 |
|
---|
2291 | <xsl:template name="sect1.titlepage.verso">
|
---|
2292 | </xsl:template>
|
---|
2293 |
|
---|
2294 | <xsl:template name="sect1.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr xmlns="http://www.w3.org/1999/xhtml"/></xsl:if>
|
---|
2295 | </xsl:template>
|
---|
2296 |
|
---|
2297 | <xsl:template name="sect1.titlepage.before.recto">
|
---|
2298 | </xsl:template>
|
---|
2299 |
|
---|
2300 | <xsl:template name="sect1.titlepage.before.verso">
|
---|
2301 | </xsl:template>
|
---|
2302 |
|
---|
2303 | <xsl:template name="sect1.titlepage">
|
---|
2304 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
2305 | <xsl:variable name="recto.content">
|
---|
2306 | <xsl:call-template name="sect1.titlepage.before.recto"/>
|
---|
2307 | <xsl:call-template name="sect1.titlepage.recto"/>
|
---|
2308 | </xsl:variable>
|
---|
2309 | <xsl:variable name="recto.elements.count">
|
---|
2310 | <xsl:choose>
|
---|
2311 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
2312 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
2313 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
2314 | <xsl:otherwise>1</xsl:otherwise>
|
---|
2315 | </xsl:choose>
|
---|
2316 | </xsl:variable>
|
---|
2317 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
2318 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
2319 | </xsl:if>
|
---|
2320 | <xsl:variable name="verso.content">
|
---|
2321 | <xsl:call-template name="sect1.titlepage.before.verso"/>
|
---|
2322 | <xsl:call-template name="sect1.titlepage.verso"/>
|
---|
2323 | </xsl:variable>
|
---|
2324 | <xsl:variable name="verso.elements.count">
|
---|
2325 | <xsl:choose>
|
---|
2326 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
2327 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
2328 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
2329 | <xsl:otherwise>1</xsl:otherwise>
|
---|
2330 | </xsl:choose>
|
---|
2331 | </xsl:variable>
|
---|
2332 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
2333 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
2334 | </xsl:if>
|
---|
2335 | <xsl:call-template name="sect1.titlepage.separator"/>
|
---|
2336 | </div>
|
---|
2337 | </xsl:template>
|
---|
2338 |
|
---|
2339 | <xsl:template match="*" mode="sect1.titlepage.recto.mode">
|
---|
2340 | <!-- if an element isn't found in this mode, -->
|
---|
2341 | <!-- try the generic titlepage.mode -->
|
---|
2342 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
2343 | </xsl:template>
|
---|
2344 |
|
---|
2345 | <xsl:template match="*" mode="sect1.titlepage.verso.mode">
|
---|
2346 | <!-- if an element isn't found in this mode, -->
|
---|
2347 | <!-- try the generic titlepage.mode -->
|
---|
2348 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
2349 | </xsl:template>
|
---|
2350 |
|
---|
2351 | <xsl:template match="title" mode="sect1.titlepage.recto.auto.mode">
|
---|
2352 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2353 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2354 | </div>
|
---|
2355 | </xsl:template>
|
---|
2356 |
|
---|
2357 | <xsl:template match="subtitle" mode="sect1.titlepage.recto.auto.mode">
|
---|
2358 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2359 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2360 | </div>
|
---|
2361 | </xsl:template>
|
---|
2362 |
|
---|
2363 | <xsl:template match="corpauthor" mode="sect1.titlepage.recto.auto.mode">
|
---|
2364 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2365 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2366 | </div>
|
---|
2367 | </xsl:template>
|
---|
2368 |
|
---|
2369 | <xsl:template match="authorgroup" mode="sect1.titlepage.recto.auto.mode">
|
---|
2370 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2371 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2372 | </div>
|
---|
2373 | </xsl:template>
|
---|
2374 |
|
---|
2375 | <xsl:template match="author" mode="sect1.titlepage.recto.auto.mode">
|
---|
2376 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2377 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2378 | </div>
|
---|
2379 | </xsl:template>
|
---|
2380 |
|
---|
2381 | <xsl:template match="othercredit" mode="sect1.titlepage.recto.auto.mode">
|
---|
2382 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2383 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2384 | </div>
|
---|
2385 | </xsl:template>
|
---|
2386 |
|
---|
2387 | <xsl:template match="releaseinfo" mode="sect1.titlepage.recto.auto.mode">
|
---|
2388 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2389 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2390 | </div>
|
---|
2391 | </xsl:template>
|
---|
2392 |
|
---|
2393 | <xsl:template match="copyright" mode="sect1.titlepage.recto.auto.mode">
|
---|
2394 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2395 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2396 | </div>
|
---|
2397 | </xsl:template>
|
---|
2398 |
|
---|
2399 | <xsl:template match="legalnotice" mode="sect1.titlepage.recto.auto.mode">
|
---|
2400 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2401 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2402 | </div>
|
---|
2403 | </xsl:template>
|
---|
2404 |
|
---|
2405 | <xsl:template match="pubdate" mode="sect1.titlepage.recto.auto.mode">
|
---|
2406 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2407 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2408 | </div>
|
---|
2409 | </xsl:template>
|
---|
2410 |
|
---|
2411 | <xsl:template match="revision" mode="sect1.titlepage.recto.auto.mode">
|
---|
2412 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2413 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2414 | </div>
|
---|
2415 | </xsl:template>
|
---|
2416 |
|
---|
2417 | <xsl:template match="revhistory" mode="sect1.titlepage.recto.auto.mode">
|
---|
2418 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2419 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2420 | </div>
|
---|
2421 | </xsl:template>
|
---|
2422 |
|
---|
2423 | <xsl:template match="abstract" mode="sect1.titlepage.recto.auto.mode">
|
---|
2424 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect1.titlepage.recto.style">
|
---|
2425 | <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
|
---|
2426 | </div>
|
---|
2427 | </xsl:template>
|
---|
2428 |
|
---|
2429 | <xsl:template name="sect2.titlepage.recto">
|
---|
2430 | <xsl:choose>
|
---|
2431 | <xsl:when test="sect2info/title">
|
---|
2432 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/title"/>
|
---|
2433 | </xsl:when>
|
---|
2434 | <xsl:when test="info/title">
|
---|
2435 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/title"/>
|
---|
2436 | </xsl:when>
|
---|
2437 | <xsl:when test="title">
|
---|
2438 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="title"/>
|
---|
2439 | </xsl:when>
|
---|
2440 | </xsl:choose>
|
---|
2441 |
|
---|
2442 | <xsl:choose>
|
---|
2443 | <xsl:when test="sect2info/subtitle">
|
---|
2444 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/subtitle"/>
|
---|
2445 | </xsl:when>
|
---|
2446 | <xsl:when test="info/subtitle">
|
---|
2447 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
2448 | </xsl:when>
|
---|
2449 | <xsl:when test="subtitle">
|
---|
2450 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
2451 | </xsl:when>
|
---|
2452 | </xsl:choose>
|
---|
2453 |
|
---|
2454 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/corpauthor"/>
|
---|
2455 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
2456 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/authorgroup"/>
|
---|
2457 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
2458 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/author"/>
|
---|
2459 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/author"/>
|
---|
2460 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/othercredit"/>
|
---|
2461 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
2462 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/releaseinfo"/>
|
---|
2463 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
2464 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/copyright"/>
|
---|
2465 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
2466 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/legalnotice"/>
|
---|
2467 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
2468 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/pubdate"/>
|
---|
2469 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
2470 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revision"/>
|
---|
2471 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
2472 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/revhistory"/>
|
---|
2473 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
2474 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="sect2info/abstract"/>
|
---|
2475 | <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
2476 | </xsl:template>
|
---|
2477 |
|
---|
2478 | <xsl:template name="sect2.titlepage.verso">
|
---|
2479 | </xsl:template>
|
---|
2480 |
|
---|
2481 | <xsl:template name="sect2.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr xmlns="http://www.w3.org/1999/xhtml"/></xsl:if>
|
---|
2482 | </xsl:template>
|
---|
2483 |
|
---|
2484 | <xsl:template name="sect2.titlepage.before.recto">
|
---|
2485 | </xsl:template>
|
---|
2486 |
|
---|
2487 | <xsl:template name="sect2.titlepage.before.verso">
|
---|
2488 | </xsl:template>
|
---|
2489 |
|
---|
2490 | <xsl:template name="sect2.titlepage">
|
---|
2491 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
2492 | <xsl:variable name="recto.content">
|
---|
2493 | <xsl:call-template name="sect2.titlepage.before.recto"/>
|
---|
2494 | <xsl:call-template name="sect2.titlepage.recto"/>
|
---|
2495 | </xsl:variable>
|
---|
2496 | <xsl:variable name="recto.elements.count">
|
---|
2497 | <xsl:choose>
|
---|
2498 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
2499 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
2500 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
2501 | <xsl:otherwise>1</xsl:otherwise>
|
---|
2502 | </xsl:choose>
|
---|
2503 | </xsl:variable>
|
---|
2504 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
2505 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
2506 | </xsl:if>
|
---|
2507 | <xsl:variable name="verso.content">
|
---|
2508 | <xsl:call-template name="sect2.titlepage.before.verso"/>
|
---|
2509 | <xsl:call-template name="sect2.titlepage.verso"/>
|
---|
2510 | </xsl:variable>
|
---|
2511 | <xsl:variable name="verso.elements.count">
|
---|
2512 | <xsl:choose>
|
---|
2513 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
2514 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
2515 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
2516 | <xsl:otherwise>1</xsl:otherwise>
|
---|
2517 | </xsl:choose>
|
---|
2518 | </xsl:variable>
|
---|
2519 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
2520 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
2521 | </xsl:if>
|
---|
2522 | <xsl:call-template name="sect2.titlepage.separator"/>
|
---|
2523 | </div>
|
---|
2524 | </xsl:template>
|
---|
2525 |
|
---|
2526 | <xsl:template match="*" mode="sect2.titlepage.recto.mode">
|
---|
2527 | <!-- if an element isn't found in this mode, -->
|
---|
2528 | <!-- try the generic titlepage.mode -->
|
---|
2529 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
2530 | </xsl:template>
|
---|
2531 |
|
---|
2532 | <xsl:template match="*" mode="sect2.titlepage.verso.mode">
|
---|
2533 | <!-- if an element isn't found in this mode, -->
|
---|
2534 | <!-- try the generic titlepage.mode -->
|
---|
2535 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
2536 | </xsl:template>
|
---|
2537 |
|
---|
2538 | <xsl:template match="title" mode="sect2.titlepage.recto.auto.mode">
|
---|
2539 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2540 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2541 | </div>
|
---|
2542 | </xsl:template>
|
---|
2543 |
|
---|
2544 | <xsl:template match="subtitle" mode="sect2.titlepage.recto.auto.mode">
|
---|
2545 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2546 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2547 | </div>
|
---|
2548 | </xsl:template>
|
---|
2549 |
|
---|
2550 | <xsl:template match="corpauthor" mode="sect2.titlepage.recto.auto.mode">
|
---|
2551 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2552 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2553 | </div>
|
---|
2554 | </xsl:template>
|
---|
2555 |
|
---|
2556 | <xsl:template match="authorgroup" mode="sect2.titlepage.recto.auto.mode">
|
---|
2557 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2558 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2559 | </div>
|
---|
2560 | </xsl:template>
|
---|
2561 |
|
---|
2562 | <xsl:template match="author" mode="sect2.titlepage.recto.auto.mode">
|
---|
2563 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2564 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2565 | </div>
|
---|
2566 | </xsl:template>
|
---|
2567 |
|
---|
2568 | <xsl:template match="othercredit" mode="sect2.titlepage.recto.auto.mode">
|
---|
2569 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2570 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2571 | </div>
|
---|
2572 | </xsl:template>
|
---|
2573 |
|
---|
2574 | <xsl:template match="releaseinfo" mode="sect2.titlepage.recto.auto.mode">
|
---|
2575 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2576 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2577 | </div>
|
---|
2578 | </xsl:template>
|
---|
2579 |
|
---|
2580 | <xsl:template match="copyright" mode="sect2.titlepage.recto.auto.mode">
|
---|
2581 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2582 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2583 | </div>
|
---|
2584 | </xsl:template>
|
---|
2585 |
|
---|
2586 | <xsl:template match="legalnotice" mode="sect2.titlepage.recto.auto.mode">
|
---|
2587 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2588 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2589 | </div>
|
---|
2590 | </xsl:template>
|
---|
2591 |
|
---|
2592 | <xsl:template match="pubdate" mode="sect2.titlepage.recto.auto.mode">
|
---|
2593 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2594 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2595 | </div>
|
---|
2596 | </xsl:template>
|
---|
2597 |
|
---|
2598 | <xsl:template match="revision" mode="sect2.titlepage.recto.auto.mode">
|
---|
2599 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2600 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2601 | </div>
|
---|
2602 | </xsl:template>
|
---|
2603 |
|
---|
2604 | <xsl:template match="revhistory" mode="sect2.titlepage.recto.auto.mode">
|
---|
2605 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2606 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2607 | </div>
|
---|
2608 | </xsl:template>
|
---|
2609 |
|
---|
2610 | <xsl:template match="abstract" mode="sect2.titlepage.recto.auto.mode">
|
---|
2611 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect2.titlepage.recto.style">
|
---|
2612 | <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
|
---|
2613 | </div>
|
---|
2614 | </xsl:template>
|
---|
2615 |
|
---|
2616 | <xsl:template name="sect3.titlepage.recto">
|
---|
2617 | <xsl:choose>
|
---|
2618 | <xsl:when test="sect3info/title">
|
---|
2619 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/title"/>
|
---|
2620 | </xsl:when>
|
---|
2621 | <xsl:when test="info/title">
|
---|
2622 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/title"/>
|
---|
2623 | </xsl:when>
|
---|
2624 | <xsl:when test="title">
|
---|
2625 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="title"/>
|
---|
2626 | </xsl:when>
|
---|
2627 | </xsl:choose>
|
---|
2628 |
|
---|
2629 | <xsl:choose>
|
---|
2630 | <xsl:when test="sect3info/subtitle">
|
---|
2631 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/subtitle"/>
|
---|
2632 | </xsl:when>
|
---|
2633 | <xsl:when test="info/subtitle">
|
---|
2634 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
2635 | </xsl:when>
|
---|
2636 | <xsl:when test="subtitle">
|
---|
2637 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
2638 | </xsl:when>
|
---|
2639 | </xsl:choose>
|
---|
2640 |
|
---|
2641 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/corpauthor"/>
|
---|
2642 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
2643 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/authorgroup"/>
|
---|
2644 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
2645 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/author"/>
|
---|
2646 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/author"/>
|
---|
2647 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/othercredit"/>
|
---|
2648 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
2649 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/releaseinfo"/>
|
---|
2650 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
2651 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/copyright"/>
|
---|
2652 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
2653 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/legalnotice"/>
|
---|
2654 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
2655 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/pubdate"/>
|
---|
2656 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
2657 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revision"/>
|
---|
2658 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
2659 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/revhistory"/>
|
---|
2660 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
2661 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="sect3info/abstract"/>
|
---|
2662 | <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
2663 | </xsl:template>
|
---|
2664 |
|
---|
2665 | <xsl:template name="sect3.titlepage.verso">
|
---|
2666 | </xsl:template>
|
---|
2667 |
|
---|
2668 | <xsl:template name="sect3.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr xmlns="http://www.w3.org/1999/xhtml"/></xsl:if>
|
---|
2669 | </xsl:template>
|
---|
2670 |
|
---|
2671 | <xsl:template name="sect3.titlepage.before.recto">
|
---|
2672 | </xsl:template>
|
---|
2673 |
|
---|
2674 | <xsl:template name="sect3.titlepage.before.verso">
|
---|
2675 | </xsl:template>
|
---|
2676 |
|
---|
2677 | <xsl:template name="sect3.titlepage">
|
---|
2678 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
2679 | <xsl:variable name="recto.content">
|
---|
2680 | <xsl:call-template name="sect3.titlepage.before.recto"/>
|
---|
2681 | <xsl:call-template name="sect3.titlepage.recto"/>
|
---|
2682 | </xsl:variable>
|
---|
2683 | <xsl:variable name="recto.elements.count">
|
---|
2684 | <xsl:choose>
|
---|
2685 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
2686 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
2687 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
2688 | <xsl:otherwise>1</xsl:otherwise>
|
---|
2689 | </xsl:choose>
|
---|
2690 | </xsl:variable>
|
---|
2691 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
2692 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
2693 | </xsl:if>
|
---|
2694 | <xsl:variable name="verso.content">
|
---|
2695 | <xsl:call-template name="sect3.titlepage.before.verso"/>
|
---|
2696 | <xsl:call-template name="sect3.titlepage.verso"/>
|
---|
2697 | </xsl:variable>
|
---|
2698 | <xsl:variable name="verso.elements.count">
|
---|
2699 | <xsl:choose>
|
---|
2700 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
2701 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
2702 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
2703 | <xsl:otherwise>1</xsl:otherwise>
|
---|
2704 | </xsl:choose>
|
---|
2705 | </xsl:variable>
|
---|
2706 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
2707 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
2708 | </xsl:if>
|
---|
2709 | <xsl:call-template name="sect3.titlepage.separator"/>
|
---|
2710 | </div>
|
---|
2711 | </xsl:template>
|
---|
2712 |
|
---|
2713 | <xsl:template match="*" mode="sect3.titlepage.recto.mode">
|
---|
2714 | <!-- if an element isn't found in this mode, -->
|
---|
2715 | <!-- try the generic titlepage.mode -->
|
---|
2716 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
2717 | </xsl:template>
|
---|
2718 |
|
---|
2719 | <xsl:template match="*" mode="sect3.titlepage.verso.mode">
|
---|
2720 | <!-- if an element isn't found in this mode, -->
|
---|
2721 | <!-- try the generic titlepage.mode -->
|
---|
2722 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
2723 | </xsl:template>
|
---|
2724 |
|
---|
2725 | <xsl:template match="title" mode="sect3.titlepage.recto.auto.mode">
|
---|
2726 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2727 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2728 | </div>
|
---|
2729 | </xsl:template>
|
---|
2730 |
|
---|
2731 | <xsl:template match="subtitle" mode="sect3.titlepage.recto.auto.mode">
|
---|
2732 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2733 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2734 | </div>
|
---|
2735 | </xsl:template>
|
---|
2736 |
|
---|
2737 | <xsl:template match="corpauthor" mode="sect3.titlepage.recto.auto.mode">
|
---|
2738 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2739 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2740 | </div>
|
---|
2741 | </xsl:template>
|
---|
2742 |
|
---|
2743 | <xsl:template match="authorgroup" mode="sect3.titlepage.recto.auto.mode">
|
---|
2744 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2745 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2746 | </div>
|
---|
2747 | </xsl:template>
|
---|
2748 |
|
---|
2749 | <xsl:template match="author" mode="sect3.titlepage.recto.auto.mode">
|
---|
2750 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2751 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2752 | </div>
|
---|
2753 | </xsl:template>
|
---|
2754 |
|
---|
2755 | <xsl:template match="othercredit" mode="sect3.titlepage.recto.auto.mode">
|
---|
2756 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2757 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2758 | </div>
|
---|
2759 | </xsl:template>
|
---|
2760 |
|
---|
2761 | <xsl:template match="releaseinfo" mode="sect3.titlepage.recto.auto.mode">
|
---|
2762 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2763 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2764 | </div>
|
---|
2765 | </xsl:template>
|
---|
2766 |
|
---|
2767 | <xsl:template match="copyright" mode="sect3.titlepage.recto.auto.mode">
|
---|
2768 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2769 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2770 | </div>
|
---|
2771 | </xsl:template>
|
---|
2772 |
|
---|
2773 | <xsl:template match="legalnotice" mode="sect3.titlepage.recto.auto.mode">
|
---|
2774 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2775 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2776 | </div>
|
---|
2777 | </xsl:template>
|
---|
2778 |
|
---|
2779 | <xsl:template match="pubdate" mode="sect3.titlepage.recto.auto.mode">
|
---|
2780 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2781 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2782 | </div>
|
---|
2783 | </xsl:template>
|
---|
2784 |
|
---|
2785 | <xsl:template match="revision" mode="sect3.titlepage.recto.auto.mode">
|
---|
2786 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2787 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2788 | </div>
|
---|
2789 | </xsl:template>
|
---|
2790 |
|
---|
2791 | <xsl:template match="revhistory" mode="sect3.titlepage.recto.auto.mode">
|
---|
2792 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2793 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2794 | </div>
|
---|
2795 | </xsl:template>
|
---|
2796 |
|
---|
2797 | <xsl:template match="abstract" mode="sect3.titlepage.recto.auto.mode">
|
---|
2798 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect3.titlepage.recto.style">
|
---|
2799 | <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
|
---|
2800 | </div>
|
---|
2801 | </xsl:template>
|
---|
2802 |
|
---|
2803 | <xsl:template name="sect4.titlepage.recto">
|
---|
2804 | <xsl:choose>
|
---|
2805 | <xsl:when test="sect4info/title">
|
---|
2806 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/title"/>
|
---|
2807 | </xsl:when>
|
---|
2808 | <xsl:when test="info/title">
|
---|
2809 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/title"/>
|
---|
2810 | </xsl:when>
|
---|
2811 | <xsl:when test="title">
|
---|
2812 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="title"/>
|
---|
2813 | </xsl:when>
|
---|
2814 | </xsl:choose>
|
---|
2815 |
|
---|
2816 | <xsl:choose>
|
---|
2817 | <xsl:when test="sect4info/subtitle">
|
---|
2818 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/subtitle"/>
|
---|
2819 | </xsl:when>
|
---|
2820 | <xsl:when test="info/subtitle">
|
---|
2821 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
2822 | </xsl:when>
|
---|
2823 | <xsl:when test="subtitle">
|
---|
2824 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
2825 | </xsl:when>
|
---|
2826 | </xsl:choose>
|
---|
2827 |
|
---|
2828 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/corpauthor"/>
|
---|
2829 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
2830 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/authorgroup"/>
|
---|
2831 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
2832 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/author"/>
|
---|
2833 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/author"/>
|
---|
2834 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/othercredit"/>
|
---|
2835 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
2836 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/releaseinfo"/>
|
---|
2837 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
2838 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/copyright"/>
|
---|
2839 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
2840 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/legalnotice"/>
|
---|
2841 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
2842 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/pubdate"/>
|
---|
2843 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
2844 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revision"/>
|
---|
2845 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
2846 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/revhistory"/>
|
---|
2847 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
2848 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="sect4info/abstract"/>
|
---|
2849 | <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
2850 | </xsl:template>
|
---|
2851 |
|
---|
2852 | <xsl:template name="sect4.titlepage.verso">
|
---|
2853 | </xsl:template>
|
---|
2854 |
|
---|
2855 | <xsl:template name="sect4.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr xmlns="http://www.w3.org/1999/xhtml"/></xsl:if>
|
---|
2856 | </xsl:template>
|
---|
2857 |
|
---|
2858 | <xsl:template name="sect4.titlepage.before.recto">
|
---|
2859 | </xsl:template>
|
---|
2860 |
|
---|
2861 | <xsl:template name="sect4.titlepage.before.verso">
|
---|
2862 | </xsl:template>
|
---|
2863 |
|
---|
2864 | <xsl:template name="sect4.titlepage">
|
---|
2865 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
2866 | <xsl:variable name="recto.content">
|
---|
2867 | <xsl:call-template name="sect4.titlepage.before.recto"/>
|
---|
2868 | <xsl:call-template name="sect4.titlepage.recto"/>
|
---|
2869 | </xsl:variable>
|
---|
2870 | <xsl:variable name="recto.elements.count">
|
---|
2871 | <xsl:choose>
|
---|
2872 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
2873 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
2874 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
2875 | <xsl:otherwise>1</xsl:otherwise>
|
---|
2876 | </xsl:choose>
|
---|
2877 | </xsl:variable>
|
---|
2878 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
2879 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
2880 | </xsl:if>
|
---|
2881 | <xsl:variable name="verso.content">
|
---|
2882 | <xsl:call-template name="sect4.titlepage.before.verso"/>
|
---|
2883 | <xsl:call-template name="sect4.titlepage.verso"/>
|
---|
2884 | </xsl:variable>
|
---|
2885 | <xsl:variable name="verso.elements.count">
|
---|
2886 | <xsl:choose>
|
---|
2887 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
2888 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
2889 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
2890 | <xsl:otherwise>1</xsl:otherwise>
|
---|
2891 | </xsl:choose>
|
---|
2892 | </xsl:variable>
|
---|
2893 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
2894 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
2895 | </xsl:if>
|
---|
2896 | <xsl:call-template name="sect4.titlepage.separator"/>
|
---|
2897 | </div>
|
---|
2898 | </xsl:template>
|
---|
2899 |
|
---|
2900 | <xsl:template match="*" mode="sect4.titlepage.recto.mode">
|
---|
2901 | <!-- if an element isn't found in this mode, -->
|
---|
2902 | <!-- try the generic titlepage.mode -->
|
---|
2903 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
2904 | </xsl:template>
|
---|
2905 |
|
---|
2906 | <xsl:template match="*" mode="sect4.titlepage.verso.mode">
|
---|
2907 | <!-- if an element isn't found in this mode, -->
|
---|
2908 | <!-- try the generic titlepage.mode -->
|
---|
2909 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
2910 | </xsl:template>
|
---|
2911 |
|
---|
2912 | <xsl:template match="title" mode="sect4.titlepage.recto.auto.mode">
|
---|
2913 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2914 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2915 | </div>
|
---|
2916 | </xsl:template>
|
---|
2917 |
|
---|
2918 | <xsl:template match="subtitle" mode="sect4.titlepage.recto.auto.mode">
|
---|
2919 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2920 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2921 | </div>
|
---|
2922 | </xsl:template>
|
---|
2923 |
|
---|
2924 | <xsl:template match="corpauthor" mode="sect4.titlepage.recto.auto.mode">
|
---|
2925 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2926 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2927 | </div>
|
---|
2928 | </xsl:template>
|
---|
2929 |
|
---|
2930 | <xsl:template match="authorgroup" mode="sect4.titlepage.recto.auto.mode">
|
---|
2931 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2932 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2933 | </div>
|
---|
2934 | </xsl:template>
|
---|
2935 |
|
---|
2936 | <xsl:template match="author" mode="sect4.titlepage.recto.auto.mode">
|
---|
2937 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2938 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2939 | </div>
|
---|
2940 | </xsl:template>
|
---|
2941 |
|
---|
2942 | <xsl:template match="othercredit" mode="sect4.titlepage.recto.auto.mode">
|
---|
2943 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2944 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2945 | </div>
|
---|
2946 | </xsl:template>
|
---|
2947 |
|
---|
2948 | <xsl:template match="releaseinfo" mode="sect4.titlepage.recto.auto.mode">
|
---|
2949 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2950 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2951 | </div>
|
---|
2952 | </xsl:template>
|
---|
2953 |
|
---|
2954 | <xsl:template match="copyright" mode="sect4.titlepage.recto.auto.mode">
|
---|
2955 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2956 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2957 | </div>
|
---|
2958 | </xsl:template>
|
---|
2959 |
|
---|
2960 | <xsl:template match="legalnotice" mode="sect4.titlepage.recto.auto.mode">
|
---|
2961 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2962 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2963 | </div>
|
---|
2964 | </xsl:template>
|
---|
2965 |
|
---|
2966 | <xsl:template match="pubdate" mode="sect4.titlepage.recto.auto.mode">
|
---|
2967 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2968 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2969 | </div>
|
---|
2970 | </xsl:template>
|
---|
2971 |
|
---|
2972 | <xsl:template match="revision" mode="sect4.titlepage.recto.auto.mode">
|
---|
2973 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2974 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2975 | </div>
|
---|
2976 | </xsl:template>
|
---|
2977 |
|
---|
2978 | <xsl:template match="revhistory" mode="sect4.titlepage.recto.auto.mode">
|
---|
2979 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2980 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2981 | </div>
|
---|
2982 | </xsl:template>
|
---|
2983 |
|
---|
2984 | <xsl:template match="abstract" mode="sect4.titlepage.recto.auto.mode">
|
---|
2985 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect4.titlepage.recto.style">
|
---|
2986 | <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
|
---|
2987 | </div>
|
---|
2988 | </xsl:template>
|
---|
2989 |
|
---|
2990 | <xsl:template name="sect5.titlepage.recto">
|
---|
2991 | <xsl:choose>
|
---|
2992 | <xsl:when test="sect5info/title">
|
---|
2993 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/title"/>
|
---|
2994 | </xsl:when>
|
---|
2995 | <xsl:when test="info/title">
|
---|
2996 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/title"/>
|
---|
2997 | </xsl:when>
|
---|
2998 | <xsl:when test="title">
|
---|
2999 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="title"/>
|
---|
3000 | </xsl:when>
|
---|
3001 | </xsl:choose>
|
---|
3002 |
|
---|
3003 | <xsl:choose>
|
---|
3004 | <xsl:when test="sect5info/subtitle">
|
---|
3005 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/subtitle"/>
|
---|
3006 | </xsl:when>
|
---|
3007 | <xsl:when test="info/subtitle">
|
---|
3008 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
3009 | </xsl:when>
|
---|
3010 | <xsl:when test="subtitle">
|
---|
3011 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
3012 | </xsl:when>
|
---|
3013 | </xsl:choose>
|
---|
3014 |
|
---|
3015 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/corpauthor"/>
|
---|
3016 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
3017 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/authorgroup"/>
|
---|
3018 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
3019 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/author"/>
|
---|
3020 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/author"/>
|
---|
3021 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/othercredit"/>
|
---|
3022 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
3023 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/releaseinfo"/>
|
---|
3024 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
3025 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/copyright"/>
|
---|
3026 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
3027 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/legalnotice"/>
|
---|
3028 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
3029 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/pubdate"/>
|
---|
3030 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
3031 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revision"/>
|
---|
3032 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
3033 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/revhistory"/>
|
---|
3034 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
3035 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="sect5info/abstract"/>
|
---|
3036 | <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
3037 | </xsl:template>
|
---|
3038 |
|
---|
3039 | <xsl:template name="sect5.titlepage.verso">
|
---|
3040 | </xsl:template>
|
---|
3041 |
|
---|
3042 | <xsl:template name="sect5.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr xmlns="http://www.w3.org/1999/xhtml"/></xsl:if>
|
---|
3043 | </xsl:template>
|
---|
3044 |
|
---|
3045 | <xsl:template name="sect5.titlepage.before.recto">
|
---|
3046 | </xsl:template>
|
---|
3047 |
|
---|
3048 | <xsl:template name="sect5.titlepage.before.verso">
|
---|
3049 | </xsl:template>
|
---|
3050 |
|
---|
3051 | <xsl:template name="sect5.titlepage">
|
---|
3052 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
3053 | <xsl:variable name="recto.content">
|
---|
3054 | <xsl:call-template name="sect5.titlepage.before.recto"/>
|
---|
3055 | <xsl:call-template name="sect5.titlepage.recto"/>
|
---|
3056 | </xsl:variable>
|
---|
3057 | <xsl:variable name="recto.elements.count">
|
---|
3058 | <xsl:choose>
|
---|
3059 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3060 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3061 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3062 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3063 | </xsl:choose>
|
---|
3064 | </xsl:variable>
|
---|
3065 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
3066 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
3067 | </xsl:if>
|
---|
3068 | <xsl:variable name="verso.content">
|
---|
3069 | <xsl:call-template name="sect5.titlepage.before.verso"/>
|
---|
3070 | <xsl:call-template name="sect5.titlepage.verso"/>
|
---|
3071 | </xsl:variable>
|
---|
3072 | <xsl:variable name="verso.elements.count">
|
---|
3073 | <xsl:choose>
|
---|
3074 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3075 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3076 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3077 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3078 | </xsl:choose>
|
---|
3079 | </xsl:variable>
|
---|
3080 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
3081 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
3082 | </xsl:if>
|
---|
3083 | <xsl:call-template name="sect5.titlepage.separator"/>
|
---|
3084 | </div>
|
---|
3085 | </xsl:template>
|
---|
3086 |
|
---|
3087 | <xsl:template match="*" mode="sect5.titlepage.recto.mode">
|
---|
3088 | <!-- if an element isn't found in this mode, -->
|
---|
3089 | <!-- try the generic titlepage.mode -->
|
---|
3090 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3091 | </xsl:template>
|
---|
3092 |
|
---|
3093 | <xsl:template match="*" mode="sect5.titlepage.verso.mode">
|
---|
3094 | <!-- if an element isn't found in this mode, -->
|
---|
3095 | <!-- try the generic titlepage.mode -->
|
---|
3096 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3097 | </xsl:template>
|
---|
3098 |
|
---|
3099 | <xsl:template match="title" mode="sect5.titlepage.recto.auto.mode">
|
---|
3100 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3101 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3102 | </div>
|
---|
3103 | </xsl:template>
|
---|
3104 |
|
---|
3105 | <xsl:template match="subtitle" mode="sect5.titlepage.recto.auto.mode">
|
---|
3106 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3107 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3108 | </div>
|
---|
3109 | </xsl:template>
|
---|
3110 |
|
---|
3111 | <xsl:template match="corpauthor" mode="sect5.titlepage.recto.auto.mode">
|
---|
3112 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3113 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3114 | </div>
|
---|
3115 | </xsl:template>
|
---|
3116 |
|
---|
3117 | <xsl:template match="authorgroup" mode="sect5.titlepage.recto.auto.mode">
|
---|
3118 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3119 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3120 | </div>
|
---|
3121 | </xsl:template>
|
---|
3122 |
|
---|
3123 | <xsl:template match="author" mode="sect5.titlepage.recto.auto.mode">
|
---|
3124 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3125 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3126 | </div>
|
---|
3127 | </xsl:template>
|
---|
3128 |
|
---|
3129 | <xsl:template match="othercredit" mode="sect5.titlepage.recto.auto.mode">
|
---|
3130 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3131 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3132 | </div>
|
---|
3133 | </xsl:template>
|
---|
3134 |
|
---|
3135 | <xsl:template match="releaseinfo" mode="sect5.titlepage.recto.auto.mode">
|
---|
3136 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3137 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3138 | </div>
|
---|
3139 | </xsl:template>
|
---|
3140 |
|
---|
3141 | <xsl:template match="copyright" mode="sect5.titlepage.recto.auto.mode">
|
---|
3142 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3143 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3144 | </div>
|
---|
3145 | </xsl:template>
|
---|
3146 |
|
---|
3147 | <xsl:template match="legalnotice" mode="sect5.titlepage.recto.auto.mode">
|
---|
3148 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3149 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3150 | </div>
|
---|
3151 | </xsl:template>
|
---|
3152 |
|
---|
3153 | <xsl:template match="pubdate" mode="sect5.titlepage.recto.auto.mode">
|
---|
3154 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3155 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3156 | </div>
|
---|
3157 | </xsl:template>
|
---|
3158 |
|
---|
3159 | <xsl:template match="revision" mode="sect5.titlepage.recto.auto.mode">
|
---|
3160 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3161 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3162 | </div>
|
---|
3163 | </xsl:template>
|
---|
3164 |
|
---|
3165 | <xsl:template match="revhistory" mode="sect5.titlepage.recto.auto.mode">
|
---|
3166 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3167 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3168 | </div>
|
---|
3169 | </xsl:template>
|
---|
3170 |
|
---|
3171 | <xsl:template match="abstract" mode="sect5.titlepage.recto.auto.mode">
|
---|
3172 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sect5.titlepage.recto.style">
|
---|
3173 | <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
|
---|
3174 | </div>
|
---|
3175 | </xsl:template>
|
---|
3176 |
|
---|
3177 | <xsl:template name="simplesect.titlepage.recto">
|
---|
3178 | <xsl:choose>
|
---|
3179 | <xsl:when test="simplesectinfo/title">
|
---|
3180 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/title"/>
|
---|
3181 | </xsl:when>
|
---|
3182 | <xsl:when test="docinfo/title">
|
---|
3183 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/title"/>
|
---|
3184 | </xsl:when>
|
---|
3185 | <xsl:when test="info/title">
|
---|
3186 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/title"/>
|
---|
3187 | </xsl:when>
|
---|
3188 | <xsl:when test="title">
|
---|
3189 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="title"/>
|
---|
3190 | </xsl:when>
|
---|
3191 | </xsl:choose>
|
---|
3192 |
|
---|
3193 | <xsl:choose>
|
---|
3194 | <xsl:when test="simplesectinfo/subtitle">
|
---|
3195 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/subtitle"/>
|
---|
3196 | </xsl:when>
|
---|
3197 | <xsl:when test="docinfo/subtitle">
|
---|
3198 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
3199 | </xsl:when>
|
---|
3200 | <xsl:when test="info/subtitle">
|
---|
3201 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
3202 | </xsl:when>
|
---|
3203 | <xsl:when test="subtitle">
|
---|
3204 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
3205 | </xsl:when>
|
---|
3206 | </xsl:choose>
|
---|
3207 |
|
---|
3208 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/corpauthor"/>
|
---|
3209 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
|
---|
3210 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
3211 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/authorgroup"/>
|
---|
3212 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
|
---|
3213 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
3214 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/author"/>
|
---|
3215 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/author"/>
|
---|
3216 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/author"/>
|
---|
3217 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/othercredit"/>
|
---|
3218 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/othercredit"/>
|
---|
3219 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/othercredit"/>
|
---|
3220 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/releaseinfo"/>
|
---|
3221 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
|
---|
3222 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
3223 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/copyright"/>
|
---|
3224 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/copyright"/>
|
---|
3225 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
3226 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/legalnotice"/>
|
---|
3227 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/legalnotice"/>
|
---|
3228 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/legalnotice"/>
|
---|
3229 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/pubdate"/>
|
---|
3230 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
|
---|
3231 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
3232 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revision"/>
|
---|
3233 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revision"/>
|
---|
3234 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
3235 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/revhistory"/>
|
---|
3236 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/revhistory"/>
|
---|
3237 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/revhistory"/>
|
---|
3238 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="simplesectinfo/abstract"/>
|
---|
3239 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="docinfo/abstract"/>
|
---|
3240 | <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="info/abstract"/>
|
---|
3241 | </xsl:template>
|
---|
3242 |
|
---|
3243 | <xsl:template name="simplesect.titlepage.verso">
|
---|
3244 | </xsl:template>
|
---|
3245 |
|
---|
3246 | <xsl:template name="simplesect.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr xmlns="http://www.w3.org/1999/xhtml"/></xsl:if>
|
---|
3247 | </xsl:template>
|
---|
3248 |
|
---|
3249 | <xsl:template name="simplesect.titlepage.before.recto">
|
---|
3250 | </xsl:template>
|
---|
3251 |
|
---|
3252 | <xsl:template name="simplesect.titlepage.before.verso">
|
---|
3253 | </xsl:template>
|
---|
3254 |
|
---|
3255 | <xsl:template name="simplesect.titlepage">
|
---|
3256 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
3257 | <xsl:variable name="recto.content">
|
---|
3258 | <xsl:call-template name="simplesect.titlepage.before.recto"/>
|
---|
3259 | <xsl:call-template name="simplesect.titlepage.recto"/>
|
---|
3260 | </xsl:variable>
|
---|
3261 | <xsl:variable name="recto.elements.count">
|
---|
3262 | <xsl:choose>
|
---|
3263 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3264 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3265 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3266 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3267 | </xsl:choose>
|
---|
3268 | </xsl:variable>
|
---|
3269 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
3270 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
3271 | </xsl:if>
|
---|
3272 | <xsl:variable name="verso.content">
|
---|
3273 | <xsl:call-template name="simplesect.titlepage.before.verso"/>
|
---|
3274 | <xsl:call-template name="simplesect.titlepage.verso"/>
|
---|
3275 | </xsl:variable>
|
---|
3276 | <xsl:variable name="verso.elements.count">
|
---|
3277 | <xsl:choose>
|
---|
3278 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3279 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3280 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3281 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3282 | </xsl:choose>
|
---|
3283 | </xsl:variable>
|
---|
3284 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
3285 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
3286 | </xsl:if>
|
---|
3287 | <xsl:call-template name="simplesect.titlepage.separator"/>
|
---|
3288 | </div>
|
---|
3289 | </xsl:template>
|
---|
3290 |
|
---|
3291 | <xsl:template match="*" mode="simplesect.titlepage.recto.mode">
|
---|
3292 | <!-- if an element isn't found in this mode, -->
|
---|
3293 | <!-- try the generic titlepage.mode -->
|
---|
3294 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3295 | </xsl:template>
|
---|
3296 |
|
---|
3297 | <xsl:template match="*" mode="simplesect.titlepage.verso.mode">
|
---|
3298 | <!-- if an element isn't found in this mode, -->
|
---|
3299 | <!-- try the generic titlepage.mode -->
|
---|
3300 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3301 | </xsl:template>
|
---|
3302 |
|
---|
3303 | <xsl:template match="title" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3304 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3305 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3306 | </div>
|
---|
3307 | </xsl:template>
|
---|
3308 |
|
---|
3309 | <xsl:template match="subtitle" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3310 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3311 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3312 | </div>
|
---|
3313 | </xsl:template>
|
---|
3314 |
|
---|
3315 | <xsl:template match="corpauthor" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3316 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3317 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3318 | </div>
|
---|
3319 | </xsl:template>
|
---|
3320 |
|
---|
3321 | <xsl:template match="authorgroup" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3322 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3323 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3324 | </div>
|
---|
3325 | </xsl:template>
|
---|
3326 |
|
---|
3327 | <xsl:template match="author" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3328 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3329 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3330 | </div>
|
---|
3331 | </xsl:template>
|
---|
3332 |
|
---|
3333 | <xsl:template match="othercredit" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3334 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3335 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3336 | </div>
|
---|
3337 | </xsl:template>
|
---|
3338 |
|
---|
3339 | <xsl:template match="releaseinfo" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3340 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3341 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3342 | </div>
|
---|
3343 | </xsl:template>
|
---|
3344 |
|
---|
3345 | <xsl:template match="copyright" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3346 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3347 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3348 | </div>
|
---|
3349 | </xsl:template>
|
---|
3350 |
|
---|
3351 | <xsl:template match="legalnotice" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3352 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3353 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3354 | </div>
|
---|
3355 | </xsl:template>
|
---|
3356 |
|
---|
3357 | <xsl:template match="pubdate" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3358 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3359 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3360 | </div>
|
---|
3361 | </xsl:template>
|
---|
3362 |
|
---|
3363 | <xsl:template match="revision" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3364 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3365 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3366 | </div>
|
---|
3367 | </xsl:template>
|
---|
3368 |
|
---|
3369 | <xsl:template match="revhistory" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3370 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3371 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3372 | </div>
|
---|
3373 | </xsl:template>
|
---|
3374 |
|
---|
3375 | <xsl:template match="abstract" mode="simplesect.titlepage.recto.auto.mode">
|
---|
3376 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="simplesect.titlepage.recto.style">
|
---|
3377 | <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
|
---|
3378 | </div>
|
---|
3379 | </xsl:template>
|
---|
3380 |
|
---|
3381 | <xsl:template name="bibliography.titlepage.recto">
|
---|
3382 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="bibliography.titlepage.recto.style">
|
---|
3383 | <xsl:call-template name="component.title">
|
---|
3384 | <xsl:with-param name="node" select="ancestor-or-self::bibliography[1]"/>
|
---|
3385 | </xsl:call-template></div>
|
---|
3386 | <xsl:choose>
|
---|
3387 | <xsl:when test="bibliographyinfo/subtitle">
|
---|
3388 | <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="bibliographyinfo/subtitle"/>
|
---|
3389 | </xsl:when>
|
---|
3390 | <xsl:when test="docinfo/subtitle">
|
---|
3391 | <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
3392 | </xsl:when>
|
---|
3393 | <xsl:when test="info/subtitle">
|
---|
3394 | <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
3395 | </xsl:when>
|
---|
3396 | <xsl:when test="subtitle">
|
---|
3397 | <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
3398 | </xsl:when>
|
---|
3399 | </xsl:choose>
|
---|
3400 |
|
---|
3401 | </xsl:template>
|
---|
3402 |
|
---|
3403 | <xsl:template name="bibliography.titlepage.verso">
|
---|
3404 | </xsl:template>
|
---|
3405 |
|
---|
3406 | <xsl:template name="bibliography.titlepage.separator">
|
---|
3407 | </xsl:template>
|
---|
3408 |
|
---|
3409 | <xsl:template name="bibliography.titlepage.before.recto">
|
---|
3410 | </xsl:template>
|
---|
3411 |
|
---|
3412 | <xsl:template name="bibliography.titlepage.before.verso">
|
---|
3413 | </xsl:template>
|
---|
3414 |
|
---|
3415 | <xsl:template name="bibliography.titlepage">
|
---|
3416 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
3417 | <xsl:variable name="recto.content">
|
---|
3418 | <xsl:call-template name="bibliography.titlepage.before.recto"/>
|
---|
3419 | <xsl:call-template name="bibliography.titlepage.recto"/>
|
---|
3420 | </xsl:variable>
|
---|
3421 | <xsl:variable name="recto.elements.count">
|
---|
3422 | <xsl:choose>
|
---|
3423 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3424 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3425 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3426 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3427 | </xsl:choose>
|
---|
3428 | </xsl:variable>
|
---|
3429 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
3430 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
3431 | </xsl:if>
|
---|
3432 | <xsl:variable name="verso.content">
|
---|
3433 | <xsl:call-template name="bibliography.titlepage.before.verso"/>
|
---|
3434 | <xsl:call-template name="bibliography.titlepage.verso"/>
|
---|
3435 | </xsl:variable>
|
---|
3436 | <xsl:variable name="verso.elements.count">
|
---|
3437 | <xsl:choose>
|
---|
3438 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3439 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3440 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3441 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3442 | </xsl:choose>
|
---|
3443 | </xsl:variable>
|
---|
3444 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
3445 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
3446 | </xsl:if>
|
---|
3447 | <xsl:call-template name="bibliography.titlepage.separator"/>
|
---|
3448 | </div>
|
---|
3449 | </xsl:template>
|
---|
3450 |
|
---|
3451 | <xsl:template match="*" mode="bibliography.titlepage.recto.mode">
|
---|
3452 | <!-- if an element isn't found in this mode, -->
|
---|
3453 | <!-- try the generic titlepage.mode -->
|
---|
3454 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3455 | </xsl:template>
|
---|
3456 |
|
---|
3457 | <xsl:template match="*" mode="bibliography.titlepage.verso.mode">
|
---|
3458 | <!-- if an element isn't found in this mode, -->
|
---|
3459 | <!-- try the generic titlepage.mode -->
|
---|
3460 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3461 | </xsl:template>
|
---|
3462 |
|
---|
3463 | <xsl:template match="subtitle" mode="bibliography.titlepage.recto.auto.mode">
|
---|
3464 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="bibliography.titlepage.recto.style">
|
---|
3465 | <xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
|
---|
3466 | </div>
|
---|
3467 | </xsl:template>
|
---|
3468 |
|
---|
3469 | <xsl:template name="glossary.titlepage.recto">
|
---|
3470 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="glossary.titlepage.recto.style">
|
---|
3471 | <xsl:call-template name="component.title">
|
---|
3472 | <xsl:with-param name="node" select="ancestor-or-self::glossary[1]"/>
|
---|
3473 | </xsl:call-template></div>
|
---|
3474 | <xsl:choose>
|
---|
3475 | <xsl:when test="glossaryinfo/subtitle">
|
---|
3476 | <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="glossaryinfo/subtitle"/>
|
---|
3477 | </xsl:when>
|
---|
3478 | <xsl:when test="docinfo/subtitle">
|
---|
3479 | <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
3480 | </xsl:when>
|
---|
3481 | <xsl:when test="info/subtitle">
|
---|
3482 | <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
3483 | </xsl:when>
|
---|
3484 | <xsl:when test="subtitle">
|
---|
3485 | <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
3486 | </xsl:when>
|
---|
3487 | </xsl:choose>
|
---|
3488 |
|
---|
3489 | </xsl:template>
|
---|
3490 |
|
---|
3491 | <xsl:template name="glossary.titlepage.verso">
|
---|
3492 | </xsl:template>
|
---|
3493 |
|
---|
3494 | <xsl:template name="glossary.titlepage.separator">
|
---|
3495 | </xsl:template>
|
---|
3496 |
|
---|
3497 | <xsl:template name="glossary.titlepage.before.recto">
|
---|
3498 | </xsl:template>
|
---|
3499 |
|
---|
3500 | <xsl:template name="glossary.titlepage.before.verso">
|
---|
3501 | </xsl:template>
|
---|
3502 |
|
---|
3503 | <xsl:template name="glossary.titlepage">
|
---|
3504 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
3505 | <xsl:variable name="recto.content">
|
---|
3506 | <xsl:call-template name="glossary.titlepage.before.recto"/>
|
---|
3507 | <xsl:call-template name="glossary.titlepage.recto"/>
|
---|
3508 | </xsl:variable>
|
---|
3509 | <xsl:variable name="recto.elements.count">
|
---|
3510 | <xsl:choose>
|
---|
3511 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3512 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3513 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3514 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3515 | </xsl:choose>
|
---|
3516 | </xsl:variable>
|
---|
3517 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
3518 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
3519 | </xsl:if>
|
---|
3520 | <xsl:variable name="verso.content">
|
---|
3521 | <xsl:call-template name="glossary.titlepage.before.verso"/>
|
---|
3522 | <xsl:call-template name="glossary.titlepage.verso"/>
|
---|
3523 | </xsl:variable>
|
---|
3524 | <xsl:variable name="verso.elements.count">
|
---|
3525 | <xsl:choose>
|
---|
3526 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3527 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3528 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3529 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3530 | </xsl:choose>
|
---|
3531 | </xsl:variable>
|
---|
3532 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
3533 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
3534 | </xsl:if>
|
---|
3535 | <xsl:call-template name="glossary.titlepage.separator"/>
|
---|
3536 | </div>
|
---|
3537 | </xsl:template>
|
---|
3538 |
|
---|
3539 | <xsl:template match="*" mode="glossary.titlepage.recto.mode">
|
---|
3540 | <!-- if an element isn't found in this mode, -->
|
---|
3541 | <!-- try the generic titlepage.mode -->
|
---|
3542 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3543 | </xsl:template>
|
---|
3544 |
|
---|
3545 | <xsl:template match="*" mode="glossary.titlepage.verso.mode">
|
---|
3546 | <!-- if an element isn't found in this mode, -->
|
---|
3547 | <!-- try the generic titlepage.mode -->
|
---|
3548 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3549 | </xsl:template>
|
---|
3550 |
|
---|
3551 | <xsl:template match="subtitle" mode="glossary.titlepage.recto.auto.mode">
|
---|
3552 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="glossary.titlepage.recto.style">
|
---|
3553 | <xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
|
---|
3554 | </div>
|
---|
3555 | </xsl:template>
|
---|
3556 |
|
---|
3557 | <xsl:template name="index.titlepage.recto">
|
---|
3558 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="index.titlepage.recto.style">
|
---|
3559 | <xsl:call-template name="component.title">
|
---|
3560 | <xsl:with-param name="node" select="ancestor-or-self::index[1]"/>
|
---|
3561 | </xsl:call-template></div>
|
---|
3562 | <xsl:choose>
|
---|
3563 | <xsl:when test="indexinfo/subtitle">
|
---|
3564 | <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="indexinfo/subtitle"/>
|
---|
3565 | </xsl:when>
|
---|
3566 | <xsl:when test="docinfo/subtitle">
|
---|
3567 | <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
3568 | </xsl:when>
|
---|
3569 | <xsl:when test="info/subtitle">
|
---|
3570 | <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
3571 | </xsl:when>
|
---|
3572 | <xsl:when test="subtitle">
|
---|
3573 | <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
3574 | </xsl:when>
|
---|
3575 | </xsl:choose>
|
---|
3576 |
|
---|
3577 | </xsl:template>
|
---|
3578 |
|
---|
3579 | <xsl:template name="index.titlepage.verso">
|
---|
3580 | </xsl:template>
|
---|
3581 |
|
---|
3582 | <xsl:template name="index.titlepage.separator">
|
---|
3583 | </xsl:template>
|
---|
3584 |
|
---|
3585 | <xsl:template name="index.titlepage.before.recto">
|
---|
3586 | </xsl:template>
|
---|
3587 |
|
---|
3588 | <xsl:template name="index.titlepage.before.verso">
|
---|
3589 | </xsl:template>
|
---|
3590 |
|
---|
3591 | <xsl:template name="index.titlepage">
|
---|
3592 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
3593 | <xsl:variable name="recto.content">
|
---|
3594 | <xsl:call-template name="index.titlepage.before.recto"/>
|
---|
3595 | <xsl:call-template name="index.titlepage.recto"/>
|
---|
3596 | </xsl:variable>
|
---|
3597 | <xsl:variable name="recto.elements.count">
|
---|
3598 | <xsl:choose>
|
---|
3599 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3600 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3601 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3602 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3603 | </xsl:choose>
|
---|
3604 | </xsl:variable>
|
---|
3605 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
3606 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
3607 | </xsl:if>
|
---|
3608 | <xsl:variable name="verso.content">
|
---|
3609 | <xsl:call-template name="index.titlepage.before.verso"/>
|
---|
3610 | <xsl:call-template name="index.titlepage.verso"/>
|
---|
3611 | </xsl:variable>
|
---|
3612 | <xsl:variable name="verso.elements.count">
|
---|
3613 | <xsl:choose>
|
---|
3614 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3615 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3616 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3617 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3618 | </xsl:choose>
|
---|
3619 | </xsl:variable>
|
---|
3620 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
3621 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
3622 | </xsl:if>
|
---|
3623 | <xsl:call-template name="index.titlepage.separator"/>
|
---|
3624 | </div>
|
---|
3625 | </xsl:template>
|
---|
3626 |
|
---|
3627 | <xsl:template match="*" mode="index.titlepage.recto.mode">
|
---|
3628 | <!-- if an element isn't found in this mode, -->
|
---|
3629 | <!-- try the generic titlepage.mode -->
|
---|
3630 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3631 | </xsl:template>
|
---|
3632 |
|
---|
3633 | <xsl:template match="*" mode="index.titlepage.verso.mode">
|
---|
3634 | <!-- if an element isn't found in this mode, -->
|
---|
3635 | <!-- try the generic titlepage.mode -->
|
---|
3636 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3637 | </xsl:template>
|
---|
3638 |
|
---|
3639 | <xsl:template match="subtitle" mode="index.titlepage.recto.auto.mode">
|
---|
3640 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="index.titlepage.recto.style">
|
---|
3641 | <xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
|
---|
3642 | </div>
|
---|
3643 | </xsl:template>
|
---|
3644 |
|
---|
3645 | <xsl:template name="setindex.titlepage.recto">
|
---|
3646 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="setindex.titlepage.recto.style">
|
---|
3647 | <xsl:call-template name="component.title">
|
---|
3648 | <xsl:with-param name="node" select="ancestor-or-self::setindex[1]"/>
|
---|
3649 | </xsl:call-template></div>
|
---|
3650 | <xsl:choose>
|
---|
3651 | <xsl:when test="setindexinfo/subtitle">
|
---|
3652 | <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="setindexinfo/subtitle"/>
|
---|
3653 | </xsl:when>
|
---|
3654 | <xsl:when test="docinfo/subtitle">
|
---|
3655 | <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
3656 | </xsl:when>
|
---|
3657 | <xsl:when test="info/subtitle">
|
---|
3658 | <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
3659 | </xsl:when>
|
---|
3660 | <xsl:when test="subtitle">
|
---|
3661 | <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
3662 | </xsl:when>
|
---|
3663 | </xsl:choose>
|
---|
3664 |
|
---|
3665 | </xsl:template>
|
---|
3666 |
|
---|
3667 | <xsl:template name="setindex.titlepage.verso">
|
---|
3668 | </xsl:template>
|
---|
3669 |
|
---|
3670 | <xsl:template name="setindex.titlepage.separator">
|
---|
3671 | </xsl:template>
|
---|
3672 |
|
---|
3673 | <xsl:template name="setindex.titlepage.before.recto">
|
---|
3674 | </xsl:template>
|
---|
3675 |
|
---|
3676 | <xsl:template name="setindex.titlepage.before.verso">
|
---|
3677 | </xsl:template>
|
---|
3678 |
|
---|
3679 | <xsl:template name="setindex.titlepage">
|
---|
3680 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
3681 | <xsl:variable name="recto.content">
|
---|
3682 | <xsl:call-template name="setindex.titlepage.before.recto"/>
|
---|
3683 | <xsl:call-template name="setindex.titlepage.recto"/>
|
---|
3684 | </xsl:variable>
|
---|
3685 | <xsl:variable name="recto.elements.count">
|
---|
3686 | <xsl:choose>
|
---|
3687 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3688 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3689 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3690 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3691 | </xsl:choose>
|
---|
3692 | </xsl:variable>
|
---|
3693 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
3694 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
3695 | </xsl:if>
|
---|
3696 | <xsl:variable name="verso.content">
|
---|
3697 | <xsl:call-template name="setindex.titlepage.before.verso"/>
|
---|
3698 | <xsl:call-template name="setindex.titlepage.verso"/>
|
---|
3699 | </xsl:variable>
|
---|
3700 | <xsl:variable name="verso.elements.count">
|
---|
3701 | <xsl:choose>
|
---|
3702 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3703 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3704 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3705 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3706 | </xsl:choose>
|
---|
3707 | </xsl:variable>
|
---|
3708 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
3709 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
3710 | </xsl:if>
|
---|
3711 | <xsl:call-template name="setindex.titlepage.separator"/>
|
---|
3712 | </div>
|
---|
3713 | </xsl:template>
|
---|
3714 |
|
---|
3715 | <xsl:template match="*" mode="setindex.titlepage.recto.mode">
|
---|
3716 | <!-- if an element isn't found in this mode, -->
|
---|
3717 | <!-- try the generic titlepage.mode -->
|
---|
3718 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3719 | </xsl:template>
|
---|
3720 |
|
---|
3721 | <xsl:template match="*" mode="setindex.titlepage.verso.mode">
|
---|
3722 | <!-- if an element isn't found in this mode, -->
|
---|
3723 | <!-- try the generic titlepage.mode -->
|
---|
3724 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3725 | </xsl:template>
|
---|
3726 |
|
---|
3727 | <xsl:template match="subtitle" mode="setindex.titlepage.recto.auto.mode">
|
---|
3728 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="setindex.titlepage.recto.style">
|
---|
3729 | <xsl:apply-templates select="." mode="setindex.titlepage.recto.mode"/>
|
---|
3730 | </div>
|
---|
3731 | </xsl:template>
|
---|
3732 |
|
---|
3733 | <xsl:template name="sidebar.titlepage.recto">
|
---|
3734 | <xsl:choose>
|
---|
3735 | <xsl:when test="sidebarinfo/title">
|
---|
3736 | <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="sidebarinfo/title"/>
|
---|
3737 | </xsl:when>
|
---|
3738 | <xsl:when test="docinfo/title">
|
---|
3739 | <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="docinfo/title"/>
|
---|
3740 | </xsl:when>
|
---|
3741 | <xsl:when test="info/title">
|
---|
3742 | <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="info/title"/>
|
---|
3743 | </xsl:when>
|
---|
3744 | <xsl:when test="title">
|
---|
3745 | <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="title"/>
|
---|
3746 | </xsl:when>
|
---|
3747 | </xsl:choose>
|
---|
3748 |
|
---|
3749 | <xsl:choose>
|
---|
3750 | <xsl:when test="sidebarinfo/subtitle">
|
---|
3751 | <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="sidebarinfo/subtitle"/>
|
---|
3752 | </xsl:when>
|
---|
3753 | <xsl:when test="docinfo/subtitle">
|
---|
3754 | <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
|
---|
3755 | </xsl:when>
|
---|
3756 | <xsl:when test="info/subtitle">
|
---|
3757 | <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="info/subtitle"/>
|
---|
3758 | </xsl:when>
|
---|
3759 | <xsl:when test="subtitle">
|
---|
3760 | <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="subtitle"/>
|
---|
3761 | </xsl:when>
|
---|
3762 | </xsl:choose>
|
---|
3763 |
|
---|
3764 | </xsl:template>
|
---|
3765 |
|
---|
3766 | <xsl:template name="sidebar.titlepage.verso">
|
---|
3767 | </xsl:template>
|
---|
3768 |
|
---|
3769 | <xsl:template name="sidebar.titlepage.separator">
|
---|
3770 | </xsl:template>
|
---|
3771 |
|
---|
3772 | <xsl:template name="sidebar.titlepage.before.recto">
|
---|
3773 | </xsl:template>
|
---|
3774 |
|
---|
3775 | <xsl:template name="sidebar.titlepage.before.verso">
|
---|
3776 | </xsl:template>
|
---|
3777 |
|
---|
3778 | <xsl:template name="sidebar.titlepage">
|
---|
3779 | <div xmlns="http://www.w3.org/1999/xhtml" class="titlepage">
|
---|
3780 | <xsl:variable name="recto.content">
|
---|
3781 | <xsl:call-template name="sidebar.titlepage.before.recto"/>
|
---|
3782 | <xsl:call-template name="sidebar.titlepage.recto"/>
|
---|
3783 | </xsl:variable>
|
---|
3784 | <xsl:variable name="recto.elements.count">
|
---|
3785 | <xsl:choose>
|
---|
3786 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3787 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3788 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
3789 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3790 | </xsl:choose>
|
---|
3791 | </xsl:variable>
|
---|
3792 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
3793 | <div><xsl:copy-of select="$recto.content"/></div>
|
---|
3794 | </xsl:if>
|
---|
3795 | <xsl:variable name="verso.content">
|
---|
3796 | <xsl:call-template name="sidebar.titlepage.before.verso"/>
|
---|
3797 | <xsl:call-template name="sidebar.titlepage.verso"/>
|
---|
3798 | </xsl:variable>
|
---|
3799 | <xsl:variable name="verso.elements.count">
|
---|
3800 | <xsl:choose>
|
---|
3801 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3802 | <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
|
---|
3803 | <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
3804 | <xsl:otherwise>1</xsl:otherwise>
|
---|
3805 | </xsl:choose>
|
---|
3806 | </xsl:variable>
|
---|
3807 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
3808 | <div><xsl:copy-of select="$verso.content"/></div>
|
---|
3809 | </xsl:if>
|
---|
3810 | <xsl:call-template name="sidebar.titlepage.separator"/>
|
---|
3811 | </div>
|
---|
3812 | </xsl:template>
|
---|
3813 |
|
---|
3814 | <xsl:template match="*" mode="sidebar.titlepage.recto.mode">
|
---|
3815 | <!-- if an element isn't found in this mode, -->
|
---|
3816 | <!-- try the generic titlepage.mode -->
|
---|
3817 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3818 | </xsl:template>
|
---|
3819 |
|
---|
3820 | <xsl:template match="*" mode="sidebar.titlepage.verso.mode">
|
---|
3821 | <!-- if an element isn't found in this mode, -->
|
---|
3822 | <!-- try the generic titlepage.mode -->
|
---|
3823 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
3824 | </xsl:template>
|
---|
3825 |
|
---|
3826 | <xsl:template match="title" mode="sidebar.titlepage.recto.auto.mode">
|
---|
3827 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sidebar.titlepage.recto.style">
|
---|
3828 | <xsl:call-template name="formal.object.heading">
|
---|
3829 | <xsl:with-param name="object" select="ancestor-or-self::sidebar[1]"/>
|
---|
3830 | </xsl:call-template>
|
---|
3831 | </div>
|
---|
3832 | </xsl:template>
|
---|
3833 |
|
---|
3834 | <xsl:template match="subtitle" mode="sidebar.titlepage.recto.auto.mode">
|
---|
3835 | <div xmlns="http://www.w3.org/1999/xhtml" xsl:use-attribute-sets="sidebar.titlepage.recto.style">
|
---|
3836 | <xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>
|
---|
3837 | </div>
|
---|
3838 | </xsl:template>
|
---|
3839 |
|
---|
3840 | </xsl:stylesheet>
|
---|
3841 |
|
---|