biblio.xsl 44 KB

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