docbook_xsl_wrapper 0.1.2 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/CHANGELOG +41 -0
  4. data/README.md +9 -17
  5. data/bin/docbook_xsl_wrapper +9 -14
  6. data/docbook_xsl_wrapper.gemspec +8 -7
  7. data/lib/docbook_xsl_wrapper.rb +24 -1
  8. data/lib/docbook_xsl_wrapper/epub.rb +124 -122
  9. data/lib/docbook_xsl_wrapper/options.rb +1 -1
  10. data/lib/docbook_xsl_wrapper/validate.rb +22 -0
  11. data/lib/docbook_xsl_wrapper/version.rb +1 -1
  12. data/schema/docbookxi.rng +18654 -0
  13. data/spec/docbook_xsl_wrapper/validate_spec.rb +64 -0
  14. data/xsl/AUTHORS +4 -0
  15. data/xsl/COPYING +48 -0
  16. data/xsl/REVISION +1 -0
  17. data/xsl/VERSION.xsl +115 -0
  18. data/xsl/common/addns.xsl +124 -0
  19. data/xsl/common/af.xml +1272 -0
  20. data/xsl/common/am.xml +1272 -0
  21. data/xsl/common/ar.xml +1272 -0
  22. data/xsl/common/as.xml +703 -0
  23. data/xsl/common/ast.xml +703 -0
  24. data/xsl/common/autoidx-kimber.xsl +45 -0
  25. data/xsl/common/autoidx-kosek.xsl +155 -0
  26. data/xsl/common/az.xml +715 -0
  27. data/xsl/common/bg.xml +767 -0
  28. data/xsl/common/bn.xml +1272 -0
  29. data/xsl/common/bn_in.xml +703 -0
  30. data/xsl/common/bs.xml +705 -0
  31. data/xsl/common/ca.xml +703 -0
  32. data/xsl/common/charmap.xsl +222 -0
  33. data/xsl/common/common.xsl +2129 -0
  34. data/xsl/common/cs.xml +743 -0
  35. data/xsl/common/cy.xml +1288 -0
  36. data/xsl/common/da.xml +707 -0
  37. data/xsl/common/de.xml +709 -0
  38. data/xsl/common/el.xml +772 -0
  39. data/xsl/common/en.xml +1272 -0
  40. data/xsl/common/entities.ent +67 -0
  41. data/xsl/common/eo.xml +1272 -0
  42. data/xsl/common/es.xml +719 -0
  43. data/xsl/common/et.xml +1272 -0
  44. data/xsl/common/eu.xml +1272 -0
  45. data/xsl/common/fa.xml +703 -0
  46. data/xsl/common/fi.xml +713 -0
  47. data/xsl/common/fr.xml +733 -0
  48. data/xsl/common/ga.xml +1272 -0
  49. data/xsl/common/gentext.xsl +855 -0
  50. data/xsl/common/gl.xml +1272 -0
  51. data/xsl/common/gu.xml +703 -0
  52. data/xsl/common/he.xml +1272 -0
  53. data/xsl/common/hi.xml +703 -0
  54. data/xsl/common/hr.xml +705 -0
  55. data/xsl/common/hu.xml +721 -0
  56. data/xsl/common/id.xml +1272 -0
  57. data/xsl/common/insertfile.xsl +113 -0
  58. data/xsl/common/is.xml +715 -0
  59. data/xsl/common/it.xml +1272 -0
  60. data/xsl/common/ja.xml +703 -0
  61. data/xsl/common/ka.xml +743 -0
  62. data/xsl/common/kn.xml +1272 -0
  63. data/xsl/common/ko.xml +1272 -0
  64. data/xsl/common/ky.xml +775 -0
  65. data/xsl/common/l10n.dtd +64 -0
  66. data/xsl/common/l10n.xml +78 -0
  67. data/xsl/common/l10n.xsl +598 -0
  68. data/xsl/common/la.xml +1272 -0
  69. data/xsl/common/labels.xsl +933 -0
  70. data/xsl/common/lt.xml +721 -0
  71. data/xsl/common/lv.xml +1272 -0
  72. data/xsl/common/ml.xml +703 -0
  73. data/xsl/common/mn.xml +773 -0
  74. data/xsl/common/mr.xml +703 -0
  75. data/xsl/common/nb.xml +1272 -0
  76. data/xsl/common/nds.xml +709 -0
  77. data/xsl/common/nl.xml +703 -0
  78. data/xsl/common/nn.xml +1272 -0
  79. data/xsl/common/olink.xsl +1284 -0
  80. data/xsl/common/or.xml +1272 -0
  81. data/xsl/common/pa.xml +703 -0
  82. data/xsl/common/pi.xml +168 -0
  83. data/xsl/common/pi.xsl +347 -0
  84. data/xsl/common/pl.xml +721 -0
  85. data/xsl/common/pt.xml +1272 -0
  86. data/xsl/common/pt_br.xml +1272 -0
  87. data/xsl/common/refentry.xsl +1353 -0
  88. data/xsl/common/ro.xml +1272 -0
  89. data/xsl/common/ru.xml +769 -0
  90. data/xsl/common/sk.xml +1272 -0
  91. data/xsl/common/sl.xml +1272 -0
  92. data/xsl/common/sq.xml +1272 -0
  93. data/xsl/common/sr.xml +763 -0
  94. data/xsl/common/sr_Latn.xml +722 -0
  95. data/xsl/common/subtitles.xsl +181 -0
  96. data/xsl/common/sv.xml +707 -0
  97. data/xsl/common/ta.xml +703 -0
  98. data/xsl/common/table.xsl +515 -0
  99. data/xsl/common/targetdatabase.dtd +49 -0
  100. data/xsl/common/targets.xsl +338 -0
  101. data/xsl/common/te.xml +703 -0
  102. data/xsl/common/th.xml +1272 -0
  103. data/xsl/common/titles.xsl +850 -0
  104. data/xsl/common/tl.xml +1272 -0
  105. data/xsl/common/tr.xml +709 -0
  106. data/xsl/common/uk.xml +769 -0
  107. data/xsl/common/ur.xml +705 -0
  108. data/xsl/common/utility.xsl +291 -0
  109. data/xsl/common/vi.xml +1272 -0
  110. data/xsl/common/xh.xml +1272 -0
  111. data/xsl/common/zh.xml +703 -0
  112. data/xsl/common/zh_cn.xml +703 -0
  113. data/xsl/common/zh_tw.xml +703 -0
  114. data/xsl/epub/docbook.xsl +1769 -0
  115. data/xsl/epub3/chunk.xsl +30 -0
  116. data/xsl/epub3/docbook-epub.css.xml +142 -0
  117. data/xsl/epub3/docbook.xsl +20 -0
  118. data/xsl/epub3/epub3-chunk-mods.xsl +52 -0
  119. data/xsl/epub3/epub3-element-mods.xsl +2533 -0
  120. data/xsl/epub3/titlepage.templates.xml +712 -0
  121. data/xsl/epub3/titlepage.templates.xsl +3842 -0
  122. data/xsl/lib/lib.xsl +533 -0
  123. data/xsl/xhtml/admon.xsl +142 -0
  124. data/xsl/xhtml/annotations.xsl +160 -0
  125. data/xsl/xhtml/autoidx.xsl +831 -0
  126. data/xsl/xhtml/autotoc.xsl +706 -0
  127. data/xsl/xhtml/biblio-iso690.xsl +1302 -0
  128. data/xsl/xhtml/biblio.xsl +1371 -0
  129. data/xsl/xhtml/block.xsl +584 -0
  130. data/xsl/xhtml/callout.xsl +210 -0
  131. data/xsl/xhtml/chunk-code.xsl +675 -0
  132. data/xsl/xhtml/chunk-common.xsl +1627 -0
  133. data/xsl/xhtml/chunker.xsl +317 -0
  134. data/xsl/xhtml/component.xsl +440 -0
  135. data/xsl/xhtml/division.xsl +214 -0
  136. data/xsl/xhtml/ebnf.xsl +331 -0
  137. data/xsl/xhtml/footnote.xsl +346 -0
  138. data/xsl/xhtml/formal.xsl +496 -0
  139. data/xsl/xhtml/glossary.xsl +602 -0
  140. data/xsl/xhtml/graphics.xsl +1537 -0
  141. data/xsl/xhtml/html-rtf.xsl +321 -0
  142. data/xsl/xhtml/html.xsl +690 -0
  143. data/xsl/xhtml/htmltbl.xsl +102 -0
  144. data/xsl/xhtml/index.xsl +264 -0
  145. data/xsl/xhtml/info.xsl +48 -0
  146. data/xsl/xhtml/inline.xsl +1508 -0
  147. data/xsl/xhtml/its.xsl +109 -0
  148. data/xsl/xhtml/keywords.xsl +38 -0
  149. data/xsl/xhtml/lists.xsl +1227 -0
  150. data/xsl/xhtml/math.xsl +286 -0
  151. data/xsl/xhtml/param.xsl +449 -0
  152. data/xsl/xhtml/pi.xsl +1237 -0
  153. data/xsl/xhtml/qandaset.xsl +440 -0
  154. data/xsl/xhtml/refentry.xsl +307 -0
  155. data/xsl/xhtml/sections.xsl +564 -0
  156. data/xsl/xhtml/synop.xsl +1623 -0
  157. data/xsl/xhtml/table.xsl +1179 -0
  158. data/xsl/xhtml/task.xsl +76 -0
  159. data/xsl/xhtml/titlepage.templates.xsl +4005 -0
  160. data/xsl/xhtml/titlepage.xsl +1108 -0
  161. data/xsl/xhtml/toc.xsl +334 -0
  162. data/xsl/xhtml/verbatim.xsl +389 -0
  163. data/xsl/xhtml/xref.xsl +1268 -0
  164. data/xsl/xhtml5/docbook.xsl +22 -0
  165. data/xsl/xhtml5/html5-chunk-mods.xsl +112 -0
  166. data/xsl/xhtml5/html5-element-mods.xsl +791 -0
  167. data/xsl/xhtml5/xhtml-docbook.xsl +531 -0
  168. metadata +207 -27
  169. data/.rvmrc +0 -48
  170. data/xslt/obfuscate.xsl +0 -12
@@ -0,0 +1,1371 @@
1
+ <?xml version="1.0" encoding="ASCII"?>
2
+ <!--This file was created automatically by html2xhtml-->
3
+ <!--from the HTML stylesheets.-->
4
+ <xsl:stylesheet exclude-result-prefixes="d"
5
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook"
6
+ xmlns="http://www.w3.org/1999/xhtml" version="1.0">
7
+
8
+ <!-- ********************************************************************
9
+ $Id: biblio.xsl 9297 2012-04-22 03:56:16Z bobstayton $
10
+ ********************************************************************
11
+
12
+ This file is part of the XSL DocBook Stylesheet distribution.
13
+ See ../README or http://docbook.sf.net/release/xsl/current/ for
14
+ copyright and other information.
15
+
16
+ ******************************************************************** -->
17
+
18
+ <!-- ==================================================================== -->
19
+
20
+ <xsl:template match="d:bibliography">
21
+ <xsl:call-template name="id.warning"/>
22
+
23
+ <div>
24
+ <xsl:call-template name="common.html.attributes">
25
+ <xsl:with-param name="inherit" select="1"/>
26
+ </xsl:call-template>
27
+ <xsl:call-template name="id.attribute">
28
+ <xsl:with-param name="conditional" select="0"/>
29
+ </xsl:call-template>
30
+
31
+ <xsl:call-template name="bibliography.titlepage"/>
32
+
33
+ <xsl:apply-templates/>
34
+
35
+ <xsl:if test="not(parent::d:article)">
36
+ <xsl:call-template name="process.footnotes"/>
37
+ </xsl:if>
38
+ </div>
39
+ </xsl:template>
40
+
41
+ <xsl:template match="d:bibliography/d:bibliographyinfo"/>
42
+ <xsl:template match="d:bibliography/d:info"/>
43
+ <xsl:template match="d:bibliography/d:title"/>
44
+ <xsl:template match="d:bibliography/d:subtitle"/>
45
+ <xsl:template match="d:bibliography/d:titleabbrev"/>
46
+
47
+ <!-- ==================================================================== -->
48
+
49
+ <xsl:template match="d:bibliodiv">
50
+ <xsl:call-template name="id.warning"/>
51
+
52
+ <div>
53
+ <xsl:call-template name="common.html.attributes">
54
+ <xsl:with-param name="inherit" select="0"/>
55
+ </xsl:call-template>
56
+ <xsl:call-template name="id.attribute">
57
+ <xsl:with-param name="conditional" select="0"/>
58
+ </xsl:call-template>
59
+ <xsl:apply-templates/>
60
+ </div>
61
+ </xsl:template>
62
+
63
+ <xsl:template match="d:bibliodiv/d:title">
64
+ <h3>
65
+ <xsl:call-template name="common.html.attributes"/>
66
+ <xsl:call-template name="anchor">
67
+ <xsl:with-param name="node" select=".."/>
68
+ <xsl:with-param name="conditional" select="0"/>
69
+ </xsl:call-template>
70
+ <xsl:apply-templates/>
71
+ </h3>
72
+ </xsl:template>
73
+
74
+ <!-- ==================================================================== -->
75
+
76
+ <xsl:template match="d:bibliolist">
77
+ <div>
78
+ <xsl:call-template name="common.html.attributes">
79
+ <xsl:with-param name="inherit" select="0"/>
80
+ </xsl:call-template>
81
+ <xsl:call-template name="id.attribute"/>
82
+ <xsl:call-template name="anchor"/>
83
+ <xsl:if test="d:blockinfo/d:title|d:info/d:title|d:title">
84
+ <xsl:call-template name="formal.object.heading"/>
85
+ </xsl:if>
86
+ <xsl:apply-templates select="*[not(self::d:blockinfo) and not(self::d:info) and not(self::d:title) and not(self::d:titleabbrev) and not(self::d:biblioentry) and not(self::d:bibliomixed)]"/>
87
+ <xsl:apply-templates select="d:biblioentry|d:bibliomixed"/>
88
+ </div>
89
+ </xsl:template>
90
+
91
+ <!-- ==================================================================== -->
92
+
93
+ <xsl:template match="d:biblioentry">
94
+ <xsl:param name="label">
95
+ <xsl:call-template name="biblioentry.label"/>
96
+ </xsl:param>
97
+
98
+ <xsl:variable name="id">
99
+ <xsl:call-template name="object.id"/>
100
+ </xsl:variable>
101
+
102
+ <xsl:choose>
103
+ <xsl:when test="string(.) = ''">
104
+ <xsl:variable name="bib" select="document($bibliography.collection,.)"/>
105
+ <xsl:variable name="entry" select="$bib/d:bibliography// *[@id=$id or @xml:id=$id][1]"/>
106
+ <xsl:choose>
107
+ <xsl:when test="$entry">
108
+ <xsl:choose>
109
+ <xsl:when test="$bibliography.numbered != 0">
110
+ <xsl:apply-templates select="$entry">
111
+ <xsl:with-param name="label" select="$label"/>
112
+ </xsl:apply-templates>
113
+ </xsl:when>
114
+ <xsl:otherwise>
115
+ <xsl:apply-templates select="$entry"/>
116
+ </xsl:otherwise>
117
+ </xsl:choose>
118
+ </xsl:when>
119
+ <xsl:otherwise>
120
+ <xsl:message>
121
+ <xsl:text>No bibliography entry: </xsl:text>
122
+ <xsl:value-of select="$id"/>
123
+ <xsl:text> found in </xsl:text>
124
+ <xsl:value-of select="$bibliography.collection"/>
125
+ </xsl:message>
126
+ <div>
127
+ <xsl:call-template name="common.html.attributes"/>
128
+ <xsl:call-template name="id.attribute"/>
129
+ <xsl:call-template name="anchor"/>
130
+ <p>
131
+ <xsl:copy-of select="$label"/>
132
+ <xsl:text>Error: no bibliography entry: </xsl:text>
133
+ <xsl:value-of select="$id"/>
134
+ <xsl:text> found in </xsl:text>
135
+ <xsl:value-of select="$bibliography.collection"/>
136
+ </p>
137
+ </div>
138
+ </xsl:otherwise>
139
+ </xsl:choose>
140
+ </xsl:when>
141
+ <xsl:otherwise>
142
+ <div>
143
+ <xsl:call-template name="common.html.attributes"/>
144
+ <xsl:call-template name="id.attribute">
145
+ <xsl:with-param name="conditional" select="0"/>
146
+ </xsl:call-template>
147
+ <xsl:call-template name="anchor">
148
+ <xsl:with-param name="conditional" select="0"/>
149
+ </xsl:call-template>
150
+ <p>
151
+ <xsl:copy-of select="$label"/>
152
+ <xsl:choose>
153
+ <xsl:when test="$bibliography.style = 'iso690'">
154
+ <xsl:call-template name="iso690.makecitation"/>
155
+ </xsl:when>
156
+ <xsl:otherwise>
157
+ <xsl:apply-templates mode="bibliography.mode"/>
158
+ </xsl:otherwise>
159
+ </xsl:choose>
160
+ </p>
161
+ </div>
162
+ </xsl:otherwise>
163
+ </xsl:choose>
164
+ </xsl:template>
165
+
166
+ <xsl:template match="d:bibliomixed">
167
+ <xsl:param name="label">
168
+ <xsl:call-template name="biblioentry.label"/>
169
+ </xsl:param>
170
+
171
+ <xsl:variable name="id">
172
+ <xsl:call-template name="object.id"/>
173
+ </xsl:variable>
174
+
175
+ <xsl:choose>
176
+ <xsl:when test="string(.) = ''">
177
+ <xsl:variable name="bib" select="document($bibliography.collection,.)"/>
178
+ <xsl:variable name="entry" select="$bib/d:bibliography// *[@id=$id or @xml:id=$id][1]"/>
179
+ <xsl:choose>
180
+ <xsl:when test="$entry">
181
+ <xsl:choose>
182
+ <xsl:when test="$bibliography.numbered != 0">
183
+ <xsl:apply-templates select="$entry">
184
+ <xsl:with-param name="label" select="$label"/>
185
+ </xsl:apply-templates>
186
+ </xsl:when>
187
+ <xsl:otherwise>
188
+ <xsl:apply-templates select="$entry"/>
189
+ </xsl:otherwise>
190
+ </xsl:choose>
191
+ </xsl:when>
192
+ <xsl:otherwise>
193
+ <xsl:message>
194
+ <xsl:text>No bibliography entry: </xsl:text>
195
+ <xsl:value-of select="$id"/>
196
+ <xsl:text> found in </xsl:text>
197
+ <xsl:value-of select="$bibliography.collection"/>
198
+ </xsl:message>
199
+ <div>
200
+ <xsl:call-template name="common.html.attributes"/>
201
+ <xsl:call-template name="id.attribute"/>
202
+ <xsl:call-template name="anchor"/>
203
+ <p>
204
+ <xsl:copy-of select="$label"/>
205
+ <xsl:text>Error: no bibliography entry: </xsl:text>
206
+ <xsl:value-of select="$id"/>
207
+ <xsl:text> found in </xsl:text>
208
+ <xsl:value-of select="$bibliography.collection"/>
209
+ </p>
210
+ </div>
211
+ </xsl:otherwise>
212
+ </xsl:choose>
213
+ </xsl:when>
214
+ <xsl:otherwise>
215
+ <div>
216
+ <xsl:call-template name="common.html.attributes"/>
217
+ <xsl:call-template name="id.attribute">
218
+ <xsl:with-param name="conditional" select="0"/>
219
+ </xsl:call-template>
220
+ <xsl:call-template name="anchor">
221
+ <xsl:with-param name="conditional" select="0"/>
222
+ </xsl:call-template>
223
+ <p>
224
+ <xsl:call-template name="common.html.attributes"/>
225
+ <xsl:copy-of select="$label"/>
226
+ <xsl:apply-templates mode="bibliomixed.mode"/>
227
+ </p>
228
+ </div>
229
+ </xsl:otherwise>
230
+ </xsl:choose>
231
+ </xsl:template>
232
+
233
+ <xsl:template name="biblioentry.label">
234
+ <xsl:param name="node" select="."/>
235
+
236
+ <xsl:choose>
237
+ <xsl:when test="$bibliography.numbered != 0">
238
+ <xsl:text>[</xsl:text>
239
+ <xsl:number from="d:bibliography" count="d:biblioentry|d:bibliomixed" level="any" format="1"/>
240
+ <xsl:text>] </xsl:text>
241
+ </xsl:when>
242
+ <xsl:when test="local-name($node/child::*[1]) = 'abbrev'">
243
+ <xsl:text>[</xsl:text>
244
+ <xsl:apply-templates select="$node/d:abbrev[1]"/>
245
+ <xsl:text>] </xsl:text>
246
+ </xsl:when>
247
+ <xsl:when test="$node/@xreflabel">
248
+ <xsl:text>[</xsl:text>
249
+ <xsl:value-of select="$node/@xreflabel"/>
250
+ <xsl:text>] </xsl:text>
251
+ </xsl:when>
252
+ <xsl:when test="$node/@id">
253
+ <xsl:text>[</xsl:text>
254
+ <xsl:value-of select="$node/@id"/>
255
+ <xsl:text>] </xsl:text>
256
+ </xsl:when>
257
+ <xsl:when test="$node/@xml:id">
258
+ <xsl:text>[</xsl:text>
259
+ <xsl:value-of select="$node/@xml:id"/>
260
+ <xsl:text>] </xsl:text>
261
+ </xsl:when>
262
+ <xsl:otherwise><!-- nop --></xsl:otherwise>
263
+ </xsl:choose>
264
+ </xsl:template>
265
+
266
+ <!-- ==================================================================== -->
267
+
268
+ <xsl:template match="*" mode="bibliography.mode">
269
+ <xsl:apply-templates select="."/><!-- try the default mode -->
270
+ </xsl:template>
271
+
272
+ <xsl:template match="d:abbrev" mode="bibliography.mode">
273
+ <xsl:if test="preceding-sibling::*">
274
+ <xsl:apply-templates mode="bibliography.mode"/>
275
+ </xsl:if>
276
+ </xsl:template>
277
+
278
+ <xsl:template match="d:abstract" mode="bibliography.mode">
279
+ <!-- suppressed -->
280
+ </xsl:template>
281
+
282
+ <xsl:template match="d:address" mode="bibliography.mode">
283
+ <span>
284
+ <xsl:call-template name="common.html.attributes"/>
285
+ <xsl:call-template name="id.attribute"/>
286
+ <xsl:apply-templates mode="bibliography.mode"/>
287
+ <xsl:copy-of select="$biblioentry.item.separator"/>
288
+ </span>
289
+ </xsl:template>
290
+
291
+ <xsl:template match="d:affiliation" mode="bibliography.mode">
292
+ <span>
293
+ <xsl:call-template name="common.html.attributes"/>
294
+ <xsl:call-template name="id.attribute"/>
295
+ <xsl:apply-templates mode="bibliography.mode"/>
296
+ <xsl:copy-of select="$biblioentry.item.separator"/>
297
+ </span>
298
+ </xsl:template>
299
+
300
+ <xsl:template match="d:shortaffil" mode="bibliography.mode">
301
+ <span>
302
+ <xsl:call-template name="common.html.attributes"/>
303
+ <xsl:call-template name="id.attribute"/>
304
+ <xsl:apply-templates mode="bibliography.mode"/>
305
+ <xsl:copy-of select="$biblioentry.item.separator"/>
306
+ </span>
307
+ </xsl:template>
308
+
309
+ <xsl:template match="d:jobtitle" mode="bibliography.mode">
310
+ <span>
311
+ <xsl:call-template name="common.html.attributes"/>
312
+ <xsl:call-template name="id.attribute"/>
313
+ <xsl:apply-templates mode="bibliography.mode"/>
314
+ <xsl:copy-of select="$biblioentry.item.separator"/>
315
+ </span>
316
+ </xsl:template>
317
+
318
+ <xsl:template match="d:artheader|d:articleinfo|d:info" mode="bibliography.mode">
319
+ <span>
320
+ <xsl:call-template name="common.html.attributes"/>
321
+ <xsl:call-template name="id.attribute"/>
322
+ <xsl:apply-templates mode="bibliography.mode"/>
323
+ <xsl:copy-of select="$biblioentry.item.separator"/>
324
+ </span>
325
+ </xsl:template>
326
+
327
+ <xsl:template match="d:artpagenums" mode="bibliography.mode">
328
+ <span>
329
+ <xsl:call-template name="common.html.attributes"/>
330
+ <xsl:call-template name="id.attribute"/>
331
+ <xsl:apply-templates mode="bibliography.mode"/>
332
+ <xsl:copy-of select="$biblioentry.item.separator"/>
333
+ </span>
334
+ </xsl:template>
335
+
336
+ <xsl:template match="d:author" mode="bibliography.mode">
337
+ <span>
338
+ <xsl:call-template name="common.html.attributes"/>
339
+ <xsl:call-template name="id.attribute"/>
340
+ <xsl:choose>
341
+ <xsl:when test="d:orgname">
342
+ <xsl:apply-templates select="d:orgname" mode="bibliography.mode"/>
343
+ </xsl:when>
344
+ <xsl:otherwise>
345
+ <xsl:call-template name="person.name"/>
346
+ <xsl:copy-of select="$biblioentry.item.separator"/>
347
+ </xsl:otherwise>
348
+ </xsl:choose>
349
+ </span>
350
+ </xsl:template>
351
+
352
+ <xsl:template match="d:authorblurb|d:personblurb" mode="bibliography.mode">
353
+ <!-- suppressed -->
354
+ </xsl:template>
355
+
356
+ <xsl:template match="d:authorgroup" mode="bibliography.mode">
357
+ <span>
358
+ <xsl:call-template name="common.html.attributes"/>
359
+ <xsl:call-template name="id.attribute"/>
360
+ <xsl:call-template name="person.name.list"/>
361
+ <xsl:copy-of select="$biblioentry.item.separator"/>
362
+ </span>
363
+ </xsl:template>
364
+
365
+ <xsl:template match="d:authorinitials" mode="bibliography.mode">
366
+ <span>
367
+ <xsl:call-template name="common.html.attributes"/>
368
+ <xsl:call-template name="id.attribute"/>
369
+ <xsl:apply-templates mode="bibliography.mode"/>
370
+ <xsl:copy-of select="$biblioentry.item.separator"/>
371
+ </span>
372
+ </xsl:template>
373
+
374
+ <xsl:template match="d:bibliomisc" mode="bibliography.mode">
375
+ <span>
376
+ <xsl:call-template name="common.html.attributes"/>
377
+ <xsl:call-template name="id.attribute"/>
378
+ <xsl:apply-templates mode="bibliography.mode"/>
379
+ <xsl:copy-of select="$biblioentry.item.separator"/>
380
+ </span>
381
+ </xsl:template>
382
+
383
+ <xsl:template match="d:bibliomset" mode="bibliography.mode">
384
+ <span>
385
+ <xsl:call-template name="common.html.attributes"/>
386
+ <xsl:call-template name="id.attribute"/>
387
+ <xsl:apply-templates mode="bibliography.mode"/>
388
+ <xsl:copy-of select="$biblioentry.item.separator"/>
389
+ </span>
390
+ </xsl:template>
391
+
392
+ <!-- ================================================== -->
393
+
394
+ <xsl:template match="d:biblioset" mode="bibliography.mode">
395
+ <span>
396
+ <xsl:call-template name="common.html.attributes"/>
397
+ <xsl:call-template name="id.attribute"/>
398
+ <xsl:apply-templates mode="bibliography.mode"/>
399
+ </span>
400
+ </xsl:template>
401
+
402
+ <xsl:template match="d:biblioset/d:title|d:biblioset/d:citetitle" mode="bibliography.mode">
403
+ <xsl:variable name="relation" select="../@relation"/>
404
+ <xsl:choose>
405
+ <xsl:when test="$relation='article' or @pubwork='article'">
406
+ <xsl:call-template name="gentext.startquote"/>
407
+ <xsl:apply-templates/>
408
+ <xsl:call-template name="gentext.endquote"/>
409
+ </xsl:when>
410
+ <xsl:otherwise>
411
+ <em xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></em>
412
+ </xsl:otherwise>
413
+ </xsl:choose>
414
+ <xsl:copy-of select="$biblioentry.item.separator"/>
415
+ </xsl:template>
416
+
417
+ <!-- ================================================== -->
418
+
419
+ <xsl:template match="d:citetitle" mode="bibliography.mode">
420
+ <span>
421
+ <xsl:call-template name="common.html.attributes"/>
422
+ <xsl:call-template name="id.attribute"/>
423
+ <xsl:choose>
424
+ <xsl:when test="@pubwork = 'article'">
425
+ <xsl:call-template name="gentext.startquote"/>
426
+ <xsl:call-template name="inline.charseq"/>
427
+ <xsl:call-template name="gentext.endquote"/>
428
+ </xsl:when>
429
+ <xsl:otherwise>
430
+ <xsl:call-template name="inline.italicseq"/>
431
+ </xsl:otherwise>
432
+ </xsl:choose>
433
+ <xsl:copy-of select="$biblioentry.item.separator"/>
434
+ </span>
435
+ </xsl:template>
436
+
437
+ <xsl:template match="d:collab" mode="bibliography.mode">
438
+ <span>
439
+ <xsl:call-template name="common.html.attributes"/>
440
+ <xsl:call-template name="id.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="d:collabname" mode="bibliography.mode">
447
+ <span>
448
+ <xsl:call-template name="common.html.attributes"/>
449
+ <xsl:call-template name="id.attribute"/>
450
+ <xsl:apply-templates mode="bibliography.mode"/>
451
+ <xsl:copy-of select="$biblioentry.item.separator"/>
452
+ </span>
453
+ </xsl:template>
454
+
455
+ <xsl:template match="d:confgroup" mode="bibliography.mode">
456
+ <span>
457
+ <xsl:call-template name="common.html.attributes"/>
458
+ <xsl:call-template name="id.attribute"/>
459
+ <xsl:apply-templates mode="bibliography.mode"/>
460
+ <xsl:copy-of select="$biblioentry.item.separator"/>
461
+ </span>
462
+ </xsl:template>
463
+
464
+ <xsl:template match="d:confdates" mode="bibliography.mode">
465
+ <span>
466
+ <xsl:call-template name="common.html.attributes"/>
467
+ <xsl:call-template name="id.attribute"/>
468
+ <xsl:apply-templates mode="bibliography.mode"/>
469
+ <xsl:copy-of select="$biblioentry.item.separator"/>
470
+ </span>
471
+ </xsl:template>
472
+
473
+ <xsl:template match="d:conftitle" mode="bibliography.mode">
474
+ <span>
475
+ <xsl:call-template name="common.html.attributes"/>
476
+ <xsl:call-template name="id.attribute"/>
477
+ <xsl:apply-templates mode="bibliography.mode"/>
478
+ <xsl:copy-of select="$biblioentry.item.separator"/>
479
+ </span>
480
+ </xsl:template>
481
+
482
+ <xsl:template match="d:confnum" mode="bibliography.mode">
483
+ <span>
484
+ <xsl:call-template name="common.html.attributes"/>
485
+ <xsl:call-template name="id.attribute"/>
486
+ <xsl:apply-templates mode="bibliography.mode"/>
487
+ <xsl:copy-of select="$biblioentry.item.separator"/>
488
+ </span>
489
+ </xsl:template>
490
+
491
+ <xsl:template match="d:confsponsor" mode="bibliography.mode">
492
+ <span>
493
+ <xsl:call-template name="common.html.attributes"/>
494
+ <xsl:call-template name="id.attribute"/>
495
+ <xsl:apply-templates mode="bibliography.mode"/>
496
+ <xsl:copy-of select="$biblioentry.item.separator"/>
497
+ </span>
498
+ </xsl:template>
499
+
500
+ <xsl:template match="d:contractnum" mode="bibliography.mode">
501
+ <span>
502
+ <xsl:call-template name="common.html.attributes"/>
503
+ <xsl:call-template name="id.attribute"/>
504
+ <xsl:apply-templates mode="bibliography.mode"/>
505
+ <xsl:copy-of select="$biblioentry.item.separator"/>
506
+ </span>
507
+ </xsl:template>
508
+
509
+ <xsl:template match="d:contractsponsor" mode="bibliography.mode">
510
+ <span>
511
+ <xsl:call-template name="common.html.attributes"/>
512
+ <xsl:call-template name="id.attribute"/>
513
+ <xsl:apply-templates mode="bibliography.mode"/>
514
+ <xsl:copy-of select="$biblioentry.item.separator"/>
515
+ </span>
516
+ </xsl:template>
517
+
518
+ <xsl:template match="d:contrib" mode="bibliography.mode">
519
+ <span>
520
+ <xsl:call-template name="common.html.attributes"/>
521
+ <xsl:call-template name="id.attribute"/>
522
+ <xsl:apply-templates mode="bibliography.mode"/>
523
+ <xsl:copy-of select="$biblioentry.item.separator"/>
524
+ </span>
525
+ </xsl:template>
526
+
527
+ <!-- ================================================== -->
528
+
529
+ <xsl:template match="d:copyright" mode="bibliography.mode">
530
+ <span>
531
+ <xsl:call-template name="common.html.attributes"/>
532
+ <xsl:call-template name="id.attribute"/>
533
+ <xsl:call-template name="gentext">
534
+ <xsl:with-param name="key" select="'Copyright'"/>
535
+ </xsl:call-template>
536
+ <xsl:call-template name="gentext.space"/>
537
+ <xsl:call-template name="dingbat">
538
+ <xsl:with-param name="dingbat">copyright</xsl:with-param>
539
+ </xsl:call-template>
540
+ <xsl:call-template name="gentext.space"/>
541
+ <xsl:apply-templates select="d:year" mode="bibliography.mode"/>
542
+ <xsl:if test="d:holder">
543
+ <xsl:call-template name="gentext.space"/>
544
+ <xsl:apply-templates select="d:holder" mode="bibliography.mode"/>
545
+ </xsl:if>
546
+ <xsl:copy-of select="$biblioentry.item.separator"/>
547
+ </span>
548
+ </xsl:template>
549
+
550
+ <xsl:template match="d:year" mode="bibliography.mode">
551
+ <xsl:apply-templates/><xsl:text>, </xsl:text>
552
+ </xsl:template>
553
+
554
+ <xsl:template match="d:year[position()=last()]" mode="bibliography.mode">
555
+ <xsl:apply-templates/>
556
+ </xsl:template>
557
+
558
+ <xsl:template match="d:holder" mode="bibliography.mode">
559
+ <xsl:apply-templates/>
560
+ </xsl:template>
561
+
562
+ <!-- ================================================== -->
563
+
564
+ <xsl:template match="d:corpauthor" mode="bibliography.mode">
565
+ <span>
566
+ <xsl:call-template name="common.html.attributes"/>
567
+ <xsl:call-template name="id.attribute"/>
568
+ <xsl:apply-templates mode="bibliography.mode"/>
569
+ <xsl:copy-of select="$biblioentry.item.separator"/>
570
+ </span>
571
+ </xsl:template>
572
+
573
+ <xsl:template match="d:corpcredit" mode="bibliography.mode">
574
+ <span>
575
+ <xsl:call-template name="common.html.attributes"/>
576
+ <xsl:call-template name="id.attribute"/>
577
+ <xsl:apply-templates mode="bibliography.mode"/>
578
+ <xsl:copy-of select="$biblioentry.item.separator"/>
579
+ </span>
580
+ </xsl:template>
581
+
582
+ <xsl:template match="d:corpname" mode="bibliography.mode">
583
+ <span>
584
+ <xsl:call-template name="common.html.attributes"/>
585
+ <xsl:call-template name="id.attribute"/>
586
+ <xsl:apply-templates mode="bibliography.mode"/>
587
+ <xsl:copy-of select="$biblioentry.item.separator"/>
588
+ </span>
589
+ </xsl:template>
590
+
591
+ <xsl:template match="d:date" mode="bibliography.mode">
592
+ <span>
593
+ <xsl:call-template name="common.html.attributes"/>
594
+ <xsl:call-template name="id.attribute"/>
595
+ <xsl:apply-templates mode="bibliography.mode"/>
596
+ <xsl:copy-of select="$biblioentry.item.separator"/>
597
+ </span>
598
+ </xsl:template>
599
+
600
+ <xsl:template match="d:edition" mode="bibliography.mode">
601
+ <span>
602
+ <xsl:call-template name="common.html.attributes"/>
603
+ <xsl:call-template name="id.attribute"/>
604
+ <xsl:apply-templates mode="bibliography.mode"/>
605
+ <xsl:copy-of select="$biblioentry.item.separator"/>
606
+ </span>
607
+ </xsl:template>
608
+
609
+ <xsl:template match="d:editor" mode="bibliography.mode">
610
+ <span>
611
+ <xsl:call-template name="common.html.attributes"/>
612
+ <xsl:call-template name="id.attribute"/>
613
+ <xsl:call-template name="person.name"/>
614
+ <xsl:copy-of select="$biblioentry.item.separator"/>
615
+ </span>
616
+ </xsl:template>
617
+
618
+ <xsl:template match="d:firstname" mode="bibliography.mode">
619
+ <span>
620
+ <xsl:call-template name="common.html.attributes"/>
621
+ <xsl:call-template name="id.attribute"/>
622
+ <xsl:apply-templates mode="bibliography.mode"/>
623
+ <xsl:copy-of select="$biblioentry.item.separator"/>
624
+ </span>
625
+ </xsl:template>
626
+
627
+ <xsl:template match="d:honorific" mode="bibliography.mode">
628
+ <span>
629
+ <xsl:call-template name="common.html.attributes"/>
630
+ <xsl:call-template name="id.attribute"/>
631
+ <xsl:apply-templates mode="bibliography.mode"/>
632
+ <xsl:copy-of select="$biblioentry.item.separator"/>
633
+ </span>
634
+ </xsl:template>
635
+
636
+ <xsl:template match="d:indexterm" mode="bibliography.mode">
637
+ <span>
638
+ <xsl:call-template name="common.html.attributes"/>
639
+ <xsl:call-template name="id.attribute"/>
640
+ <xsl:apply-templates mode="bibliography.mode"/>
641
+ <xsl:copy-of select="$biblioentry.item.separator"/>
642
+ </span>
643
+ </xsl:template>
644
+
645
+ <xsl:template match="d:invpartnumber" mode="bibliography.mode">
646
+ <span>
647
+ <xsl:call-template name="common.html.attributes"/>
648
+ <xsl:call-template name="id.attribute"/>
649
+ <xsl:apply-templates mode="bibliography.mode"/>
650
+ <xsl:copy-of select="$biblioentry.item.separator"/>
651
+ </span>
652
+ </xsl:template>
653
+
654
+ <xsl:template match="d:isbn" mode="bibliography.mode">
655
+ <span>
656
+ <xsl:call-template name="common.html.attributes"/>
657
+ <xsl:call-template name="id.attribute"/>
658
+ <xsl:apply-templates mode="bibliography.mode"/>
659
+ <xsl:copy-of select="$biblioentry.item.separator"/>
660
+ </span>
661
+ </xsl:template>
662
+
663
+ <xsl:template match="d:issn" mode="bibliography.mode">
664
+ <span>
665
+ <xsl:call-template name="common.html.attributes"/>
666
+ <xsl:call-template name="id.attribute"/>
667
+ <xsl:apply-templates mode="bibliography.mode"/>
668
+ <xsl:copy-of select="$biblioentry.item.separator"/>
669
+ </span>
670
+ </xsl:template>
671
+
672
+ <xsl:template match="d:issuenum" mode="bibliography.mode">
673
+ <span>
674
+ <xsl:call-template name="common.html.attributes"/>
675
+ <xsl:call-template name="id.attribute"/>
676
+ <xsl:apply-templates mode="bibliography.mode"/>
677
+ <xsl:copy-of select="$biblioentry.item.separator"/>
678
+ </span>
679
+ </xsl:template>
680
+
681
+ <xsl:template match="d:lineage" mode="bibliography.mode">
682
+ <span>
683
+ <xsl:call-template name="common.html.attributes"/>
684
+ <xsl:call-template name="id.attribute"/>
685
+ <xsl:apply-templates mode="bibliography.mode"/>
686
+ <xsl:copy-of select="$biblioentry.item.separator"/>
687
+ </span>
688
+ </xsl:template>
689
+
690
+ <xsl:template match="d:orgname" mode="bibliography.mode">
691
+ <span>
692
+ <xsl:call-template name="common.html.attributes"/>
693
+ <xsl:call-template name="id.attribute"/>
694
+ <xsl:apply-templates mode="bibliography.mode"/>
695
+ <xsl:copy-of select="$biblioentry.item.separator"/>
696
+ </span>
697
+ </xsl:template>
698
+
699
+ <xsl:template match="d:orgdiv" mode="bibliography.mode">
700
+ <span>
701
+ <xsl:call-template name="common.html.attributes"/>
702
+ <xsl:call-template name="id.attribute"/>
703
+ <xsl:apply-templates mode="bibliography.mode"/>
704
+ <xsl:copy-of select="$biblioentry.item.separator"/>
705
+ </span>
706
+ </xsl:template>
707
+
708
+ <xsl:template match="d:othercredit" mode="bibliography.mode">
709
+ <span>
710
+ <xsl:call-template name="common.html.attributes"/>
711
+ <xsl:call-template name="id.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="d:othername" mode="bibliography.mode">
718
+ <span>
719
+ <xsl:call-template name="common.html.attributes"/>
720
+ <xsl:call-template name="id.attribute"/>
721
+ <xsl:apply-templates mode="bibliography.mode"/>
722
+ <xsl:copy-of select="$biblioentry.item.separator"/>
723
+ </span>
724
+ </xsl:template>
725
+
726
+ <xsl:template match="d:pagenums" mode="bibliography.mode">
727
+ <span>
728
+ <xsl:call-template name="common.html.attributes"/>
729
+ <xsl:call-template name="id.attribute"/>
730
+ <xsl:apply-templates mode="bibliography.mode"/>
731
+ <xsl:copy-of select="$biblioentry.item.separator"/>
732
+ </span>
733
+ </xsl:template>
734
+
735
+ <xsl:template match="d:printhistory" mode="bibliography.mode">
736
+ <!-- suppressed -->
737
+ </xsl:template>
738
+
739
+ <xsl:template match="d:productname" mode="bibliography.mode">
740
+ <span>
741
+ <xsl:call-template name="common.html.attributes"/>
742
+ <xsl:call-template name="id.attribute"/>
743
+ <xsl:apply-templates mode="bibliography.mode"/>
744
+ <xsl:copy-of select="$biblioentry.item.separator"/>
745
+ </span>
746
+ </xsl:template>
747
+
748
+ <xsl:template match="d:productnumber" mode="bibliography.mode">
749
+ <span>
750
+ <xsl:call-template name="common.html.attributes"/>
751
+ <xsl:call-template name="id.attribute"/>
752
+ <xsl:apply-templates mode="bibliography.mode"/>
753
+ <xsl:copy-of select="$biblioentry.item.separator"/>
754
+ </span>
755
+ </xsl:template>
756
+
757
+ <xsl:template match="d:pubdate" mode="bibliography.mode">
758
+ <span>
759
+ <xsl:call-template name="common.html.attributes"/>
760
+ <xsl:call-template name="id.attribute"/>
761
+ <xsl:apply-templates mode="bibliography.mode"/>
762
+ <xsl:copy-of select="$biblioentry.item.separator"/>
763
+ </span>
764
+ </xsl:template>
765
+
766
+ <xsl:template match="d:publisher" mode="bibliography.mode">
767
+ <span>
768
+ <xsl:call-template name="common.html.attributes"/>
769
+ <xsl:call-template name="id.attribute"/>
770
+ <xsl:apply-templates mode="bibliography.mode"/>
771
+ </span>
772
+ </xsl:template>
773
+
774
+ <xsl:template match="d:publishername" mode="bibliography.mode">
775
+ <span>
776
+ <xsl:call-template name="common.html.attributes"/>
777
+ <xsl:call-template name="id.attribute"/>
778
+ <xsl:apply-templates mode="bibliography.mode"/>
779
+ <xsl:copy-of select="$biblioentry.item.separator"/>
780
+ </span>
781
+ </xsl:template>
782
+
783
+ <xsl:template match="d:pubsnumber" mode="bibliography.mode">
784
+ <span>
785
+ <xsl:call-template name="common.html.attributes"/>
786
+ <xsl:call-template name="id.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="d:releaseinfo" mode="bibliography.mode">
793
+ <span>
794
+ <xsl:call-template name="common.html.attributes"/>
795
+ <xsl:call-template name="id.attribute"/>
796
+ <xsl:apply-templates mode="bibliography.mode"/>
797
+ <xsl:copy-of select="$biblioentry.item.separator"/>
798
+ </span>
799
+ </xsl:template>
800
+
801
+ <xsl:template match="d:revhistory" mode="bibliography.mode">
802
+ <!-- suppressed; how could this be represented? -->
803
+ </xsl:template>
804
+
805
+ <xsl:template match="d:seriesinfo" mode="bibliography.mode">
806
+ <span>
807
+ <xsl:call-template name="common.html.attributes"/>
808
+ <xsl:call-template name="id.attribute"/>
809
+ <xsl:apply-templates mode="bibliography.mode"/>
810
+ </span>
811
+ </xsl:template>
812
+
813
+ <xsl:template match="d:seriesvolnums" mode="bibliography.mode">
814
+ <span>
815
+ <xsl:call-template name="common.html.attributes"/>
816
+ <xsl:call-template name="id.attribute"/>
817
+ <xsl:apply-templates mode="bibliography.mode"/>
818
+ <xsl:copy-of select="$biblioentry.item.separator"/>
819
+ </span>
820
+ </xsl:template>
821
+
822
+ <xsl:template match="d:subtitle" mode="bibliography.mode">
823
+ <span>
824
+ <xsl:call-template name="common.html.attributes"/>
825
+ <xsl:call-template name="id.attribute"/>
826
+ <xsl:apply-templates mode="bibliography.mode"/>
827
+ <xsl:copy-of select="$biblioentry.item.separator"/>
828
+ </span>
829
+ </xsl:template>
830
+
831
+ <xsl:template match="d:surname" mode="bibliography.mode">
832
+ <span>
833
+ <xsl:call-template name="common.html.attributes"/>
834
+ <xsl:call-template name="id.attribute"/>
835
+ <xsl:apply-templates mode="bibliography.mode"/>
836
+ <xsl:copy-of select="$biblioentry.item.separator"/>
837
+ </span>
838
+ </xsl:template>
839
+
840
+ <xsl:template match="d:title" mode="bibliography.mode">
841
+ <span>
842
+ <xsl:call-template name="common.html.attributes"/>
843
+ <xsl:call-template name="id.attribute"/>
844
+ <em xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates mode="bibliography.mode"/></em>
845
+ <xsl:copy-of select="$biblioentry.item.separator"/>
846
+ </span>
847
+ </xsl:template>
848
+
849
+ <xsl:template match="d:titleabbrev" mode="bibliography.mode">
850
+ <span>
851
+ <xsl:call-template name="common.html.attributes"/>
852
+ <xsl:call-template name="id.attribute"/>
853
+ <xsl:apply-templates mode="bibliography.mode"/>
854
+ <xsl:copy-of select="$biblioentry.item.separator"/>
855
+ </span>
856
+ </xsl:template>
857
+
858
+ <xsl:template match="d:volumenum" mode="bibliography.mode">
859
+ <span>
860
+ <xsl:call-template name="common.html.attributes"/>
861
+ <xsl:call-template name="id.attribute"/>
862
+ <xsl:apply-templates mode="bibliography.mode"/>
863
+ <xsl:copy-of select="$biblioentry.item.separator"/>
864
+ </span>
865
+ </xsl:template>
866
+
867
+ <xsl:template match="d:bibliocoverage|d:biblioid|d:bibliorelation|d:bibliosource" mode="bibliography.mode">
868
+ <span>
869
+ <xsl:call-template name="common.html.attributes"/>
870
+ <xsl:call-template name="id.attribute"/>
871
+ <xsl:apply-templates mode="bibliography.mode"/>
872
+ <xsl:copy-of select="$biblioentry.item.separator"/>
873
+ </span>
874
+ </xsl:template>
875
+
876
+ <!-- See FR #1934434 and http://doi.org -->
877
+ <xsl:template match="d:biblioid[@class='doi']" mode="bibliography.mode">
878
+ <span>
879
+ <xsl:call-template name="common.html.attributes"/>
880
+ <xsl:call-template name="id.attribute"/>
881
+ <a href="{concat('http://dx.doi.org/', .)}">doi:<xsl:value-of select="."/></a>
882
+ </span>
883
+ </xsl:template>
884
+
885
+ <!-- ==================================================================== -->
886
+
887
+ <xsl:template match="*" mode="bibliomixed.mode">
888
+ <xsl:apply-templates select="."/><!-- try the default mode -->
889
+ </xsl:template>
890
+
891
+ <xsl:template match="d:abbrev" mode="bibliomixed.mode">
892
+ <xsl:if test="preceding-sibling::*">
893
+ <xsl:apply-templates mode="bibliomixed.mode"/>
894
+ </xsl:if>
895
+ </xsl:template>
896
+
897
+ <xsl:template match="d:abstract" mode="bibliomixed.mode">
898
+ <span>
899
+ <xsl:call-template name="common.html.attributes"/>
900
+ <xsl:call-template name="id.attribute"/>
901
+ <xsl:apply-templates mode="bibliomixed.mode"/>
902
+ </span>
903
+ </xsl:template>
904
+
905
+ <xsl:template match="d:address" mode="bibliomixed.mode">
906
+ <span>
907
+ <xsl:call-template name="common.html.attributes"/>
908
+ <xsl:call-template name="id.attribute"/>
909
+ <xsl:apply-templates mode="bibliomixed.mode"/>
910
+ </span>
911
+ </xsl:template>
912
+
913
+ <xsl:template match="d:affiliation" mode="bibliomixed.mode">
914
+ <span>
915
+ <xsl:call-template name="common.html.attributes"/>
916
+ <xsl:call-template name="id.attribute"/>
917
+ <xsl:apply-templates mode="bibliomixed.mode"/>
918
+ </span>
919
+ </xsl:template>
920
+
921
+ <xsl:template match="d:shortaffil" mode="bibliomixed.mode">
922
+ <span>
923
+ <xsl:call-template name="common.html.attributes"/>
924
+ <xsl:call-template name="id.attribute"/>
925
+ <xsl:apply-templates mode="bibliomixed.mode"/>
926
+ </span>
927
+ </xsl:template>
928
+
929
+ <xsl:template match="d:jobtitle" mode="bibliomixed.mode">
930
+ <span>
931
+ <xsl:call-template name="common.html.attributes"/>
932
+ <xsl:call-template name="id.attribute"/>
933
+ <xsl:apply-templates mode="bibliomixed.mode"/>
934
+ </span>
935
+ </xsl:template>
936
+
937
+ <xsl:template match="d:artpagenums" mode="bibliomixed.mode">
938
+ <span>
939
+ <xsl:call-template name="common.html.attributes"/>
940
+ <xsl:call-template name="id.attribute"/>
941
+ <xsl:apply-templates mode="bibliomixed.mode"/>
942
+ </span>
943
+ </xsl:template>
944
+
945
+ <xsl:template match="d:author" mode="bibliomixed.mode">
946
+ <span>
947
+ <xsl:call-template name="common.html.attributes"/>
948
+ <xsl:call-template name="id.attribute"/>
949
+ <xsl:choose>
950
+ <xsl:when test="d:orgname">
951
+ <xsl:apply-templates select="d:orgname" mode="bibliomixed.mode"/>
952
+ </xsl:when>
953
+ <xsl:otherwise>
954
+ <xsl:call-template name="person.name"/>
955
+ </xsl:otherwise>
956
+ </xsl:choose>
957
+ </span>
958
+ </xsl:template>
959
+
960
+ <xsl:template match="d:authorblurb|d:personblurb" mode="bibliomixed.mode">
961
+ <span>
962
+ <xsl:call-template name="common.html.attributes"/>
963
+ <xsl:call-template name="id.attribute"/>
964
+ <xsl:apply-templates mode="bibliomixed.mode"/>
965
+ </span>
966
+ </xsl:template>
967
+
968
+ <xsl:template match="d:authorgroup" mode="bibliomixed.mode">
969
+ <span>
970
+ <xsl:call-template name="common.html.attributes"/>
971
+ <xsl:call-template name="id.attribute"/>
972
+ <xsl:apply-templates mode="bibliomixed.mode"/>
973
+ </span>
974
+ </xsl:template>
975
+
976
+ <xsl:template match="d:authorinitials" mode="bibliomixed.mode">
977
+ <span>
978
+ <xsl:call-template name="common.html.attributes"/>
979
+ <xsl:call-template name="id.attribute"/>
980
+ <xsl:apply-templates mode="bibliomixed.mode"/>
981
+ </span>
982
+ </xsl:template>
983
+
984
+ <xsl:template match="d:bibliomisc" mode="bibliomixed.mode">
985
+ <span>
986
+ <xsl:call-template name="common.html.attributes"/>
987
+ <xsl:call-template name="id.attribute"/>
988
+ <xsl:apply-templates mode="bibliomixed.mode"/>
989
+ </span>
990
+ </xsl:template>
991
+
992
+ <!-- ================================================== -->
993
+
994
+ <xsl:template match="d:bibliomset" mode="bibliomixed.mode">
995
+ <span>
996
+ <xsl:call-template name="common.html.attributes"/>
997
+ <xsl:call-template name="id.attribute"/>
998
+ <xsl:apply-templates mode="bibliomixed.mode"/>
999
+ </span>
1000
+ </xsl:template>
1001
+
1002
+ <xsl:template match="d:bibliomset/d:title|d:bibliomset/d:citetitle" mode="bibliomixed.mode">
1003
+ <xsl:variable name="relation" select="../@relation"/>
1004
+ <xsl:choose>
1005
+ <xsl:when test="$relation='article' or @pubwork='article'">
1006
+ <xsl:call-template name="gentext.startquote"/>
1007
+ <xsl:apply-templates/>
1008
+ <xsl:call-template name="gentext.endquote"/>
1009
+ </xsl:when>
1010
+ <xsl:otherwise>
1011
+ <em xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></em>
1012
+ </xsl:otherwise>
1013
+ </xsl:choose>
1014
+ </xsl:template>
1015
+
1016
+ <!-- ================================================== -->
1017
+
1018
+ <xsl:template match="d:biblioset" mode="bibliomixed.mode">
1019
+ <span>
1020
+ <xsl:call-template name="common.html.attributes"/>
1021
+ <xsl:call-template name="id.attribute"/>
1022
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1023
+ </span>
1024
+ </xsl:template>
1025
+
1026
+ <xsl:template match="d:citetitle" mode="bibliomixed.mode">
1027
+ <span>
1028
+ <xsl:call-template name="common.html.attributes"/>
1029
+ <xsl:call-template name="id.attribute"/>
1030
+ <xsl:choose>
1031
+ <xsl:when test="@pubwork = 'article'">
1032
+ <xsl:call-template name="gentext.startquote"/>
1033
+ <xsl:call-template name="inline.charseq"/>
1034
+ <xsl:call-template name="gentext.endquote"/>
1035
+ </xsl:when>
1036
+ <xsl:otherwise>
1037
+ <xsl:call-template name="inline.italicseq"/>
1038
+ </xsl:otherwise>
1039
+ </xsl:choose>
1040
+ </span>
1041
+ </xsl:template>
1042
+
1043
+
1044
+ <xsl:template match="d:collab" mode="bibliomixed.mode">
1045
+ <span>
1046
+ <xsl:call-template name="common.html.attributes"/>
1047
+ <xsl:call-template name="id.attribute"/>
1048
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1049
+ </span>
1050
+ </xsl:template>
1051
+
1052
+ <xsl:template match="d:confgroup" mode="bibliomixed.mode">
1053
+ <span>
1054
+ <xsl:call-template name="common.html.attributes"/>
1055
+ <xsl:call-template name="id.attribute"/>
1056
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1057
+ </span>
1058
+ </xsl:template>
1059
+
1060
+ <xsl:template match="d:contractnum" mode="bibliomixed.mode">
1061
+ <span>
1062
+ <xsl:call-template name="common.html.attributes"/>
1063
+ <xsl:call-template name="id.attribute"/>
1064
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1065
+ </span>
1066
+ </xsl:template>
1067
+
1068
+ <xsl:template match="d:contractsponsor" mode="bibliomixed.mode">
1069
+ <span>
1070
+ <xsl:call-template name="common.html.attributes"/>
1071
+ <xsl:call-template name="id.attribute"/>
1072
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1073
+ </span>
1074
+ </xsl:template>
1075
+
1076
+ <xsl:template match="d:contrib" mode="bibliomixed.mode">
1077
+ <span>
1078
+ <xsl:call-template name="common.html.attributes"/>
1079
+ <xsl:call-template name="id.attribute"/>
1080
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1081
+ </span>
1082
+ </xsl:template>
1083
+
1084
+ <xsl:template match="d:copyright" mode="bibliomixed.mode">
1085
+ <span>
1086
+ <xsl:call-template name="common.html.attributes"/>
1087
+ <xsl:call-template name="id.attribute"/>
1088
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1089
+ </span>
1090
+ </xsl:template>
1091
+
1092
+ <xsl:template match="d:corpauthor" mode="bibliomixed.mode">
1093
+ <span>
1094
+ <xsl:call-template name="common.html.attributes"/>
1095
+ <xsl:call-template name="id.attribute"/>
1096
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1097
+ </span>
1098
+ </xsl:template>
1099
+
1100
+ <xsl:template match="d:corpcredit" mode="bibliomixed.mode">
1101
+ <span>
1102
+ <xsl:call-template name="common.html.attributes"/>
1103
+ <xsl:call-template name="id.attribute"/>
1104
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1105
+ </span>
1106
+ </xsl:template>
1107
+
1108
+ <xsl:template match="d:corpname" mode="bibliomixed.mode">
1109
+ <span>
1110
+ <xsl:call-template name="common.html.attributes"/>
1111
+ <xsl:call-template name="id.attribute"/>
1112
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1113
+ </span>
1114
+ </xsl:template>
1115
+
1116
+ <xsl:template match="d:date" mode="bibliomixed.mode">
1117
+ <span>
1118
+ <xsl:call-template name="common.html.attributes"/>
1119
+ <xsl:call-template name="id.attribute"/>
1120
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1121
+ </span>
1122
+ </xsl:template>
1123
+
1124
+ <xsl:template match="d:edition" mode="bibliomixed.mode">
1125
+ <span>
1126
+ <xsl:call-template name="common.html.attributes"/>
1127
+ <xsl:call-template name="id.attribute"/>
1128
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1129
+ </span>
1130
+ </xsl:template>
1131
+
1132
+ <xsl:template match="d:editor" mode="bibliomixed.mode">
1133
+ <span>
1134
+ <xsl:call-template name="common.html.attributes"/>
1135
+ <xsl:call-template name="id.attribute"/>
1136
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1137
+ </span>
1138
+ </xsl:template>
1139
+
1140
+ <xsl:template match="d:firstname" mode="bibliomixed.mode">
1141
+ <span>
1142
+ <xsl:call-template name="common.html.attributes"/>
1143
+ <xsl:call-template name="id.attribute"/>
1144
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1145
+ </span>
1146
+ </xsl:template>
1147
+
1148
+ <xsl:template match="d:honorific" mode="bibliomixed.mode">
1149
+ <span>
1150
+ <xsl:call-template name="common.html.attributes"/>
1151
+ <xsl:call-template name="id.attribute"/>
1152
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1153
+ </span>
1154
+ </xsl:template>
1155
+
1156
+ <xsl:template match="d:indexterm" mode="bibliomixed.mode">
1157
+ <span>
1158
+ <xsl:call-template name="common.html.attributes"/>
1159
+ <xsl:call-template name="id.attribute"/>
1160
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1161
+ </span>
1162
+ </xsl:template>
1163
+
1164
+ <xsl:template match="d:invpartnumber" mode="bibliomixed.mode">
1165
+ <span>
1166
+ <xsl:call-template name="common.html.attributes"/>
1167
+ <xsl:call-template name="id.attribute"/>
1168
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1169
+ </span>
1170
+ </xsl:template>
1171
+
1172
+ <xsl:template match="d:isbn" mode="bibliomixed.mode">
1173
+ <span>
1174
+ <xsl:call-template name="common.html.attributes"/>
1175
+ <xsl:call-template name="id.attribute"/>
1176
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1177
+ </span>
1178
+ </xsl:template>
1179
+
1180
+ <xsl:template match="d:issn" mode="bibliomixed.mode">
1181
+ <span>
1182
+ <xsl:call-template name="common.html.attributes"/>
1183
+ <xsl:call-template name="id.attribute"/>
1184
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1185
+ </span>
1186
+ </xsl:template>
1187
+
1188
+ <xsl:template match="d:issuenum" mode="bibliomixed.mode">
1189
+ <span>
1190
+ <xsl:call-template name="common.html.attributes"/>
1191
+ <xsl:call-template name="id.attribute"/>
1192
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1193
+ </span>
1194
+ </xsl:template>
1195
+
1196
+ <xsl:template match="d:lineage" mode="bibliomixed.mode">
1197
+ <span>
1198
+ <xsl:call-template name="common.html.attributes"/>
1199
+ <xsl:call-template name="id.attribute"/>
1200
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1201
+ </span>
1202
+ </xsl:template>
1203
+
1204
+ <xsl:template match="d:orgname" mode="bibliomixed.mode">
1205
+ <span>
1206
+ <xsl:call-template name="common.html.attributes"/>
1207
+ <xsl:call-template name="id.attribute"/>
1208
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1209
+ </span>
1210
+ </xsl:template>
1211
+
1212
+ <xsl:template match="d:othercredit" mode="bibliomixed.mode">
1213
+ <span>
1214
+ <xsl:call-template name="common.html.attributes"/>
1215
+ <xsl:call-template name="id.attribute"/>
1216
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1217
+ </span>
1218
+ </xsl:template>
1219
+
1220
+ <xsl:template match="d:othername" mode="bibliomixed.mode">
1221
+ <span>
1222
+ <xsl:call-template name="common.html.attributes"/>
1223
+ <xsl:call-template name="id.attribute"/>
1224
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1225
+ </span>
1226
+ </xsl:template>
1227
+
1228
+ <xsl:template match="d:pagenums" mode="bibliomixed.mode">
1229
+ <span>
1230
+ <xsl:call-template name="common.html.attributes"/>
1231
+ <xsl:call-template name="id.attribute"/>
1232
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1233
+ </span>
1234
+ </xsl:template>
1235
+
1236
+ <xsl:template match="d:printhistory" mode="bibliomixed.mode">
1237
+ <span>
1238
+ <xsl:call-template name="common.html.attributes"/>
1239
+ <xsl:call-template name="id.attribute"/>
1240
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1241
+ </span>
1242
+ </xsl:template>
1243
+
1244
+ <xsl:template match="d:productname" mode="bibliomixed.mode">
1245
+ <span>
1246
+ <xsl:call-template name="common.html.attributes"/>
1247
+ <xsl:call-template name="id.attribute"/>
1248
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1249
+ </span>
1250
+ </xsl:template>
1251
+
1252
+ <xsl:template match="d:productnumber" mode="bibliomixed.mode">
1253
+ <span>
1254
+ <xsl:call-template name="common.html.attributes"/>
1255
+ <xsl:call-template name="id.attribute"/>
1256
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1257
+ </span>
1258
+ </xsl:template>
1259
+
1260
+ <xsl:template match="d:pubdate" mode="bibliomixed.mode">
1261
+ <span>
1262
+ <xsl:call-template name="common.html.attributes"/>
1263
+ <xsl:call-template name="id.attribute"/>
1264
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1265
+ </span>
1266
+ </xsl:template>
1267
+
1268
+ <xsl:template match="d:publisher" mode="bibliomixed.mode">
1269
+ <span>
1270
+ <xsl:call-template name="common.html.attributes"/>
1271
+ <xsl:call-template name="id.attribute"/>
1272
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1273
+ </span>
1274
+ </xsl:template>
1275
+
1276
+ <xsl:template match="d:publishername" mode="bibliomixed.mode">
1277
+ <span>
1278
+ <xsl:call-template name="common.html.attributes"/>
1279
+ <xsl:call-template name="id.attribute"/>
1280
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1281
+ </span>
1282
+ </xsl:template>
1283
+
1284
+ <xsl:template match="d:pubsnumber" mode="bibliomixed.mode">
1285
+ <span>
1286
+ <xsl:call-template name="common.html.attributes"/>
1287
+ <xsl:call-template name="id.attribute"/>
1288
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1289
+ </span>
1290
+ </xsl:template>
1291
+
1292
+ <xsl:template match="d:releaseinfo" mode="bibliomixed.mode">
1293
+ <span>
1294
+ <xsl:call-template name="common.html.attributes"/>
1295
+ <xsl:call-template name="id.attribute"/>
1296
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1297
+ </span>
1298
+ </xsl:template>
1299
+
1300
+ <xsl:template match="d:revhistory" mode="bibliomixed.mode">
1301
+ <!-- suppressed; how could this be represented? -->
1302
+ </xsl:template>
1303
+
1304
+ <xsl:template match="d:seriesvolnums" mode="bibliomixed.mode">
1305
+ <span>
1306
+ <xsl:call-template name="common.html.attributes"/>
1307
+ <xsl:call-template name="id.attribute"/>
1308
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1309
+ </span>
1310
+ </xsl:template>
1311
+
1312
+ <xsl:template match="d:subtitle" mode="bibliomixed.mode">
1313
+ <span>
1314
+ <xsl:call-template name="common.html.attributes"/>
1315
+ <xsl:call-template name="id.attribute"/>
1316
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1317
+ </span>
1318
+ </xsl:template>
1319
+
1320
+ <xsl:template match="d:surname" mode="bibliomixed.mode">
1321
+ <span>
1322
+ <xsl:call-template name="common.html.attributes"/>
1323
+ <xsl:call-template name="id.attribute"/>
1324
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1325
+ </span>
1326
+ </xsl:template>
1327
+
1328
+ <xsl:template match="d:title" mode="bibliomixed.mode">
1329
+ <span>
1330
+ <xsl:call-template name="common.html.attributes"/>
1331
+ <xsl:call-template name="id.attribute"/>
1332
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1333
+ </span>
1334
+ </xsl:template>
1335
+
1336
+ <xsl:template match="d:titleabbrev" mode="bibliomixed.mode">
1337
+ <span>
1338
+ <xsl:call-template name="common.html.attributes"/>
1339
+ <xsl:call-template name="id.attribute"/>
1340
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1341
+ </span>
1342
+ </xsl:template>
1343
+
1344
+ <xsl:template match="d:volumenum" mode="bibliomixed.mode">
1345
+ <span>
1346
+ <xsl:call-template name="common.html.attributes"/>
1347
+ <xsl:call-template name="id.attribute"/>
1348
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1349
+ </span>
1350
+ </xsl:template>
1351
+
1352
+ <xsl:template match="d:bibliocoverage|d:biblioid|d:bibliorelation|d:bibliosource" mode="bibliomixed.mode">
1353
+ <span>
1354
+ <xsl:call-template name="common.html.attributes"/>
1355
+ <xsl:call-template name="id.attribute"/>
1356
+ <xsl:apply-templates mode="bibliomixed.mode"/>
1357
+ </span>
1358
+ </xsl:template>
1359
+
1360
+ <!-- See FR #1934434 and http://doi.org -->
1361
+ <xsl:template match="d:biblioid[@class='doi']" mode="bibliomixed.mode">
1362
+ <span>
1363
+ <xsl:call-template name="common.html.attributes"/>
1364
+ <xsl:call-template name="id.attribute"/>
1365
+ <a href="{concat('http://dx.doi.org/', .)}">doi:<xsl:value-of select="."/></a>
1366
+ </span>
1367
+ </xsl:template>
1368
+
1369
+ <!-- ==================================================================== -->
1370
+
1371
+ </xsl:stylesheet>