source: BOOK/stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/biblio.xsl@ bd27efe

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since bd27efe was f8c4e94, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Added LFS XSL Stylesheets.

  • Property mode set to 100644
File size: 38.2 KB
Line 
1<?xml version="1.0" encoding="ASCII"?>
2<!--This file was created automatically by html2xhtml-->
3<!--from the HTML stylesheets.-->
4<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
5
6<!-- ********************************************************************
7 $Id$
8 ********************************************************************
9
10 This file is part of the XSL DocBook Stylesheet distribution.
11 See ../README or http://docbook.sf.net/release/xsl/current/ for
12 copyright and other information.
13
14 ******************************************************************** -->
15
16<!-- ==================================================================== -->
17
18<xsl:template match="bibliography">
19 <xsl:call-template name="id.warning"/>
20
21 <div>
22 <xsl:apply-templates select="." mode="class.attribute"/>
23 <xsl:if test="$generate.id.attributes != 0">
24 <xsl:attribute name="id">
25 <xsl:call-template name="object.id"/>
26 </xsl:attribute>
27 </xsl:if>
28
29 <xsl:call-template name="bibliography.titlepage"/>
30
31 <xsl:apply-templates/>
32
33 <xsl:if test="not(parent::article)">
34 <xsl:call-template name="process.footnotes"/>
35 </xsl:if>
36 </div>
37</xsl:template>
38
39<xsl:template match="bibliography/bibliographyinfo"/>
40<xsl:template match="bibliography/info"/>
41<xsl:template match="bibliography/title"/>
42<xsl:template match="bibliography/subtitle"/>
43<xsl:template match="bibliography/titleabbrev"/>
44
45<!-- ==================================================================== -->
46
47<xsl:template match="bibliodiv">
48 <xsl:call-template name="id.warning"/>
49
50 <div>
51 <xsl:apply-templates select="." mode="class.attribute"/>
52 <xsl:apply-templates/>
53 </div>
54</xsl:template>
55
56<xsl:template match="bibliodiv/title">
57 <h3>
58 <xsl:apply-templates select="." mode="class.attribute"/>
59 <xsl:call-template name="anchor">
60 <xsl:with-param name="node" select=".."/>
61 </xsl:call-template>
62 <xsl:apply-templates/>
63 </h3>
64</xsl:template>
65
66<!-- ==================================================================== -->
67
68<xsl:template match="bibliolist">
69 <div>
70 <xsl:apply-templates select="." mode="class.attribute"/>
71 <xsl:call-template name="anchor"/>
72 <xsl:if test="blockinfo/title|info/title|title">
73 <xsl:call-template name="formal.object.heading"/>
74 </xsl:if>
75 <xsl:apply-templates select="*[not(self::blockinfo) and not(self::info) and not(self::title) and not(self::titleabbrev) and not(self::biblioentry) and not(self::bibliomixed)]"/>
76 <xsl:apply-templates select="biblioentry|bibliomixed"/>
77 </div>
78</xsl:template>
79
80<!-- ==================================================================== -->
81
82<xsl:template match="biblioentry">
83 <xsl:param name="label">
84 <xsl:call-template name="biblioentry.label"/>
85 </xsl:param>
86
87 <xsl:variable name="id">
88 <xsl:call-template name="object.id"/>
89 </xsl:variable>
90
91 <xsl:choose>
92 <xsl:when test="string(.) = ''">
93 <xsl:variable name="bib" select="document($bibliography.collection,.)"/>
94 <xsl:variable name="entry" select="$bib/bibliography/ *[@id=$id or @xml:id=$id][1]"/>
95 <xsl:choose>
96 <xsl:when test="$entry">
97 <xsl:choose>
98 <xsl:when test="$bibliography.numbered != 0">
99 <xsl:apply-templates select="$entry">
100 <xsl:with-param name="label" select="$label"/>
101 </xsl:apply-templates>
102 </xsl:when>
103 <xsl:otherwise>
104 <xsl:apply-templates select="$entry"/>
105 </xsl:otherwise>
106 </xsl:choose>
107 </xsl:when>
108 <xsl:otherwise>
109 <xsl:message>
110 <xsl:text>No bibliography entry: </xsl:text>
111 <xsl:value-of select="$id"/>
112 <xsl:text> found in </xsl:text>
113 <xsl:value-of select="$bibliography.collection"/>
114 </xsl:message>
115 <div>
116 <xsl:apply-templates select="." mode="class.attribute"/>
117 <xsl:call-template name="anchor"/>
118 <p>
119 <xsl:copy-of select="$label"/>
120 <xsl:text>Error: no bibliography entry: </xsl:text>
121 <xsl:value-of select="$id"/>
122 <xsl:text> found in </xsl:text>
123 <xsl:value-of select="$bibliography.collection"/>
124 </p>
125 </div>
126 </xsl:otherwise>
127 </xsl:choose>
128 </xsl:when>
129 <xsl:otherwise>
130 <div>
131 <xsl:apply-templates select="." mode="class.attribute"/>
132 <xsl:call-template name="anchor">
133 <xsl:with-param name="conditional" select="0"/>
134 </xsl:call-template>
135 <p>
136 <xsl:copy-of select="$label"/>
137 <xsl:choose>
138 <xsl:when test="$bibliography.style = 'iso690'">
139 <xsl:call-template name="iso690.makecitation"/>
140 </xsl:when>
141 <xsl:otherwise>
142 <xsl:apply-templates mode="bibliography.mode"/>
143 </xsl:otherwise>
144 </xsl:choose>
145 </p>
146 </div>
147 </xsl:otherwise>
148 </xsl:choose>
149</xsl:template>
150
151<xsl:template match="bibliomixed">
152 <xsl:param name="label">
153 <xsl:call-template name="biblioentry.label"/>
154 </xsl:param>
155
156 <xsl:variable name="id">
157 <xsl:call-template name="object.id"/>
158 </xsl:variable>
159
160 <xsl:choose>
161 <xsl:when test="string(.) = ''">
162 <xsl:variable name="bib" select="document($bibliography.collection,.)"/>
163 <xsl:variable name="entry" select="$bib/bibliography/ *[@id=$id or @xml:id=$id][1]"/>
164 <xsl:choose>
165 <xsl:when test="$entry">
166 <xsl:choose>
167 <xsl:when test="$bibliography.numbered != 0">
168 <xsl:apply-templates select="$entry">
169 <xsl:with-param name="label" select="$label"/>
170 </xsl:apply-templates>
171 </xsl:when>
172 <xsl:otherwise>
173 <xsl:apply-templates select="$entry"/>
174 </xsl:otherwise>
175 </xsl:choose>
176 </xsl:when>
177 <xsl:otherwise>
178 <xsl:message>
179 <xsl:text>No bibliography entry: </xsl:text>
180 <xsl:value-of select="$id"/>
181 <xsl:text> found in </xsl:text>
182 <xsl:value-of select="$bibliography.collection"/>
183 </xsl:message>
184 <div>
185 <xsl:apply-templates select="." mode="class.attribute"/>
186 <xsl:call-template name="anchor"/>
187 <p>
188 <xsl:copy-of select="$label"/>
189 <xsl:text>Error: no bibliography entry: </xsl:text>
190 <xsl:value-of select="$id"/>
191 <xsl:text> found in </xsl:text>
192 <xsl:value-of select="$bibliography.collection"/>
193 </p>
194 </div>
195 </xsl:otherwise>
196 </xsl:choose>
197 </xsl:when>
198 <xsl:otherwise>
199 <div>
200 <xsl:apply-templates select="." mode="class.attribute"/>
201 <xsl:call-template name="anchor">
202 <xsl:with-param name="conditional" select="0"/>
203 </xsl:call-template>
204 <p>
205 <xsl:apply-templates select="." mode="class.attribute"/>
206 <xsl:copy-of select="$label"/>
207 <xsl:apply-templates mode="bibliomixed.mode"/>
208 </p>
209 </div>
210 </xsl:otherwise>
211 </xsl:choose>
212</xsl:template>
213
214<xsl:template name="biblioentry.label">
215 <xsl:param name="node" select="."/>
216
217 <xsl:choose>
218 <xsl:when test="$bibliography.numbered != 0">
219 <xsl:text>[</xsl:text>
220 <xsl:number from="bibliography" count="biblioentry|bibliomixed" level="any" format="1"/>
221 <xsl:text>] </xsl:text>
222 </xsl:when>
223 <xsl:when test="local-name($node/child::*[1]) = 'abbrev'">
224 <xsl:text>[</xsl:text>
225 <xsl:apply-templates select="$node/abbrev[1]"/>
226 <xsl:text>] </xsl:text>
227 </xsl:when>
228 <xsl:when test="$node/@xreflabel">
229 <xsl:text>[</xsl:text>
230 <xsl:value-of select="$node/@xreflabel"/>
231 <xsl:text>] </xsl:text>
232 </xsl:when>
233 <xsl:when test="$node/@id">
234 <xsl:text>[</xsl:text>
235 <xsl:value-of select="$node/@id"/>
236 <xsl:text>] </xsl:text>
237 </xsl:when>
238 <xsl:when test="$node/@xml:id">
239 <xsl:text>[</xsl:text>
240 <xsl:value-of select="$node/@xml:id"/>
241 <xsl:text>] </xsl:text>
242 </xsl:when>
243 <xsl:otherwise><!-- nop --></xsl:otherwise>
244 </xsl:choose>
245</xsl:template>
246
247<!-- ==================================================================== -->
248
249<xsl:template match="*" mode="bibliography.mode">
250 <xsl:apply-templates select="."/><!-- try the default mode -->
251</xsl:template>
252
253<xsl:template match="abbrev" mode="bibliography.mode">
254 <xsl:if test="preceding-sibling::*">
255 <xsl:apply-templates mode="bibliography.mode"/>
256 </xsl:if>
257</xsl:template>
258
259<xsl:template match="abstract" mode="bibliography.mode">
260 <!-- suppressed -->
261</xsl:template>
262
263<xsl:template match="address" mode="bibliography.mode">
264 <span>
265 <xsl:apply-templates select="." mode="class.attribute"/>
266 <xsl:apply-templates mode="bibliography.mode"/>
267 <xsl:copy-of select="$biblioentry.item.separator"/>
268 </span>
269</xsl:template>
270
271<xsl:template match="affiliation" mode="bibliography.mode">
272 <span>
273 <xsl:apply-templates select="." mode="class.attribute"/>
274 <xsl:apply-templates mode="bibliography.mode"/>
275 <xsl:copy-of select="$biblioentry.item.separator"/>
276 </span>
277</xsl:template>
278
279<xsl:template match="shortaffil" mode="bibliography.mode">
280 <span>
281 <xsl:apply-templates select="." mode="class.attribute"/>
282 <xsl:apply-templates mode="bibliography.mode"/>
283 <xsl:copy-of select="$biblioentry.item.separator"/>
284 </span>
285</xsl:template>
286
287<xsl:template match="jobtitle" mode="bibliography.mode">
288 <span>
289 <xsl:apply-templates select="." mode="class.attribute"/>
290 <xsl:apply-templates mode="bibliography.mode"/>
291 <xsl:copy-of select="$biblioentry.item.separator"/>
292 </span>
293</xsl:template>
294
295<xsl:template match="artheader|articleinfo|info" mode="bibliography.mode">
296 <span>
297 <xsl:apply-templates select="." mode="class.attribute"/>
298 <xsl:apply-templates mode="bibliography.mode"/>
299 <xsl:copy-of select="$biblioentry.item.separator"/>
300 </span>
301</xsl:template>
302
303<xsl:template match="artpagenums" mode="bibliography.mode">
304 <span>
305 <xsl:apply-templates select="." mode="class.attribute"/>
306 <xsl:apply-templates mode="bibliography.mode"/>
307 <xsl:copy-of select="$biblioentry.item.separator"/>
308 </span>
309</xsl:template>
310
311<xsl:template match="author" mode="bibliography.mode">
312 <span>
313 <xsl:apply-templates select="." mode="class.attribute"/>
314 <xsl:call-template name="person.name"/>
315 <xsl:copy-of select="$biblioentry.item.separator"/>
316 </span>
317</xsl:template>
318
319<xsl:template match="authorblurb|personblurb" mode="bibliography.mode">
320 <!-- suppressed -->
321</xsl:template>
322
323<xsl:template match="authorgroup" mode="bibliography.mode">
324 <span>
325 <xsl:apply-templates select="." mode="class.attribute"/>
326 <xsl:call-template name="person.name.list"/>
327 <xsl:copy-of select="$biblioentry.item.separator"/>
328 </span>
329</xsl:template>
330
331<xsl:template match="authorinitials" mode="bibliography.mode">
332 <span>
333 <xsl:apply-templates select="." mode="class.attribute"/>
334 <xsl:apply-templates mode="bibliography.mode"/>
335 <xsl:copy-of select="$biblioentry.item.separator"/>
336 </span>
337</xsl:template>
338
339<xsl:template match="bibliomisc" mode="bibliography.mode">
340 <span>
341 <xsl:apply-templates select="." mode="class.attribute"/>
342 <xsl:apply-templates mode="bibliography.mode"/>
343 <xsl:copy-of select="$biblioentry.item.separator"/>
344 </span>
345</xsl:template>
346
347<xsl:template match="bibliomset" mode="bibliography.mode">
348 <span>
349 <xsl:apply-templates select="." mode="class.attribute"/>
350 <xsl:apply-templates mode="bibliography.mode"/>
351 <xsl:copy-of select="$biblioentry.item.separator"/>
352 </span>
353</xsl:template>
354
355<!-- ================================================== -->
356
357<xsl:template match="biblioset" mode="bibliography.mode">
358 <span>
359 <xsl:apply-templates select="." mode="class.attribute"/>
360 <xsl:apply-templates mode="bibliography.mode"/>
361 </span>
362</xsl:template>
363
364<xsl:template match="biblioset/title|biblioset/citetitle" mode="bibliography.mode">
365 <xsl:variable name="relation" select="../@relation"/>
366 <xsl:choose>
367 <xsl:when test="$relation='article' or @pubwork='article'">
368 <xsl:call-template name="gentext.startquote"/>
369 <xsl:apply-templates/>
370 <xsl:call-template name="gentext.endquote"/>
371 </xsl:when>
372 <xsl:otherwise>
373 <i><xsl:apply-templates/></i>
374 </xsl:otherwise>
375 </xsl:choose>
376 <xsl:copy-of select="$biblioentry.item.separator"/>
377</xsl:template>
378
379<!-- ================================================== -->
380
381<xsl:template match="bookbiblio" mode="bibliography.mode">
382 <span>
383 <xsl:apply-templates select="." mode="class.attribute"/>
384 <xsl:apply-templates mode="bibliography.mode"/>
385 <xsl:copy-of select="$biblioentry.item.separator"/>
386 </span>
387</xsl:template>
388
389<xsl:template match="citetitle" mode="bibliography.mode">
390 <span>
391 <xsl:apply-templates select="." mode="class.attribute"/>
392 <xsl:choose>
393 <xsl:when test="@pubwork = 'article'">
394 <xsl:call-template name="gentext.startquote"/>
395 <xsl:call-template name="inline.charseq"/>
396 <xsl:call-template name="gentext.endquote"/>
397 </xsl:when>
398 <xsl:otherwise>
399 <xsl:call-template name="inline.italicseq"/>
400 </xsl:otherwise>
401 </xsl:choose>
402 <xsl:copy-of select="$biblioentry.item.separator"/>
403 </span>
404</xsl:template>
405
406<xsl:template match="collab" mode="bibliography.mode">
407 <span>
408 <xsl:apply-templates select="." mode="class.attribute"/>
409 <xsl:apply-templates mode="bibliography.mode"/>
410 <xsl:copy-of select="$biblioentry.item.separator"/>
411 </span>
412</xsl:template>
413
414<xsl:template match="collabname" mode="bibliography.mode">
415 <span>
416 <xsl:apply-templates select="." mode="class.attribute"/>
417 <xsl:apply-templates mode="bibliography.mode"/>
418 <xsl:copy-of select="$biblioentry.item.separator"/>
419 </span>
420</xsl:template>
421
422<xsl:template match="confgroup" mode="bibliography.mode">
423 <span>
424 <xsl:apply-templates select="." mode="class.attribute"/>
425 <xsl:apply-templates mode="bibliography.mode"/>
426 <xsl:copy-of select="$biblioentry.item.separator"/>
427 </span>
428</xsl:template>
429
430<xsl:template match="confdates" mode="bibliography.mode">
431 <span>
432 <xsl:apply-templates select="." mode="class.attribute"/>
433 <xsl:apply-templates mode="bibliography.mode"/>
434 <xsl:copy-of select="$biblioentry.item.separator"/>
435 </span>
436</xsl:template>
437
438<xsl:template match="conftitle" mode="bibliography.mode">
439 <span>
440 <xsl:apply-templates select="." mode="class.attribute"/>
441 <xsl:apply-templates mode="bibliography.mode"/>
442 <xsl:copy-of select="$biblioentry.item.separator"/>
443 </span>
444</xsl:template>
445
446<xsl:template match="confnum" mode="bibliography.mode">
447 <span>
448 <xsl:apply-templates select="." mode="class.attribute"/>
449 <xsl:apply-templates mode="bibliography.mode"/>
450 <xsl:copy-of select="$biblioentry.item.separator"/>
451 </span>
452</xsl:template>
453
454<xsl:template match="confsponsor" mode="bibliography.mode">
455 <span>
456 <xsl:apply-templates select="." mode="class.attribute"/>
457 <xsl:apply-templates mode="bibliography.mode"/>
458 <xsl:copy-of select="$biblioentry.item.separator"/>
459 </span>
460</xsl:template>
461
462<xsl:template match="contractnum" mode="bibliography.mode">
463 <span>
464 <xsl:apply-templates select="." mode="class.attribute"/>
465 <xsl:apply-templates mode="bibliography.mode"/>
466 <xsl:copy-of select="$biblioentry.item.separator"/>
467 </span>
468</xsl:template>
469
470<xsl:template match="contractsponsor" mode="bibliography.mode">
471 <span>
472 <xsl:apply-templates select="." mode="class.attribute"/>
473 <xsl:apply-templates mode="bibliography.mode"/>
474 <xsl:copy-of select="$biblioentry.item.separator"/>
475 </span>
476</xsl:template>
477
478<xsl:template match="contrib" mode="bibliography.mode">
479 <span>
480 <xsl:apply-templates select="." mode="class.attribute"/>
481 <xsl:apply-templates mode="bibliography.mode"/>
482 <xsl:copy-of select="$biblioentry.item.separator"/>
483 </span>
484</xsl:template>
485
486<!-- ================================================== -->
487
488<xsl:template match="copyright" mode="bibliography.mode">
489 <span>
490 <xsl:apply-templates select="." mode="class.attribute"/>
491 <xsl:call-template name="gentext">
492 <xsl:with-param name="key" select="'Copyright'"/>
493 </xsl:call-template>
494 <xsl:call-template name="gentext.space"/>
495 <xsl:call-template name="dingbat">
496 <xsl:with-param name="dingbat">copyright</xsl:with-param>
497 </xsl:call-template>
498 <xsl:call-template name="gentext.space"/>
499 <xsl:apply-templates select="year" mode="bibliography.mode"/>
500 <xsl:if test="holder">
501 <xsl:call-template name="gentext.space"/>
502 <xsl:apply-templates select="holder" mode="bibliography.mode"/>
503 </xsl:if>
504 <xsl:copy-of select="$biblioentry.item.separator"/>
505 </span>
506</xsl:template>
507
508<xsl:template match="year" mode="bibliography.mode">
509 <xsl:apply-templates/><xsl:text>, </xsl:text>
510</xsl:template>
511
512<xsl:template match="year[position()=last()]" mode="bibliography.mode">
513 <xsl:apply-templates/>
514</xsl:template>
515
516<xsl:template match="holder" mode="bibliography.mode">
517 <xsl:apply-templates/>
518</xsl:template>
519
520<!-- ================================================== -->
521
522<xsl:template match="corpauthor" mode="bibliography.mode">
523 <span>
524 <xsl:apply-templates select="." mode="class.attribute"/>
525 <xsl:apply-templates mode="bibliography.mode"/>
526 <xsl:copy-of select="$biblioentry.item.separator"/>
527 </span>
528</xsl:template>
529
530<xsl:template match="corpcredit" mode="bibliography.mode">
531 <span>
532 <xsl:apply-templates select="." mode="class.attribute"/>
533 <xsl:apply-templates mode="bibliography.mode"/>
534 <xsl:copy-of select="$biblioentry.item.separator"/>
535 </span>
536</xsl:template>
537
538<xsl:template match="corpname" mode="bibliography.mode">
539 <span>
540 <xsl:apply-templates select="." mode="class.attribute"/>
541 <xsl:apply-templates mode="bibliography.mode"/>
542 <xsl:copy-of select="$biblioentry.item.separator"/>
543 </span>
544</xsl:template>
545
546<xsl:template match="date" mode="bibliography.mode">
547 <span>
548 <xsl:apply-templates select="." mode="class.attribute"/>
549 <xsl:apply-templates mode="bibliography.mode"/>
550 <xsl:copy-of select="$biblioentry.item.separator"/>
551 </span>
552</xsl:template>
553
554<xsl:template match="edition" mode="bibliography.mode">
555 <span>
556 <xsl:apply-templates select="." mode="class.attribute"/>
557 <xsl:apply-templates mode="bibliography.mode"/>
558 <xsl:copy-of select="$biblioentry.item.separator"/>
559 </span>
560</xsl:template>
561
562<xsl:template match="editor" mode="bibliography.mode">
563 <span>
564 <xsl:apply-templates select="." mode="class.attribute"/>
565 <xsl:call-template name="person.name"/>
566 <xsl:copy-of select="$biblioentry.item.separator"/>
567 </span>
568</xsl:template>
569
570<xsl:template match="firstname" mode="bibliography.mode">
571 <span>
572 <xsl:apply-templates select="." mode="class.attribute"/>
573 <xsl:apply-templates mode="bibliography.mode"/>
574 <xsl:copy-of select="$biblioentry.item.separator"/>
575 </span>
576</xsl:template>
577
578<xsl:template match="honorific" mode="bibliography.mode">
579 <span>
580 <xsl:apply-templates select="." mode="class.attribute"/>
581 <xsl:apply-templates mode="bibliography.mode"/>
582 <xsl:copy-of select="$biblioentry.item.separator"/>
583 </span>
584</xsl:template>
585
586<xsl:template match="indexterm" mode="bibliography.mode">
587 <span>
588 <xsl:apply-templates select="." mode="class.attribute"/>
589 <xsl:apply-templates mode="bibliography.mode"/>
590 <xsl:copy-of select="$biblioentry.item.separator"/>
591 </span>
592</xsl:template>
593
594<xsl:template match="invpartnumber" mode="bibliography.mode">
595 <span>
596 <xsl:apply-templates select="." mode="class.attribute"/>
597 <xsl:apply-templates mode="bibliography.mode"/>
598 <xsl:copy-of select="$biblioentry.item.separator"/>
599 </span>
600</xsl:template>
601
602<xsl:template match="isbn" mode="bibliography.mode">
603 <span>
604 <xsl:apply-templates select="." mode="class.attribute"/>
605 <xsl:apply-templates mode="bibliography.mode"/>
606 <xsl:copy-of select="$biblioentry.item.separator"/>
607 </span>
608</xsl:template>
609
610<xsl:template match="issn" mode="bibliography.mode">
611 <span>
612 <xsl:apply-templates select="." mode="class.attribute"/>
613 <xsl:apply-templates mode="bibliography.mode"/>
614 <xsl:copy-of select="$biblioentry.item.separator"/>
615 </span>
616</xsl:template>
617
618<xsl:template match="issuenum" mode="bibliography.mode">
619 <span>
620 <xsl:apply-templates select="." mode="class.attribute"/>
621 <xsl:apply-templates mode="bibliography.mode"/>
622 <xsl:copy-of select="$biblioentry.item.separator"/>
623 </span>
624</xsl:template>
625
626<xsl:template match="lineage" mode="bibliography.mode">
627 <span>
628 <xsl:apply-templates select="." mode="class.attribute"/>
629 <xsl:apply-templates mode="bibliography.mode"/>
630 <xsl:copy-of select="$biblioentry.item.separator"/>
631 </span>
632</xsl:template>
633
634<xsl:template match="orgname" mode="bibliography.mode">
635 <span>
636 <xsl:apply-templates select="." mode="class.attribute"/>
637 <xsl:apply-templates mode="bibliography.mode"/>
638 <xsl:copy-of select="$biblioentry.item.separator"/>
639 </span>
640</xsl:template>
641
642<xsl:template match="orgdiv" mode="bibliography.mode">
643 <span>
644 <xsl:apply-templates select="." mode="class.attribute"/>
645 <xsl:apply-templates mode="bibliography.mode"/>
646 <xsl:copy-of select="$biblioentry.item.separator"/>
647 </span>
648</xsl:template>
649
650<xsl:template match="othercredit" mode="bibliography.mode">
651 <span>
652 <xsl:apply-templates select="." mode="class.attribute"/>
653 <xsl:apply-templates mode="bibliography.mode"/>
654 <xsl:copy-of select="$biblioentry.item.separator"/>
655 </span>
656</xsl:template>
657
658<xsl:template match="othername" mode="bibliography.mode">
659 <span>
660 <xsl:apply-templates select="." mode="class.attribute"/>
661 <xsl:apply-templates mode="bibliography.mode"/>
662 <xsl:copy-of select="$biblioentry.item.separator"/>
663 </span>
664</xsl:template>
665
666<xsl:template match="pagenums" mode="bibliography.mode">
667 <span>
668 <xsl:apply-templates select="." mode="class.attribute"/>
669 <xsl:apply-templates mode="bibliography.mode"/>
670 <xsl:copy-of select="$biblioentry.item.separator"/>
671 </span>
672</xsl:template>
673
674<xsl:template match="printhistory" mode="bibliography.mode">
675 <!-- suppressed -->
676</xsl:template>
677
678<xsl:template match="productname" mode="bibliography.mode">
679 <span>
680 <xsl:apply-templates select="." mode="class.attribute"/>
681 <xsl:apply-templates mode="bibliography.mode"/>
682 <xsl:copy-of select="$biblioentry.item.separator"/>
683 </span>
684</xsl:template>
685
686<xsl:template match="productnumber" mode="bibliography.mode">
687 <span>
688 <xsl:apply-templates select="." mode="class.attribute"/>
689 <xsl:apply-templates mode="bibliography.mode"/>
690 <xsl:copy-of select="$biblioentry.item.separator"/>
691 </span>
692</xsl:template>
693
694<xsl:template match="pubdate" mode="bibliography.mode">
695 <span>
696 <xsl:apply-templates select="." mode="class.attribute"/>
697 <xsl:apply-templates mode="bibliography.mode"/>
698 <xsl:copy-of select="$biblioentry.item.separator"/>
699 </span>
700</xsl:template>
701
702<xsl:template match="publisher" mode="bibliography.mode">
703 <span>
704 <xsl:apply-templates select="." mode="class.attribute"/>
705 <xsl:apply-templates mode="bibliography.mode"/>
706 </span>
707</xsl:template>
708
709<xsl:template match="publishername" mode="bibliography.mode">
710 <span>
711 <xsl:apply-templates select="." mode="class.attribute"/>
712 <xsl:apply-templates mode="bibliography.mode"/>
713 <xsl:copy-of select="$biblioentry.item.separator"/>
714 </span>
715</xsl:template>
716
717<xsl:template match="pubsnumber" mode="bibliography.mode">
718 <span>
719 <xsl:apply-templates select="." mode="class.attribute"/>
720 <xsl:apply-templates mode="bibliography.mode"/>
721 <xsl:copy-of select="$biblioentry.item.separator"/>
722 </span>
723</xsl:template>
724
725<xsl:template match="releaseinfo" mode="bibliography.mode">
726 <span>
727 <xsl:apply-templates select="." mode="class.attribute"/>
728 <xsl:apply-templates mode="bibliography.mode"/>
729 <xsl:copy-of select="$biblioentry.item.separator"/>
730 </span>
731</xsl:template>
732
733<xsl:template match="revhistory" mode="bibliography.mode">
734 <!-- suppressed; how could this be represented? -->
735</xsl:template>
736
737<xsl:template match="seriesinfo" mode="bibliography.mode">
738 <span>
739 <xsl:apply-templates select="." mode="class.attribute"/>
740 <xsl:apply-templates mode="bibliography.mode"/>
741 </span>
742</xsl:template>
743
744<xsl:template match="seriesvolnums" mode="bibliography.mode">
745 <span>
746 <xsl:apply-templates select="." mode="class.attribute"/>
747 <xsl:apply-templates mode="bibliography.mode"/>
748 <xsl:copy-of select="$biblioentry.item.separator"/>
749 </span>
750</xsl:template>
751
752<xsl:template match="subtitle" mode="bibliography.mode">
753 <span>
754 <xsl:apply-templates select="." mode="class.attribute"/>
755 <xsl:apply-templates mode="bibliography.mode"/>
756 <xsl:copy-of select="$biblioentry.item.separator"/>
757 </span>
758</xsl:template>
759
760<xsl:template match="surname" mode="bibliography.mode">
761 <span>
762 <xsl:apply-templates select="." mode="class.attribute"/>
763 <xsl:apply-templates mode="bibliography.mode"/>
764 <xsl:copy-of select="$biblioentry.item.separator"/>
765 </span>
766</xsl:template>
767
768<xsl:template match="title" mode="bibliography.mode">
769 <span>
770 <xsl:apply-templates select="." mode="class.attribute"/>
771 <i><xsl:apply-templates mode="bibliography.mode"/></i>
772 <xsl:copy-of select="$biblioentry.item.separator"/>
773 </span>
774</xsl:template>
775
776<xsl:template match="titleabbrev" mode="bibliography.mode">
777 <span>
778 <xsl:apply-templates select="." mode="class.attribute"/>
779 <xsl:apply-templates mode="bibliography.mode"/>
780 <xsl:copy-of select="$biblioentry.item.separator"/>
781 </span>
782</xsl:template>
783
784<xsl:template match="volumenum" mode="bibliography.mode">
785 <span>
786 <xsl:apply-templates select="." mode="class.attribute"/>
787 <xsl:apply-templates mode="bibliography.mode"/>
788 <xsl:copy-of select="$biblioentry.item.separator"/>
789 </span>
790</xsl:template>
791
792<xsl:template match="bibliocoverage|biblioid|bibliorelation|bibliosource" mode="bibliography.mode">
793 <span>
794 <xsl:apply-templates select="." mode="class.attribute"/>
795 <xsl:apply-templates mode="bibliography.mode"/>
796 <xsl:copy-of select="$biblioentry.item.separator"/>
797 </span>
798</xsl:template>
799
800<!-- ==================================================================== -->
801
802<xsl:template match="*" mode="bibliomixed.mode">
803 <xsl:apply-templates select="."/><!-- try the default mode -->
804</xsl:template>
805
806<xsl:template match="abbrev" mode="bibliomixed.mode">
807 <xsl:if test="preceding-sibling::*">
808 <xsl:apply-templates mode="bibliomixed.mode"/>
809 </xsl:if>
810</xsl:template>
811
812<xsl:template match="abstract" mode="bibliomixed.mode">
813 <span>
814 <xsl:apply-templates select="." mode="class.attribute"/>
815 <xsl:apply-templates mode="bibliomixed.mode"/>
816 </span>
817</xsl:template>
818
819<xsl:template match="address" mode="bibliomixed.mode">
820 <span>
821 <xsl:apply-templates select="." mode="class.attribute"/>
822 <xsl:apply-templates mode="bibliomixed.mode"/>
823 </span>
824</xsl:template>
825
826<xsl:template match="affiliation" mode="bibliomixed.mode">
827 <span>
828 <xsl:apply-templates select="." mode="class.attribute"/>
829 <xsl:apply-templates mode="bibliomixed.mode"/>
830 </span>
831</xsl:template>
832
833<xsl:template match="shortaffil" mode="bibliomixed.mode">
834 <span>
835 <xsl:apply-templates select="." mode="class.attribute"/>
836 <xsl:apply-templates mode="bibliomixed.mode"/>
837 </span>
838</xsl:template>
839
840<xsl:template match="jobtitle" mode="bibliomixed.mode">
841 <span>
842 <xsl:apply-templates select="." mode="class.attribute"/>
843 <xsl:apply-templates mode="bibliomixed.mode"/>
844 </span>
845</xsl:template>
846
847<xsl:template match="artpagenums" mode="bibliomixed.mode">
848 <span>
849 <xsl:apply-templates select="." mode="class.attribute"/>
850 <xsl:apply-templates mode="bibliomixed.mode"/>
851 </span>
852</xsl:template>
853
854<xsl:template match="author" mode="bibliomixed.mode">
855 <span>
856 <xsl:apply-templates select="." mode="class.attribute"/>
857 <xsl:apply-templates mode="bibliomixed.mode"/>
858 </span>
859</xsl:template>
860
861<xsl:template match="authorblurb|personblurb" mode="bibliomixed.mode">
862 <span>
863 <xsl:apply-templates select="." mode="class.attribute"/>
864 <xsl:apply-templates mode="bibliomixed.mode"/>
865 </span>
866</xsl:template>
867
868<xsl:template match="authorgroup" mode="bibliomixed.mode">
869 <span>
870 <xsl:apply-templates select="." mode="class.attribute"/>
871 <xsl:apply-templates mode="bibliomixed.mode"/>
872 </span>
873</xsl:template>
874
875<xsl:template match="authorinitials" mode="bibliomixed.mode">
876 <span>
877 <xsl:apply-templates select="." mode="class.attribute"/>
878 <xsl:apply-templates mode="bibliomixed.mode"/>
879 </span>
880</xsl:template>
881
882<xsl:template match="bibliomisc" mode="bibliomixed.mode">
883 <span>
884 <xsl:apply-templates select="." mode="class.attribute"/>
885 <xsl:apply-templates mode="bibliomixed.mode"/>
886 </span>
887</xsl:template>
888
889<!-- ================================================== -->
890
891<xsl:template match="bibliomset" mode="bibliomixed.mode">
892 <span>
893 <xsl:apply-templates select="." mode="class.attribute"/>
894 <xsl:apply-templates mode="bibliomixed.mode"/>
895 </span>
896</xsl:template>
897
898<xsl:template match="bibliomset/title|bibliomset/citetitle" mode="bibliomixed.mode">
899 <xsl:variable name="relation" select="../@relation"/>
900 <xsl:choose>
901 <xsl:when test="$relation='article' or @pubwork='article'">
902 <xsl:call-template name="gentext.startquote"/>
903 <xsl:apply-templates/>
904 <xsl:call-template name="gentext.endquote"/>
905 </xsl:when>
906 <xsl:otherwise>
907 <i><xsl:apply-templates/></i>
908 </xsl:otherwise>
909 </xsl:choose>
910</xsl:template>
911
912<!-- ================================================== -->
913
914<xsl:template match="biblioset" mode="bibliomixed.mode">
915 <span>
916 <xsl:apply-templates select="." mode="class.attribute"/>
917 <xsl:apply-templates mode="bibliomixed.mode"/>
918 </span>
919</xsl:template>
920
921<xsl:template match="citetitle" mode="bibliomixed.mode">
922 <span>
923 <xsl:apply-templates select="." mode="class.attribute"/>
924 <xsl:choose>
925 <xsl:when test="@pubwork = 'article'">
926 <xsl:call-template name="gentext.startquote"/>
927 <xsl:call-template name="inline.charseq"/>
928 <xsl:call-template name="gentext.endquote"/>
929 </xsl:when>
930 <xsl:otherwise>
931 <xsl:call-template name="inline.italicseq"/>
932 </xsl:otherwise>
933 </xsl:choose>
934 </span>
935</xsl:template>
936
937
938<xsl:template match="collab" mode="bibliomixed.mode">
939 <span>
940 <xsl:apply-templates select="." mode="class.attribute"/>
941 <xsl:apply-templates mode="bibliomixed.mode"/>
942 </span>
943</xsl:template>
944
945<xsl:template match="confgroup" mode="bibliomixed.mode">
946 <span>
947 <xsl:apply-templates select="." mode="class.attribute"/>
948 <xsl:apply-templates mode="bibliomixed.mode"/>
949 </span>
950</xsl:template>
951
952<xsl:template match="contractnum" mode="bibliomixed.mode">
953 <span>
954 <xsl:apply-templates select="." mode="class.attribute"/>
955 <xsl:apply-templates mode="bibliomixed.mode"/>
956 </span>
957</xsl:template>
958
959<xsl:template match="contractsponsor" mode="bibliomixed.mode">
960 <span>
961 <xsl:apply-templates select="." mode="class.attribute"/>
962 <xsl:apply-templates mode="bibliomixed.mode"/>
963 </span>
964</xsl:template>
965
966<xsl:template match="contrib" mode="bibliomixed.mode">
967 <span>
968 <xsl:apply-templates select="." mode="class.attribute"/>
969 <xsl:apply-templates mode="bibliomixed.mode"/>
970 </span>
971</xsl:template>
972
973<xsl:template match="copyright" mode="bibliomixed.mode">
974 <span>
975 <xsl:apply-templates select="." mode="class.attribute"/>
976 <xsl:apply-templates mode="bibliomixed.mode"/>
977 </span>
978</xsl:template>
979
980<xsl:template match="corpauthor" mode="bibliomixed.mode">
981 <span>
982 <xsl:apply-templates select="." mode="class.attribute"/>
983 <xsl:apply-templates mode="bibliomixed.mode"/>
984 </span>
985</xsl:template>
986
987<xsl:template match="corpcredit" mode="bibliomixed.mode">
988 <span>
989 <xsl:apply-templates select="." mode="class.attribute"/>
990 <xsl:apply-templates mode="bibliomixed.mode"/>
991 </span>
992</xsl:template>
993
994<xsl:template match="corpname" mode="bibliomixed.mode">
995 <span>
996 <xsl:apply-templates select="." mode="class.attribute"/>
997 <xsl:apply-templates mode="bibliomixed.mode"/>
998 </span>
999</xsl:template>
1000
1001<xsl:template match="date" mode="bibliomixed.mode">
1002 <span>
1003 <xsl:apply-templates select="." mode="class.attribute"/>
1004 <xsl:apply-templates mode="bibliomixed.mode"/>
1005 </span>
1006</xsl:template>
1007
1008<xsl:template match="edition" mode="bibliomixed.mode">
1009 <span>
1010 <xsl:apply-templates select="." mode="class.attribute"/>
1011 <xsl:apply-templates mode="bibliomixed.mode"/>
1012 </span>
1013</xsl:template>
1014
1015<xsl:template match="editor" mode="bibliomixed.mode">
1016 <span>
1017 <xsl:apply-templates select="." mode="class.attribute"/>
1018 <xsl:apply-templates mode="bibliomixed.mode"/>
1019 </span>
1020</xsl:template>
1021
1022<xsl:template match="firstname" mode="bibliomixed.mode">
1023 <span>
1024 <xsl:apply-templates select="." mode="class.attribute"/>
1025 <xsl:apply-templates mode="bibliomixed.mode"/>
1026 </span>
1027</xsl:template>
1028
1029<xsl:template match="honorific" mode="bibliomixed.mode">
1030 <span>
1031 <xsl:apply-templates select="." mode="class.attribute"/>
1032 <xsl:apply-templates mode="bibliomixed.mode"/>
1033 </span>
1034</xsl:template>
1035
1036<xsl:template match="indexterm" mode="bibliomixed.mode">
1037 <span>
1038 <xsl:apply-templates select="." mode="class.attribute"/>
1039 <xsl:apply-templates mode="bibliomixed.mode"/>
1040 </span>
1041</xsl:template>
1042
1043<xsl:template match="invpartnumber" mode="bibliomixed.mode">
1044 <span>
1045 <xsl:apply-templates select="." mode="class.attribute"/>
1046 <xsl:apply-templates mode="bibliomixed.mode"/>
1047 </span>
1048</xsl:template>
1049
1050<xsl:template match="isbn" mode="bibliomixed.mode">
1051 <span>
1052 <xsl:apply-templates select="." mode="class.attribute"/>
1053 <xsl:apply-templates mode="bibliomixed.mode"/>
1054 </span>
1055</xsl:template>
1056
1057<xsl:template match="issn" mode="bibliomixed.mode">
1058 <span>
1059 <xsl:apply-templates select="." mode="class.attribute"/>
1060 <xsl:apply-templates mode="bibliomixed.mode"/>
1061 </span>
1062</xsl:template>
1063
1064<xsl:template match="issuenum" mode="bibliomixed.mode">
1065 <span>
1066 <xsl:apply-templates select="." mode="class.attribute"/>
1067 <xsl:apply-templates mode="bibliomixed.mode"/>
1068 </span>
1069</xsl:template>
1070
1071<xsl:template match="lineage" mode="bibliomixed.mode">
1072 <span>
1073 <xsl:apply-templates select="." mode="class.attribute"/>
1074 <xsl:apply-templates mode="bibliomixed.mode"/>
1075 </span>
1076</xsl:template>
1077
1078<xsl:template match="orgname" mode="bibliomixed.mode">
1079 <span>
1080 <xsl:apply-templates select="." mode="class.attribute"/>
1081 <xsl:apply-templates mode="bibliomixed.mode"/>
1082 </span>
1083</xsl:template>
1084
1085<xsl:template match="othercredit" mode="bibliomixed.mode">
1086 <span>
1087 <xsl:apply-templates select="." mode="class.attribute"/>
1088 <xsl:apply-templates mode="bibliomixed.mode"/>
1089 </span>
1090</xsl:template>
1091
1092<xsl:template match="othername" mode="bibliomixed.mode">
1093 <span>
1094 <xsl:apply-templates select="." mode="class.attribute"/>
1095 <xsl:apply-templates mode="bibliomixed.mode"/>
1096 </span>
1097</xsl:template>
1098
1099<xsl:template match="pagenums" mode="bibliomixed.mode">
1100 <span>
1101 <xsl:apply-templates select="." mode="class.attribute"/>
1102 <xsl:apply-templates mode="bibliomixed.mode"/>
1103 </span>
1104</xsl:template>
1105
1106<xsl:template match="printhistory" mode="bibliomixed.mode">
1107 <span>
1108 <xsl:apply-templates select="." mode="class.attribute"/>
1109 <xsl:apply-templates mode="bibliomixed.mode"/>
1110 </span>
1111</xsl:template>
1112
1113<xsl:template match="productname" mode="bibliomixed.mode">
1114 <span>
1115 <xsl:apply-templates select="." mode="class.attribute"/>
1116 <xsl:apply-templates mode="bibliomixed.mode"/>
1117 </span>
1118</xsl:template>
1119
1120<xsl:template match="productnumber" mode="bibliomixed.mode">
1121 <span>
1122 <xsl:apply-templates select="." mode="class.attribute"/>
1123 <xsl:apply-templates mode="bibliomixed.mode"/>
1124 </span>
1125</xsl:template>
1126
1127<xsl:template match="pubdate" mode="bibliomixed.mode">
1128 <span>
1129 <xsl:apply-templates select="." mode="class.attribute"/>
1130 <xsl:apply-templates mode="bibliomixed.mode"/>
1131 </span>
1132</xsl:template>
1133
1134<xsl:template match="publisher" mode="bibliomixed.mode">
1135 <span>
1136 <xsl:apply-templates select="." mode="class.attribute"/>
1137 <xsl:apply-templates mode="bibliomixed.mode"/>
1138 </span>
1139</xsl:template>
1140
1141<xsl:template match="publishername" mode="bibliomixed.mode">
1142 <span>
1143 <xsl:apply-templates select="." mode="class.attribute"/>
1144 <xsl:apply-templates mode="bibliomixed.mode"/>
1145 </span>
1146</xsl:template>
1147
1148<xsl:template match="pubsnumber" mode="bibliomixed.mode">
1149 <span>
1150 <xsl:apply-templates select="." mode="class.attribute"/>
1151 <xsl:apply-templates mode="bibliomixed.mode"/>
1152 </span>
1153</xsl:template>
1154
1155<xsl:template match="releaseinfo" mode="bibliomixed.mode">
1156 <span>
1157 <xsl:apply-templates select="." mode="class.attribute"/>
1158 <xsl:apply-templates mode="bibliomixed.mode"/>
1159 </span>
1160</xsl:template>
1161
1162<xsl:template match="revhistory" mode="bibliomixed.mode">
1163 <!-- suppressed; how could this be represented? -->
1164</xsl:template>
1165
1166<xsl:template match="seriesvolnums" mode="bibliomixed.mode">
1167 <span>
1168 <xsl:apply-templates select="." mode="class.attribute"/>
1169 <xsl:apply-templates mode="bibliomixed.mode"/>
1170 </span>
1171</xsl:template>
1172
1173<xsl:template match="subtitle" mode="bibliomixed.mode">
1174 <span>
1175 <xsl:apply-templates select="." mode="class.attribute"/>
1176 <xsl:apply-templates mode="bibliomixed.mode"/>
1177 </span>
1178</xsl:template>
1179
1180<xsl:template match="surname" mode="bibliomixed.mode">
1181 <span>
1182 <xsl:apply-templates select="." mode="class.attribute"/>
1183 <xsl:apply-templates mode="bibliomixed.mode"/>
1184 </span>
1185</xsl:template>
1186
1187<xsl:template match="title" mode="bibliomixed.mode">
1188 <span>
1189 <xsl:apply-templates select="." mode="class.attribute"/>
1190 <xsl:apply-templates mode="bibliomixed.mode"/>
1191 </span>
1192</xsl:template>
1193
1194<xsl:template match="titleabbrev" mode="bibliomixed.mode">
1195 <span>
1196 <xsl:apply-templates select="." mode="class.attribute"/>
1197 <xsl:apply-templates mode="bibliomixed.mode"/>
1198 </span>
1199</xsl:template>
1200
1201<xsl:template match="volumenum" mode="bibliomixed.mode">
1202 <span>
1203 <xsl:apply-templates select="." mode="class.attribute"/>
1204 <xsl:apply-templates mode="bibliomixed.mode"/>
1205 </span>
1206</xsl:template>
1207
1208<xsl:template match="bibliocoverage|biblioid|bibliorelation|bibliosource" mode="bibliomixed.mode">
1209 <span>
1210 <xsl:apply-templates select="." mode="class.attribute"/>
1211 <xsl:apply-templates mode="bibliomixed.mode"/>
1212 </span>
1213</xsl:template>
1214
1215<!-- ==================================================================== -->
1216
1217</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.