1 | <?xml version='1.0'?>
|
---|
2 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
3 | version='1.0'>
|
---|
4 |
|
---|
5 | <!-- ********************************************************************
|
---|
6 | $Id: titlepage.xsl 9360 2012-05-12 23:39:14Z bobstayton $
|
---|
7 | ********************************************************************
|
---|
8 |
|
---|
9 | This file is part of the XSL DocBook Stylesheet distribution.
|
---|
10 | See ../README or http://docbook.sf.net/release/xsl/current/ for
|
---|
11 | copyright and other information.
|
---|
12 |
|
---|
13 | ******************************************************************** -->
|
---|
14 |
|
---|
15 | <!-- ==================================================================== -->
|
---|
16 |
|
---|
17 | <xsl:attribute-set name="book.titlepage.recto.style"/>
|
---|
18 | <xsl:attribute-set name="book.titlepage.verso.style"/>
|
---|
19 |
|
---|
20 | <xsl:attribute-set name="article.titlepage.recto.style"/>
|
---|
21 | <xsl:attribute-set name="article.titlepage.verso.style"/>
|
---|
22 |
|
---|
23 | <xsl:attribute-set name="set.titlepage.recto.style"/>
|
---|
24 | <xsl:attribute-set name="set.titlepage.verso.style"/>
|
---|
25 |
|
---|
26 | <xsl:attribute-set name="part.titlepage.recto.style"/>
|
---|
27 | <xsl:attribute-set name="part.titlepage.verso.style"/>
|
---|
28 |
|
---|
29 | <xsl:attribute-set name="partintro.titlepage.recto.style"/>
|
---|
30 | <xsl:attribute-set name="partintro.titlepage.verso.style"/>
|
---|
31 |
|
---|
32 | <xsl:attribute-set name="reference.titlepage.recto.style"/>
|
---|
33 | <xsl:attribute-set name="reference.titlepage.verso.style"/>
|
---|
34 |
|
---|
35 | <xsl:attribute-set name="refentry.titlepage.recto.style"/>
|
---|
36 | <xsl:attribute-set name="refentry.titlepage.verso.style"/>
|
---|
37 |
|
---|
38 | <xsl:attribute-set name="dedication.titlepage.recto.style"/>
|
---|
39 | <xsl:attribute-set name="dedication.titlepage.verso.style"/>
|
---|
40 |
|
---|
41 | <xsl:attribute-set name="acknowledgements.titlepage.recto.style"/>
|
---|
42 | <xsl:attribute-set name="acknowledgements.titlepage.verso.style"/>
|
---|
43 |
|
---|
44 | <xsl:attribute-set name="preface.titlepage.recto.style"/>
|
---|
45 | <xsl:attribute-set name="preface.titlepage.verso.style"/>
|
---|
46 |
|
---|
47 | <xsl:attribute-set name="chapter.titlepage.recto.style"/>
|
---|
48 | <xsl:attribute-set name="chapter.titlepage.verso.style"/>
|
---|
49 |
|
---|
50 | <xsl:attribute-set name="appendix.titlepage.recto.style"/>
|
---|
51 | <xsl:attribute-set name="appendix.titlepage.verso.style"/>
|
---|
52 |
|
---|
53 | <xsl:attribute-set name="bibliography.titlepage.recto.style"/>
|
---|
54 | <xsl:attribute-set name="bibliography.titlepage.verso.style"/>
|
---|
55 |
|
---|
56 | <xsl:attribute-set name="glossary.titlepage.recto.style"/>
|
---|
57 | <xsl:attribute-set name="glossary.titlepage.verso.style"/>
|
---|
58 |
|
---|
59 | <xsl:attribute-set name="index.titlepage.recto.style"/>
|
---|
60 | <xsl:attribute-set name="index.titlepage.verso.style"/>
|
---|
61 |
|
---|
62 | <xsl:attribute-set name="setindex.titlepage.recto.style"/>
|
---|
63 | <xsl:attribute-set name="setindex.titlepage.verso.style"/>
|
---|
64 |
|
---|
65 | <xsl:attribute-set name="sidebar.titlepage.recto.style"/>
|
---|
66 | <xsl:attribute-set name="sidebar.titlepage.verso.style"/>
|
---|
67 |
|
---|
68 | <xsl:attribute-set name="topic.titlepage.recto.style"/>
|
---|
69 | <xsl:attribute-set name="topic.titlepage.verso.style"/>
|
---|
70 |
|
---|
71 | <xsl:attribute-set name="section.titlepage.recto.style"/>
|
---|
72 | <xsl:attribute-set name="section.titlepage.verso.style"/>
|
---|
73 |
|
---|
74 | <xsl:attribute-set name="sect1.titlepage.recto.style"
|
---|
75 | use-attribute-sets="section.titlepage.recto.style"/>
|
---|
76 | <xsl:attribute-set name="sect1.titlepage.verso.style"
|
---|
77 | use-attribute-sets="section.titlepage.verso.style"/>
|
---|
78 |
|
---|
79 | <xsl:attribute-set name="sect2.titlepage.recto.style"
|
---|
80 | use-attribute-sets="section.titlepage.recto.style"/>
|
---|
81 | <xsl:attribute-set name="sect2.titlepage.verso.style"
|
---|
82 | use-attribute-sets="section.titlepage.verso.style"/>
|
---|
83 |
|
---|
84 | <xsl:attribute-set name="sect3.titlepage.recto.style"
|
---|
85 | use-attribute-sets="section.titlepage.recto.style"/>
|
---|
86 | <xsl:attribute-set name="sect3.titlepage.verso.style"
|
---|
87 | use-attribute-sets="section.titlepage.verso.style"/>
|
---|
88 |
|
---|
89 | <xsl:attribute-set name="sect4.titlepage.recto.style"
|
---|
90 | use-attribute-sets="section.titlepage.recto.style"/>
|
---|
91 | <xsl:attribute-set name="sect4.titlepage.verso.style"
|
---|
92 | use-attribute-sets="section.titlepage.verso.style"/>
|
---|
93 |
|
---|
94 | <xsl:attribute-set name="sect5.titlepage.recto.style"
|
---|
95 | use-attribute-sets="section.titlepage.recto.style"/>
|
---|
96 | <xsl:attribute-set name="sect5.titlepage.verso.style"
|
---|
97 | use-attribute-sets="section.titlepage.verso.style"/>
|
---|
98 |
|
---|
99 | <xsl:attribute-set name="simplesect.titlepage.recto.style"
|
---|
100 | use-attribute-sets="section.titlepage.recto.style"/>
|
---|
101 | <xsl:attribute-set name="simplesect.titlepage.verso.style"
|
---|
102 | use-attribute-sets="section.titlepage.verso.style"/>
|
---|
103 |
|
---|
104 | <xsl:attribute-set name="table.of.contents.titlepage.recto.style"/>
|
---|
105 | <xsl:attribute-set name="table.of.contents.titlepage.verso.style"/>
|
---|
106 |
|
---|
107 | <xsl:attribute-set name="list.of.tables.titlepage.recto.style"/>
|
---|
108 | <xsl:attribute-set name="list.of.tables.contents.titlepage.verso.style"/>
|
---|
109 |
|
---|
110 | <xsl:attribute-set name="list.of.figures.titlepage.recto.style"/>
|
---|
111 | <xsl:attribute-set name="list.of.figures.contents.titlepage.verso.style"/>
|
---|
112 |
|
---|
113 | <xsl:attribute-set name="list.of.equations.titlepage.recto.style"/>
|
---|
114 | <xsl:attribute-set name="list.of.equations.contents.titlepage.verso.style"/>
|
---|
115 |
|
---|
116 | <xsl:attribute-set name="list.of.examples.titlepage.recto.style"/>
|
---|
117 | <xsl:attribute-set name="list.of.examples.contents.titlepage.verso.style"/>
|
---|
118 |
|
---|
119 | <xsl:attribute-set name="list.of.unknowns.titlepage.recto.style"/>
|
---|
120 | <xsl:attribute-set name="list.of.unknowns.contents.titlepage.verso.style"/>
|
---|
121 |
|
---|
122 | <!-- ==================================================================== -->
|
---|
123 |
|
---|
124 | <xsl:template match="*" mode="titlepage.mode">
|
---|
125 | <!-- if an element isn't found in this mode, try the default mode -->
|
---|
126 | <xsl:apply-templates select="."/>
|
---|
127 | </xsl:template>
|
---|
128 |
|
---|
129 | <xsl:template match="abbrev" mode="titlepage.mode">
|
---|
130 | <span>
|
---|
131 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
132 | <xsl:call-template name="id.attribute"/>
|
---|
133 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
134 | <br/>
|
---|
135 | </span>
|
---|
136 | </xsl:template>
|
---|
137 |
|
---|
138 | <xsl:template match="abstract" mode="titlepage.mode">
|
---|
139 | <div>
|
---|
140 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
141 | <xsl:call-template name="id.attribute"/>
|
---|
142 | <xsl:call-template name="anchor"/>
|
---|
143 | <xsl:if test="$abstract.notitle.enabled = 0">
|
---|
144 | <xsl:call-template name="formal.object.heading">
|
---|
145 | <xsl:with-param name="title">
|
---|
146 | <xsl:apply-templates select="." mode="title.markup"/>
|
---|
147 | </xsl:with-param>
|
---|
148 | </xsl:call-template>
|
---|
149 | </xsl:if>
|
---|
150 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
151 | <xsl:call-template name="process.footnotes"/>
|
---|
152 | </div>
|
---|
153 | </xsl:template>
|
---|
154 |
|
---|
155 | <xsl:template match="abstract/title" mode="titlepage.mode">
|
---|
156 | </xsl:template>
|
---|
157 |
|
---|
158 | <xsl:template match="address" mode="titlepage.mode">
|
---|
159 | <xsl:param name="suppress-numbers" select="'0'"/>
|
---|
160 |
|
---|
161 | <xsl:variable name="rtf">
|
---|
162 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
163 | </xsl:variable>
|
---|
164 |
|
---|
165 | <xsl:choose>
|
---|
166 | <xsl:when test="$suppress-numbers = '0'
|
---|
167 | and @linenumbering = 'numbered'
|
---|
168 | and $use.extensions != '0'
|
---|
169 | and $linenumbering.extension != '0'">
|
---|
170 | <div>
|
---|
171 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
172 | <xsl:call-template name="paragraph">
|
---|
173 | <xsl:with-param name="content">
|
---|
174 | <xsl:call-template name="number.rtf.lines">
|
---|
175 | <xsl:with-param name="rtf" select="$rtf"/>
|
---|
176 | </xsl:call-template>
|
---|
177 | </xsl:with-param>
|
---|
178 | </xsl:call-template>
|
---|
179 | </div>
|
---|
180 | </xsl:when>
|
---|
181 |
|
---|
182 | <xsl:otherwise>
|
---|
183 | <div>
|
---|
184 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
185 | <xsl:call-template name="paragraph">
|
---|
186 | <xsl:with-param name="content">
|
---|
187 | <xsl:call-template name="make-verbatim">
|
---|
188 | <xsl:with-param name="rtf" select="$rtf"/>
|
---|
189 | </xsl:call-template>
|
---|
190 | </xsl:with-param>
|
---|
191 | </xsl:call-template>
|
---|
192 | </div>
|
---|
193 | </xsl:otherwise>
|
---|
194 | </xsl:choose>
|
---|
195 | </xsl:template>
|
---|
196 |
|
---|
197 | <xsl:template match="affiliation" mode="titlepage.mode">
|
---|
198 | <div>
|
---|
199 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
200 | <xsl:call-template name="id.attribute"/>
|
---|
201 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
202 | </div>
|
---|
203 | </xsl:template>
|
---|
204 |
|
---|
205 | <xsl:template match="artpagenums" mode="titlepage.mode">
|
---|
206 | <span>
|
---|
207 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
208 | <xsl:call-template name="id.attribute"/>
|
---|
209 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
210 | <br/>
|
---|
211 | </span>
|
---|
212 | </xsl:template>
|
---|
213 |
|
---|
214 | <xsl:template match="author|editor" mode="titlepage.mode">
|
---|
215 | <xsl:call-template name="credits.div"/>
|
---|
216 | </xsl:template>
|
---|
217 |
|
---|
218 | <xsl:template name="credits.div">
|
---|
219 | <div>
|
---|
220 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
221 | <xsl:call-template name="id.attribute"/>
|
---|
222 | <xsl:if test="self::editor[position()=1] and not($editedby.enabled = 0)">
|
---|
223 | <h4 class="editedby"><xsl:call-template name="gentext.edited.by"/></h4>
|
---|
224 | </xsl:if>
|
---|
225 | <h3>
|
---|
226 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
227 | <xsl:choose>
|
---|
228 | <xsl:when test="orgname">
|
---|
229 | <xsl:apply-templates/>
|
---|
230 | </xsl:when>
|
---|
231 | <xsl:otherwise>
|
---|
232 | <xsl:call-template name="person.name"/>
|
---|
233 | </xsl:otherwise>
|
---|
234 | </xsl:choose>
|
---|
235 | </h3>
|
---|
236 | <xsl:if test="not($contrib.inline.enabled = 0)">
|
---|
237 | <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
|
---|
238 | </xsl:if>
|
---|
239 | <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
|
---|
240 | <xsl:apply-templates mode="titlepage.mode" select="email"/>
|
---|
241 | <xsl:if test="not($blurb.on.titlepage.enabled = 0)">
|
---|
242 | <xsl:choose>
|
---|
243 | <xsl:when test="$contrib.inline.enabled = 0">
|
---|
244 | <xsl:apply-templates mode="titlepage.mode"
|
---|
245 | select="contrib|authorblurb|personblurb"/>
|
---|
246 | </xsl:when>
|
---|
247 | <xsl:otherwise>
|
---|
248 | <xsl:apply-templates mode="titlepage.mode"
|
---|
249 | select="authorblurb|personblurb"/>
|
---|
250 | </xsl:otherwise>
|
---|
251 | </xsl:choose>
|
---|
252 | </xsl:if>
|
---|
253 | </div>
|
---|
254 | </xsl:template>
|
---|
255 |
|
---|
256 | <xsl:template match="authorblurb|personblurb" mode="titlepage.mode">
|
---|
257 | <div>
|
---|
258 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
259 | <xsl:call-template name="id.attribute"/>
|
---|
260 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
261 | </div>
|
---|
262 | </xsl:template>
|
---|
263 |
|
---|
264 | <xsl:template match="authorgroup" mode="titlepage.mode">
|
---|
265 | <div>
|
---|
266 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
267 | <xsl:call-template name="id.attribute"/>
|
---|
268 | <xsl:if test="parent::refentryinfo">
|
---|
269 | <h2>Authors</h2>
|
---|
270 | </xsl:if>
|
---|
271 |
|
---|
272 | <xsl:call-template name="anchor"/>
|
---|
273 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
274 | </div>
|
---|
275 | </xsl:template>
|
---|
276 |
|
---|
277 | <xsl:template match="authorinitials" mode="titlepage.mode">
|
---|
278 | <span>
|
---|
279 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
280 | <xsl:call-template name="id.attribute"/>
|
---|
281 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
282 | <br/>
|
---|
283 | </span>
|
---|
284 | </xsl:template>
|
---|
285 |
|
---|
286 | <xsl:template match="bibliomisc" mode="titlepage.mode">
|
---|
287 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
288 | </xsl:template>
|
---|
289 |
|
---|
290 | <xsl:template match="bibliomset" mode="titlepage.mode">
|
---|
291 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
292 | </xsl:template>
|
---|
293 |
|
---|
294 | <xsl:template match="collab" mode="titlepage.mode">
|
---|
295 | <span>
|
---|
296 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
297 | <xsl:call-template name="id.attribute"/>
|
---|
298 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
299 | <br/>
|
---|
300 | </span>
|
---|
301 | </xsl:template>
|
---|
302 |
|
---|
303 | <xsl:template match="collabname" mode="titlepage.mode">
|
---|
304 | <span>
|
---|
305 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
306 | <xsl:call-template name="id.attribute"/>
|
---|
307 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
308 | </span>
|
---|
309 | </xsl:template>
|
---|
310 |
|
---|
311 | <xsl:template match="confgroup" mode="titlepage.mode">
|
---|
312 | <div>
|
---|
313 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
314 | <xsl:call-template name="id.attribute"/>
|
---|
315 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
316 | </div>
|
---|
317 | </xsl:template>
|
---|
318 |
|
---|
319 | <xsl:template match="confdates" mode="titlepage.mode">
|
---|
320 | <span>
|
---|
321 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
322 | <xsl:call-template name="id.attribute"/>
|
---|
323 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
324 | <br/>
|
---|
325 | </span>
|
---|
326 | </xsl:template>
|
---|
327 |
|
---|
328 | <xsl:template match="confsponsor" mode="titlepage.mode">
|
---|
329 | <span>
|
---|
330 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
331 | <xsl:call-template name="id.attribute"/>
|
---|
332 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
333 | <br/>
|
---|
334 | </span>
|
---|
335 | </xsl:template>
|
---|
336 |
|
---|
337 | <xsl:template match="conftitle" mode="titlepage.mode">
|
---|
338 | <span>
|
---|
339 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
340 | <xsl:call-template name="id.attribute"/>
|
---|
341 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
342 | <br/>
|
---|
343 | </span>
|
---|
344 | </xsl:template>
|
---|
345 |
|
---|
346 | <xsl:template match="confnum" mode="titlepage.mode">
|
---|
347 | <!-- suppress -->
|
---|
348 | </xsl:template>
|
---|
349 |
|
---|
350 | <xsl:template match="contractnum" mode="titlepage.mode">
|
---|
351 | <span>
|
---|
352 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
353 | <xsl:call-template name="id.attribute"/>
|
---|
354 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
355 | <br/>
|
---|
356 | </span>
|
---|
357 | </xsl:template>
|
---|
358 |
|
---|
359 | <xsl:template match="contractsponsor" mode="titlepage.mode">
|
---|
360 | <span>
|
---|
361 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
362 | <xsl:call-template name="id.attribute"/>
|
---|
363 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
364 | <br/>
|
---|
365 | </span>
|
---|
366 | </xsl:template>
|
---|
367 |
|
---|
368 | <xsl:template match="contrib" mode="titlepage.mode">
|
---|
369 | <xsl:choose>
|
---|
370 | <xsl:when test="not($contrib.inline.enabled = 0)">
|
---|
371 | <span>
|
---|
372 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
373 | <xsl:call-template name="id.attribute"/>
|
---|
374 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
375 | </span><xsl:text> </xsl:text>
|
---|
376 | </xsl:when>
|
---|
377 | <xsl:otherwise>
|
---|
378 | <div>
|
---|
379 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
380 | <xsl:call-template name="id.attribute"/>
|
---|
381 | <p><xsl:apply-templates mode="titlepage.mode"/></p>
|
---|
382 | </div>
|
---|
383 | </xsl:otherwise>
|
---|
384 | </xsl:choose>
|
---|
385 | </xsl:template>
|
---|
386 |
|
---|
387 | <xsl:template match="copyright" mode="titlepage.mode">
|
---|
388 |
|
---|
389 | <xsl:if test="generate-id() = generate-id(//refentryinfo/copyright[1])
|
---|
390 | and ($stylesheet.result.type = 'html' or $stylesheet.result.type = 'xhtml')">
|
---|
391 | <h2>Copyright</h2>
|
---|
392 | </xsl:if>
|
---|
393 |
|
---|
394 | <p>
|
---|
395 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
396 | <xsl:call-template name="id.attribute"/>
|
---|
397 | <xsl:call-template name="gentext">
|
---|
398 | <xsl:with-param name="key" select="'Copyright'"/>
|
---|
399 | </xsl:call-template>
|
---|
400 | <xsl:call-template name="gentext.space"/>
|
---|
401 | <xsl:call-template name="dingbat">
|
---|
402 | <xsl:with-param name="dingbat">copyright</xsl:with-param>
|
---|
403 | </xsl:call-template>
|
---|
404 | <xsl:call-template name="gentext.space"/>
|
---|
405 | <xsl:call-template name="copyright.years">
|
---|
406 | <xsl:with-param name="years" select="year"/>
|
---|
407 | <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
|
---|
408 | <xsl:with-param name="single.year.ranges"
|
---|
409 | select="$make.single.year.ranges"/>
|
---|
410 | </xsl:call-template>
|
---|
411 | <xsl:call-template name="gentext.space"/>
|
---|
412 | <xsl:apply-templates select="holder" mode="titlepage.mode"/>
|
---|
413 | </p>
|
---|
414 | </xsl:template>
|
---|
415 |
|
---|
416 | <xsl:template match="year" mode="titlepage.mode">
|
---|
417 | <xsl:choose>
|
---|
418 | <xsl:when test="$show.revisionflag != 0 and @revisionflag">
|
---|
419 | <span class="{@revisionflag}">
|
---|
420 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
421 | </span>
|
---|
422 | </xsl:when>
|
---|
423 | <xsl:otherwise>
|
---|
424 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
425 | </xsl:otherwise>
|
---|
426 | </xsl:choose>
|
---|
427 | </xsl:template>
|
---|
428 |
|
---|
429 | <xsl:template match="holder" mode="titlepage.mode">
|
---|
430 | <xsl:choose>
|
---|
431 | <xsl:when test="$show.revisionflag != 0 and @revisionflag">
|
---|
432 | <span class="{@revisionflag}">
|
---|
433 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
434 | </span>
|
---|
435 | </xsl:when>
|
---|
436 | <xsl:otherwise>
|
---|
437 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
438 | </xsl:otherwise>
|
---|
439 | </xsl:choose>
|
---|
440 | <xsl:if test="position() < last()">
|
---|
441 | <xsl:text>, </xsl:text>
|
---|
442 | </xsl:if>
|
---|
443 | </xsl:template>
|
---|
444 |
|
---|
445 | <xsl:template match="corpauthor" mode="titlepage.mode">
|
---|
446 | <h3>
|
---|
447 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
448 | <xsl:call-template name="id.attribute"/>
|
---|
449 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
450 | </h3>
|
---|
451 | </xsl:template>
|
---|
452 |
|
---|
453 | <xsl:template match="corpcredit" mode="titlepage.mode">
|
---|
454 | <span>
|
---|
455 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
456 | <xsl:call-template name="id.attribute"/>
|
---|
457 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
458 | <br/>
|
---|
459 | </span>
|
---|
460 | </xsl:template>
|
---|
461 |
|
---|
462 | <xsl:template match="corpname" mode="titlepage.mode">
|
---|
463 | <span>
|
---|
464 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
465 | <xsl:call-template name="id.attribute"/>
|
---|
466 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
467 | <br/>
|
---|
468 | </span>
|
---|
469 | </xsl:template>
|
---|
470 |
|
---|
471 | <xsl:template match="date" mode="titlepage.mode">
|
---|
472 | <span>
|
---|
473 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
474 | <xsl:call-template name="id.attribute"/>
|
---|
475 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
476 | <br/>
|
---|
477 | </span>
|
---|
478 | </xsl:template>
|
---|
479 |
|
---|
480 | <xsl:template match="edition" mode="titlepage.mode">
|
---|
481 | <p>
|
---|
482 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
483 | <xsl:call-template name="id.attribute"/>
|
---|
484 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
485 | <xsl:call-template name="gentext.space"/>
|
---|
486 | <xsl:call-template name="gentext">
|
---|
487 | <xsl:with-param name="key" select="'Edition'"/>
|
---|
488 | </xsl:call-template>
|
---|
489 | </p>
|
---|
490 | </xsl:template>
|
---|
491 |
|
---|
492 | <xsl:template match="email" mode="titlepage.mode">
|
---|
493 | <!-- use the normal e-mail handling code -->
|
---|
494 | <xsl:apply-templates select="."/>
|
---|
495 | </xsl:template>
|
---|
496 |
|
---|
497 | <xsl:template match="firstname" mode="titlepage.mode">
|
---|
498 | <span>
|
---|
499 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
500 | <xsl:call-template name="id.attribute"/>
|
---|
501 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
502 | <br/>
|
---|
503 | </span>
|
---|
504 | </xsl:template>
|
---|
505 |
|
---|
506 | <xsl:template match="graphic" mode="titlepage.mode">
|
---|
507 | <!-- use the normal graphic handling code -->
|
---|
508 | <xsl:apply-templates select="."/>
|
---|
509 | </xsl:template>
|
---|
510 |
|
---|
511 | <xsl:template match="honorific" mode="titlepage.mode">
|
---|
512 | <span>
|
---|
513 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
514 | <xsl:call-template name="id.attribute"/>
|
---|
515 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
516 | <br/>
|
---|
517 | </span>
|
---|
518 | </xsl:template>
|
---|
519 |
|
---|
520 | <xsl:template match="isbn" mode="titlepage.mode">
|
---|
521 | <span>
|
---|
522 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
523 | <xsl:call-template name="id.attribute"/>
|
---|
524 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
525 | <br/>
|
---|
526 | </span>
|
---|
527 | </xsl:template>
|
---|
528 |
|
---|
529 | <xsl:template match="issn" mode="titlepage.mode">
|
---|
530 | <span>
|
---|
531 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
532 | <xsl:call-template name="id.attribute"/>
|
---|
533 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
534 | <br/>
|
---|
535 | </span>
|
---|
536 | </xsl:template>
|
---|
537 |
|
---|
538 | <xsl:template match="biblioid" mode="titlepage.mode">
|
---|
539 | <span>
|
---|
540 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
541 | <xsl:call-template name="id.attribute"/>
|
---|
542 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
543 | <br/>
|
---|
544 | </span>
|
---|
545 | </xsl:template>
|
---|
546 |
|
---|
547 | <xsl:template match="itermset" mode="titlepage.mode">
|
---|
548 | </xsl:template>
|
---|
549 |
|
---|
550 | <xsl:template match="invpartnumber" mode="titlepage.mode">
|
---|
551 | <span>
|
---|
552 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
553 | <xsl:call-template name="id.attribute"/>
|
---|
554 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
555 | <br/>
|
---|
556 | </span>
|
---|
557 | </xsl:template>
|
---|
558 |
|
---|
559 | <xsl:template match="issuenum" mode="titlepage.mode">
|
---|
560 | <span>
|
---|
561 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
562 | <xsl:call-template name="id.attribute"/>
|
---|
563 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
564 | <br/>
|
---|
565 | </span>
|
---|
566 | </xsl:template>
|
---|
567 |
|
---|
568 | <xsl:template match="jobtitle" mode="titlepage.mode">
|
---|
569 | <span>
|
---|
570 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
571 | <xsl:call-template name="id.attribute"/>
|
---|
572 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
573 | <br/>
|
---|
574 | </span>
|
---|
575 | </xsl:template>
|
---|
576 |
|
---|
577 | <xsl:template match="keywordset" mode="titlepage.mode">
|
---|
578 | </xsl:template>
|
---|
579 |
|
---|
580 | <xsl:template match="legalnotice" mode="titlepage.mode">
|
---|
581 | <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
|
---|
582 |
|
---|
583 | <xsl:choose>
|
---|
584 | <xsl:when test="$generate.legalnotice.link != 0">
|
---|
585 |
|
---|
586 | <!-- Compute name of legalnotice file -->
|
---|
587 | <xsl:variable name="file">
|
---|
588 | <xsl:call-template name="ln.or.rh.filename"/>
|
---|
589 | </xsl:variable>
|
---|
590 |
|
---|
591 | <xsl:variable name="filename">
|
---|
592 | <xsl:call-template name="make-relative-filename">
|
---|
593 | <xsl:with-param name="base.dir" select="$chunk.base.dir"/>
|
---|
594 | <xsl:with-param name="base.name" select="$file"/>
|
---|
595 | </xsl:call-template>
|
---|
596 | </xsl:variable>
|
---|
597 |
|
---|
598 | <xsl:variable name="title">
|
---|
599 | <xsl:apply-templates select="." mode="title.markup"/>
|
---|
600 | </xsl:variable>
|
---|
601 |
|
---|
602 | <a href="{$file}">
|
---|
603 | <xsl:copy-of select="$title"/>
|
---|
604 | </a>
|
---|
605 |
|
---|
606 | <xsl:call-template name="write.chunk">
|
---|
607 | <xsl:with-param name="filename" select="$filename"/>
|
---|
608 | <xsl:with-param name="quiet" select="$chunk.quietly"/>
|
---|
609 | <xsl:with-param name="content">
|
---|
610 | <xsl:call-template name="user.preroot"/>
|
---|
611 | <html>
|
---|
612 | <head>
|
---|
613 | <xsl:call-template name="system.head.content"/>
|
---|
614 | <xsl:call-template name="head.content"/>
|
---|
615 | <xsl:call-template name="user.head.content"/>
|
---|
616 | </head>
|
---|
617 | <body>
|
---|
618 | <xsl:call-template name="body.attributes"/>
|
---|
619 | <div>
|
---|
620 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
621 | <xsl:call-template name="id.attribute">
|
---|
622 | <xsl:with-param name="conditional" select="0"/>
|
---|
623 | </xsl:call-template>
|
---|
624 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
625 | </div>
|
---|
626 | </body>
|
---|
627 | </html>
|
---|
628 | <xsl:value-of select="$chunk.append"/>
|
---|
629 | </xsl:with-param>
|
---|
630 | </xsl:call-template>
|
---|
631 | </xsl:when>
|
---|
632 | <xsl:otherwise>
|
---|
633 | <div>
|
---|
634 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
635 | <xsl:call-template name="id.attribute">
|
---|
636 | <xsl:with-param name="conditional" select="0"/>
|
---|
637 | </xsl:call-template>
|
---|
638 | <xsl:call-template name="anchor">
|
---|
639 | <xsl:with-param name="conditional" select="0"/>
|
---|
640 | </xsl:call-template>
|
---|
641 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
642 | </div>
|
---|
643 | </xsl:otherwise>
|
---|
644 | </xsl:choose>
|
---|
645 | </xsl:template>
|
---|
646 |
|
---|
647 | <xsl:template match="legalnotice/title" mode="titlepage.mode">
|
---|
648 | <p class="legalnotice-title"><b><xsl:apply-templates/></b></p>
|
---|
649 | </xsl:template>
|
---|
650 |
|
---|
651 | <xsl:template match="lineage" mode="titlepage.mode">
|
---|
652 | <span>
|
---|
653 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
654 | <xsl:call-template name="id.attribute"/>
|
---|
655 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
656 | <br/>
|
---|
657 | </span>
|
---|
658 | </xsl:template>
|
---|
659 |
|
---|
660 | <xsl:template match="modespec" mode="titlepage.mode">
|
---|
661 | </xsl:template>
|
---|
662 |
|
---|
663 | <xsl:template match="orgdiv" mode="titlepage.mode">
|
---|
664 | <xsl:if test="preceding-sibling::*[1][self::orgname]">
|
---|
665 | <xsl:text> </xsl:text>
|
---|
666 | </xsl:if>
|
---|
667 | <span>
|
---|
668 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
669 | <xsl:call-template name="id.attribute"/>
|
---|
670 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
671 | <br/>
|
---|
672 | </span>
|
---|
673 | </xsl:template>
|
---|
674 |
|
---|
675 | <xsl:template match="orgname" mode="titlepage.mode">
|
---|
676 | <span>
|
---|
677 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
678 | <xsl:call-template name="id.attribute"/>
|
---|
679 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
680 | <br/>
|
---|
681 | </span>
|
---|
682 | </xsl:template>
|
---|
683 |
|
---|
684 | <xsl:template match="othercredit" mode="titlepage.mode">
|
---|
685 | <xsl:choose>
|
---|
686 | <xsl:when test="not($othercredit.like.author.enabled = 0)">
|
---|
687 | <xsl:variable name="contrib" select="string(contrib)"/>
|
---|
688 | <xsl:choose>
|
---|
689 | <xsl:when test="contrib">
|
---|
690 | <xsl:if test="not(preceding-sibling::othercredit[string(contrib)=$contrib])">
|
---|
691 | <xsl:call-template name="paragraph">
|
---|
692 | <xsl:with-param name="class" select="local-name(.)"/>
|
---|
693 | <xsl:with-param name="content">
|
---|
694 | <xsl:apply-templates mode="titlepage.mode" select="contrib"/>
|
---|
695 | <xsl:text>: </xsl:text>
|
---|
696 | <xsl:call-template name="person.name"/>
|
---|
697 | <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
|
---|
698 | <xsl:apply-templates select="following-sibling::othercredit[string(contrib)=$contrib]" mode="titlepage.othercredits"/>
|
---|
699 | </xsl:with-param>
|
---|
700 | </xsl:call-template>
|
---|
701 | </xsl:if>
|
---|
702 | </xsl:when>
|
---|
703 | <xsl:otherwise>
|
---|
704 | <xsl:call-template name="paragraph">
|
---|
705 | <xsl:with-param name="class" select="local-name(.)"/>
|
---|
706 | <xsl:with-param name="content">
|
---|
707 | <xsl:call-template name="person.name"/>
|
---|
708 | </xsl:with-param>
|
---|
709 | </xsl:call-template>
|
---|
710 | <xsl:apply-templates mode="titlepage.mode" select="affiliation"/>
|
---|
711 | </xsl:otherwise>
|
---|
712 | </xsl:choose>
|
---|
713 | </xsl:when>
|
---|
714 | <xsl:otherwise>
|
---|
715 | <xsl:call-template name="credits.div"/>
|
---|
716 | </xsl:otherwise>
|
---|
717 | </xsl:choose>
|
---|
718 | </xsl:template>
|
---|
719 |
|
---|
720 | <xsl:template match="othercredit" mode="titlepage.othercredits">
|
---|
721 | <xsl:text>, </xsl:text>
|
---|
722 | <xsl:call-template name="person.name"/>
|
---|
723 | </xsl:template>
|
---|
724 |
|
---|
725 | <xsl:template match="othername" mode="titlepage.mode">
|
---|
726 | <span>
|
---|
727 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
728 | <xsl:call-template name="id.attribute"/>
|
---|
729 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
730 | <br/>
|
---|
731 | </span>
|
---|
732 | </xsl:template>
|
---|
733 |
|
---|
734 | <xsl:template match="pagenums" mode="titlepage.mode">
|
---|
735 | <span>
|
---|
736 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
737 | <xsl:call-template name="id.attribute"/>
|
---|
738 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
739 | <br/>
|
---|
740 | </span>
|
---|
741 | </xsl:template>
|
---|
742 |
|
---|
743 | <xsl:template match="printhistory" mode="titlepage.mode">
|
---|
744 | <div>
|
---|
745 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
746 | <xsl:call-template name="id.attribute"/>
|
---|
747 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
748 | </div>
|
---|
749 | </xsl:template>
|
---|
750 |
|
---|
751 | <xsl:template match="productname" mode="titlepage.mode">
|
---|
752 | <span>
|
---|
753 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
754 | <xsl:call-template name="id.attribute"/>
|
---|
755 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
756 | <br/>
|
---|
757 | </span>
|
---|
758 | </xsl:template>
|
---|
759 |
|
---|
760 | <xsl:template match="productnumber" mode="titlepage.mode">
|
---|
761 | <span>
|
---|
762 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
763 | <xsl:call-template name="id.attribute"/>
|
---|
764 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
765 | <br/>
|
---|
766 | </span>
|
---|
767 | </xsl:template>
|
---|
768 |
|
---|
769 | <xsl:template match="pubdate" mode="titlepage.mode">
|
---|
770 | <xsl:call-template name="paragraph">
|
---|
771 | <xsl:with-param name="class" select="local-name(.)"/>
|
---|
772 | <xsl:with-param name="content">
|
---|
773 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
774 | </xsl:with-param>
|
---|
775 | </xsl:call-template>
|
---|
776 | </xsl:template>
|
---|
777 |
|
---|
778 | <xsl:template match="publisher" mode="titlepage.mode">
|
---|
779 | <xsl:call-template name="paragraph">
|
---|
780 | <xsl:with-param name="class" select="local-name(.)"/>
|
---|
781 | <xsl:with-param name="content">
|
---|
782 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
783 | </xsl:with-param>
|
---|
784 | </xsl:call-template>
|
---|
785 | </xsl:template>
|
---|
786 |
|
---|
787 | <xsl:template match="publishername" mode="titlepage.mode">
|
---|
788 | <span>
|
---|
789 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
790 | <xsl:call-template name="id.attribute"/>
|
---|
791 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
792 | <br/>
|
---|
793 | </span>
|
---|
794 | </xsl:template>
|
---|
795 |
|
---|
796 | <xsl:template match="pubsnumber" mode="titlepage.mode">
|
---|
797 | <span>
|
---|
798 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
799 | <xsl:call-template name="id.attribute"/>
|
---|
800 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
801 | <br/>
|
---|
802 | </span>
|
---|
803 | </xsl:template>
|
---|
804 |
|
---|
805 | <xsl:template match="releaseinfo" mode="titlepage.mode">
|
---|
806 | <xsl:call-template name="paragraph">
|
---|
807 | <xsl:with-param name="class" select="local-name(.)"/>
|
---|
808 | <xsl:with-param name="content">
|
---|
809 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
810 | </xsl:with-param>
|
---|
811 | </xsl:call-template>
|
---|
812 | </xsl:template>
|
---|
813 |
|
---|
814 | <xsl:template match="revhistory" mode="titlepage.mode">
|
---|
815 | <xsl:variable name="numcols">
|
---|
816 | <xsl:choose>
|
---|
817 | <xsl:when test=".//authorinitials|.//author">3</xsl:when>
|
---|
818 | <xsl:otherwise>2</xsl:otherwise>
|
---|
819 | </xsl:choose>
|
---|
820 | </xsl:variable>
|
---|
821 |
|
---|
822 | <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
|
---|
823 |
|
---|
824 | <xsl:variable name="title">
|
---|
825 | <xsl:call-template name="gentext">
|
---|
826 | <xsl:with-param name="key">RevHistory</xsl:with-param>
|
---|
827 | </xsl:call-template>
|
---|
828 | </xsl:variable>
|
---|
829 |
|
---|
830 | <xsl:variable name="contents">
|
---|
831 | <div>
|
---|
832 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
833 | <xsl:call-template name="id.attribute"/>
|
---|
834 | <table>
|
---|
835 | <xsl:if test="$css.decoration != 0">
|
---|
836 | <xsl:attribute name="style">
|
---|
837 | <xsl:text>border-style:solid; width:100%;</xsl:text>
|
---|
838 | </xsl:attribute>
|
---|
839 | </xsl:if>
|
---|
840 | <!-- include summary attribute if not HTML5 -->
|
---|
841 | <xsl:if test="$div.element != 'section'">
|
---|
842 | <xsl:attribute name="summary">
|
---|
843 | <xsl:call-template name="gentext">
|
---|
844 | <xsl:with-param name="key">revhistory</xsl:with-param>
|
---|
845 | </xsl:call-template>
|
---|
846 | </xsl:attribute>
|
---|
847 | </xsl:if>
|
---|
848 | <tr>
|
---|
849 | <th align="{$direction.align.start}" valign="top" colspan="{$numcols}">
|
---|
850 | <b>
|
---|
851 | <xsl:call-template name="gentext">
|
---|
852 | <xsl:with-param name="key" select="'RevHistory'"/>
|
---|
853 | </xsl:call-template>
|
---|
854 | </b>
|
---|
855 | </th>
|
---|
856 | </tr>
|
---|
857 | <xsl:apply-templates mode="titlepage.mode">
|
---|
858 | <xsl:with-param name="numcols" select="$numcols"/>
|
---|
859 | </xsl:apply-templates>
|
---|
860 | </table>
|
---|
861 | </div>
|
---|
862 | </xsl:variable>
|
---|
863 |
|
---|
864 | <xsl:choose>
|
---|
865 | <xsl:when test="$generate.revhistory.link != 0">
|
---|
866 |
|
---|
867 | <!-- Compute name of revhistory file -->
|
---|
868 | <xsl:variable name="file">
|
---|
869 | <xsl:call-template name="ln.or.rh.filename">
|
---|
870 | <xsl:with-param name="is.ln" select="false()"/>
|
---|
871 | </xsl:call-template>
|
---|
872 | </xsl:variable>
|
---|
873 |
|
---|
874 | <xsl:variable name="filename">
|
---|
875 | <xsl:call-template name="make-relative-filename">
|
---|
876 | <xsl:with-param name="base.dir" select="$chunk.base.dir"/>
|
---|
877 | <xsl:with-param name="base.name" select="$file"/>
|
---|
878 | </xsl:call-template>
|
---|
879 | </xsl:variable>
|
---|
880 |
|
---|
881 | <a href="{$file}">
|
---|
882 | <xsl:copy-of select="$title"/>
|
---|
883 | </a>
|
---|
884 |
|
---|
885 | <xsl:call-template name="write.chunk">
|
---|
886 | <xsl:with-param name="filename" select="$filename"/>
|
---|
887 | <xsl:with-param name="quiet" select="$chunk.quietly"/>
|
---|
888 | <xsl:with-param name="content">
|
---|
889 | <xsl:call-template name="user.preroot"/>
|
---|
890 | <html>
|
---|
891 | <head>
|
---|
892 | <xsl:call-template name="system.head.content"/>
|
---|
893 | <xsl:call-template name="head.content">
|
---|
894 | <xsl:with-param name="title">
|
---|
895 | <xsl:value-of select="$title"/>
|
---|
896 | <xsl:if test="../../title">
|
---|
897 | <xsl:value-of select="concat(' (', ../../title, ')')"/>
|
---|
898 | </xsl:if>
|
---|
899 | </xsl:with-param>
|
---|
900 | </xsl:call-template>
|
---|
901 | <xsl:call-template name="user.head.content"/>
|
---|
902 | </head>
|
---|
903 | <body>
|
---|
904 | <xsl:call-template name="body.attributes"/>
|
---|
905 | <xsl:copy-of select="$contents"/>
|
---|
906 | </body>
|
---|
907 | </html>
|
---|
908 | <xsl:text>
</xsl:text>
|
---|
909 | </xsl:with-param>
|
---|
910 | </xsl:call-template>
|
---|
911 | </xsl:when>
|
---|
912 | <xsl:otherwise>
|
---|
913 | <xsl:copy-of select="$contents"/>
|
---|
914 | </xsl:otherwise>
|
---|
915 | </xsl:choose>
|
---|
916 | </xsl:template>
|
---|
917 |
|
---|
918 | <xsl:template match="revhistory/revision" mode="titlepage.mode">
|
---|
919 | <xsl:param name="numcols" select="'3'"/>
|
---|
920 | <xsl:variable name="revnumber" select="revnumber"/>
|
---|
921 | <xsl:variable name="revdate" select="date"/>
|
---|
922 | <xsl:variable name="revauthor" select="authorinitials|author"/>
|
---|
923 | <xsl:variable name="revremark" select="revremark|revdescription"/>
|
---|
924 | <tr>
|
---|
925 | <td align="{$direction.align.start}">
|
---|
926 | <xsl:if test="$revnumber">
|
---|
927 | <xsl:call-template name="gentext">
|
---|
928 | <xsl:with-param name="key" select="'Revision'"/>
|
---|
929 | </xsl:call-template>
|
---|
930 | <xsl:call-template name="gentext.space"/>
|
---|
931 | <xsl:apply-templates select="$revnumber[1]" mode="titlepage.mode"/>
|
---|
932 | </xsl:if>
|
---|
933 | </td>
|
---|
934 | <td align="{$direction.align.start}">
|
---|
935 | <xsl:apply-templates select="$revdate[1]" mode="titlepage.mode"/>
|
---|
936 | </td>
|
---|
937 | <xsl:choose>
|
---|
938 | <xsl:when test="$revauthor">
|
---|
939 | <td align="{$direction.align.start}">
|
---|
940 | <xsl:for-each select="$revauthor">
|
---|
941 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
942 | <xsl:if test="position() != last()">
|
---|
943 | <xsl:text>, </xsl:text>
|
---|
944 | </xsl:if>
|
---|
945 | </xsl:for-each>
|
---|
946 | </td>
|
---|
947 | </xsl:when>
|
---|
948 | <xsl:when test="$numcols > 2">
|
---|
949 | <td> </td>
|
---|
950 | </xsl:when>
|
---|
951 | <xsl:otherwise></xsl:otherwise>
|
---|
952 | </xsl:choose>
|
---|
953 | </tr>
|
---|
954 | <xsl:if test="$revremark">
|
---|
955 | <tr>
|
---|
956 | <td align="{$direction.align.start}" colspan="{$numcols}">
|
---|
957 | <xsl:apply-templates select="$revremark[1]" mode="titlepage.mode"/>
|
---|
958 | </td>
|
---|
959 | </tr>
|
---|
960 | </xsl:if>
|
---|
961 | </xsl:template>
|
---|
962 |
|
---|
963 | <xsl:template match="revision/revnumber" mode="titlepage.mode">
|
---|
964 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
965 | </xsl:template>
|
---|
966 |
|
---|
967 | <xsl:template match="revision/date" mode="titlepage.mode">
|
---|
968 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
969 | </xsl:template>
|
---|
970 |
|
---|
971 | <xsl:template match="revision/authorinitials" mode="titlepage.mode">
|
---|
972 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
973 | </xsl:template>
|
---|
974 |
|
---|
975 | <xsl:template match="revision/author" mode="titlepage.mode">
|
---|
976 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
977 | </xsl:template>
|
---|
978 |
|
---|
979 | <xsl:template match="revision/revremark" mode="titlepage.mode">
|
---|
980 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
981 | </xsl:template>
|
---|
982 |
|
---|
983 | <xsl:template match="revision/revdescription" mode="titlepage.mode">
|
---|
984 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
985 | </xsl:template>
|
---|
986 |
|
---|
987 | <xsl:template match="seriesvolnums" mode="titlepage.mode">
|
---|
988 | <span>
|
---|
989 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
990 | <xsl:call-template name="id.attribute"/>
|
---|
991 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
992 | <br/>
|
---|
993 | </span>
|
---|
994 | </xsl:template>
|
---|
995 |
|
---|
996 | <xsl:template match="shortaffil" mode="titlepage.mode">
|
---|
997 | <span>
|
---|
998 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
999 | <xsl:call-template name="id.attribute"/>
|
---|
1000 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
1001 | <br/>
|
---|
1002 | </span>
|
---|
1003 | </xsl:template>
|
---|
1004 |
|
---|
1005 | <xsl:template match="subjectset" mode="titlepage.mode">
|
---|
1006 | </xsl:template>
|
---|
1007 |
|
---|
1008 | <xsl:template match="subtitle" mode="titlepage.mode">
|
---|
1009 | <h2>
|
---|
1010 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1011 | <xsl:call-template name="id.attribute"/>
|
---|
1012 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
1013 | </h2>
|
---|
1014 | </xsl:template>
|
---|
1015 |
|
---|
1016 | <xsl:template match="surname" mode="titlepage.mode">
|
---|
1017 | <span>
|
---|
1018 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1019 | <xsl:call-template name="id.attribute"/>
|
---|
1020 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
1021 | <br/>
|
---|
1022 | </span>
|
---|
1023 | </xsl:template>
|
---|
1024 |
|
---|
1025 | <xsl:template match="title" mode="titlepage.mode">
|
---|
1026 | <xsl:variable name="id">
|
---|
1027 | <xsl:choose>
|
---|
1028 | <!-- if title is in an *info wrapper, get the grandparent -->
|
---|
1029 | <xsl:when test="contains(local-name(..), 'info')">
|
---|
1030 | <xsl:call-template name="object.id">
|
---|
1031 | <xsl:with-param name="object" select="../.."/>
|
---|
1032 | </xsl:call-template>
|
---|
1033 | </xsl:when>
|
---|
1034 | <xsl:otherwise>
|
---|
1035 | <xsl:call-template name="object.id">
|
---|
1036 | <xsl:with-param name="object" select=".."/>
|
---|
1037 | </xsl:call-template>
|
---|
1038 | </xsl:otherwise>
|
---|
1039 | </xsl:choose>
|
---|
1040 | </xsl:variable>
|
---|
1041 |
|
---|
1042 | <h1>
|
---|
1043 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1044 | <xsl:choose>
|
---|
1045 | <xsl:when test="$generate.id.attributes = 0">
|
---|
1046 | <a name="{$id}"/>
|
---|
1047 | </xsl:when>
|
---|
1048 | <xsl:otherwise>
|
---|
1049 | </xsl:otherwise>
|
---|
1050 | </xsl:choose>
|
---|
1051 | <xsl:choose>
|
---|
1052 | <xsl:when test="$show.revisionflag != 0 and @revisionflag">
|
---|
1053 | <span class="{@revisionflag}">
|
---|
1054 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
1055 | </span>
|
---|
1056 | </xsl:when>
|
---|
1057 | <xsl:otherwise>
|
---|
1058 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
1059 | </xsl:otherwise>
|
---|
1060 | </xsl:choose>
|
---|
1061 | </h1>
|
---|
1062 | </xsl:template>
|
---|
1063 |
|
---|
1064 | <xsl:template match="titleabbrev" mode="titlepage.mode">
|
---|
1065 | <!-- nop; title abbreviations don't belong on the title page! -->
|
---|
1066 | </xsl:template>
|
---|
1067 |
|
---|
1068 | <xsl:template match="volumenum" mode="titlepage.mode">
|
---|
1069 | <span>
|
---|
1070 | <xsl:apply-templates select="." mode="common.html.attributes"/>
|
---|
1071 | <xsl:call-template name="id.attribute"/>
|
---|
1072 | <xsl:apply-templates mode="titlepage.mode"/>
|
---|
1073 | <br/>
|
---|
1074 | </span>
|
---|
1075 | </xsl:template>
|
---|
1076 |
|
---|
1077 | <!-- This template computes the filename for legalnotice and revhistory chunks -->
|
---|
1078 | <xsl:template name="ln.or.rh.filename">
|
---|
1079 | <xsl:param name="node" select="."/>
|
---|
1080 | <xsl:param name="is.ln" select="true()"/>
|
---|
1081 |
|
---|
1082 | <xsl:variable name="dbhtml-filename">
|
---|
1083 | <xsl:call-template name="pi.dbhtml_filename">
|
---|
1084 | <xsl:with-param name="node" select="$node"/>
|
---|
1085 | </xsl:call-template>
|
---|
1086 | </xsl:variable>
|
---|
1087 |
|
---|
1088 | <xsl:choose>
|
---|
1089 | <!-- 1. If there is a dbhtml_filename PI, use that -->
|
---|
1090 | <xsl:when test="$dbhtml-filename != ''">
|
---|
1091 | <xsl:value-of select="$dbhtml-filename"/>
|
---|
1092 | </xsl:when>
|
---|
1093 | <xsl:when test="($node/@id or $node/@xml:id) and not($use.id.as.filename = 0)">
|
---|
1094 | <!-- * 2. If this legalnotice/revhistory has an ID, then go ahead and use -->
|
---|
1095 | <!-- * just the value of that ID as the basename for the file -->
|
---|
1096 | <!-- * (that is, without prepending an "ln-" or "rh-" to it) -->
|
---|
1097 | <xsl:value-of select="($node/@id|$node/@xml:id)[1]"/>
|
---|
1098 | <xsl:value-of select="$html.ext"/>
|
---|
1099 | </xsl:when>
|
---|
1100 | <xsl:when test="not ($node/@id or $node/@xml:id) or $use.id.as.filename = 0">
|
---|
1101 | <!-- * 3. Otherwise, if this legalnotice/revhistory does not have an ID, or -->
|
---|
1102 | <!-- * if $use.id.as.filename = 0 -->
|
---|
1103 | <!-- * then we generate an ID... -->
|
---|
1104 | <xsl:variable name="id">
|
---|
1105 | <xsl:value-of select="generate-id($node)"/>
|
---|
1106 | </xsl:variable>
|
---|
1107 | <!-- * ...and then we take that generated ID, prepend a -->
|
---|
1108 | <!-- * prefix to it, and use that as the basename for the file -->
|
---|
1109 | <xsl:choose>
|
---|
1110 | <xsl:when test="$is.ln">
|
---|
1111 | <xsl:value-of select="concat('ln-',$id,$html.ext)"/>
|
---|
1112 | </xsl:when>
|
---|
1113 | <xsl:otherwise>
|
---|
1114 | <xsl:value-of select="concat('rh-',$id,$html.ext)"/>
|
---|
1115 | </xsl:otherwise>
|
---|
1116 | </xsl:choose>
|
---|
1117 | </xsl:when>
|
---|
1118 | </xsl:choose>
|
---|
1119 | </xsl:template>
|
---|
1120 |
|
---|
1121 | <!-- ==================================================================== -->
|
---|
1122 |
|
---|
1123 | </xsl:stylesheet>
|
---|