biblio.xsl 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369
  1. <?xml version="1.0" encoding="ASCII"?>
  2. <!--This file was created automatically by html2xhtml-->
  3. <!--from the HTML stylesheets.-->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" version="1.0">
  5. <!-- ********************************************************************
  6. $Id: biblio.xsl 9297 2012-04-22 03:56:16Z bobstayton $
  7. ********************************************************************
  8. This file is part of the XSL DocBook Stylesheet distribution.
  9. See ../README or http://docbook.sf.net/release/xsl/current/ for
  10. copyright and other information.
  11. ******************************************************************** -->
  12. <!-- ==================================================================== -->
  13. <xsl:template match="bibliography">
  14. <xsl:call-template name="id.warning"/>
  15. <div>
  16. <xsl:call-template name="common.html.attributes">
  17. <xsl:with-param name="inherit" select="1"/>
  18. </xsl:call-template>
  19. <xsl:call-template name="id.attribute">
  20. <xsl:with-param name="conditional" select="0"/>
  21. </xsl:call-template>
  22. <xsl:call-template name="bibliography.titlepage"/>
  23. <xsl:apply-templates/>
  24. <xsl:if test="not(parent::article)">
  25. <xsl:call-template name="process.footnotes"/>
  26. </xsl:if>
  27. </div>
  28. </xsl:template>
  29. <xsl:template match="bibliography/bibliographyinfo"/>
  30. <xsl:template match="bibliography/info"/>
  31. <xsl:template match="bibliography/title"/>
  32. <xsl:template match="bibliography/subtitle"/>
  33. <xsl:template match="bibliography/titleabbrev"/>
  34. <!-- ==================================================================== -->
  35. <xsl:template match="bibliodiv">
  36. <xsl:call-template name="id.warning"/>
  37. <div>
  38. <xsl:call-template name="common.html.attributes">
  39. <xsl:with-param name="inherit" select="0"/>
  40. </xsl:call-template>
  41. <xsl:call-template name="id.attribute">
  42. <xsl:with-param name="conditional" select="0"/>
  43. </xsl:call-template>
  44. <xsl:apply-templates/>
  45. </div>
  46. </xsl:template>
  47. <xsl:template match="bibliodiv/title">
  48. <h3>
  49. <xsl:call-template name="common.html.attributes"/>
  50. <xsl:call-template name="anchor">
  51. <xsl:with-param name="node" select=".."/>
  52. <xsl:with-param name="conditional" select="0"/>
  53. </xsl:call-template>
  54. <xsl:apply-templates/>
  55. </h3>
  56. </xsl:template>
  57. <!-- ==================================================================== -->
  58. <xsl:template match="bibliolist">
  59. <div>
  60. <xsl:call-template name="common.html.attributes">
  61. <xsl:with-param name="inherit" select="0"/>
  62. </xsl:call-template>
  63. <xsl:call-template name="id.attribute"/>
  64. <xsl:call-template name="anchor"/>
  65. <xsl:if test="blockinfo/title|info/title|title">
  66. <xsl:call-template name="formal.object.heading"/>
  67. </xsl:if>
  68. <xsl:apply-templates select="*[not(self::blockinfo) and not(self::info) and not(self::title) and not(self::titleabbrev) and not(self::biblioentry) and not(self::bibliomixed)]"/>
  69. <xsl:apply-templates select="biblioentry|bibliomixed"/>
  70. </div>
  71. </xsl:template>
  72. <!-- ==================================================================== -->
  73. <xsl:template match="biblioentry">
  74. <xsl:param name="label">
  75. <xsl:call-template name="biblioentry.label"/>
  76. </xsl:param>
  77. <xsl:variable name="id">
  78. <xsl:call-template name="object.id"/>
  79. </xsl:variable>
  80. <xsl:choose>
  81. <xsl:when test="string(.) = ''">
  82. <xsl:variable name="bib" select="document($bibliography.collection,.)"/>
  83. <xsl:variable name="entry" select="$bib/bibliography// *[@id=$id or @xml:id=$id][1]"/>
  84. <xsl:choose>
  85. <xsl:when test="$entry">
  86. <xsl:choose>
  87. <xsl:when test="$bibliography.numbered != 0">
  88. <xsl:apply-templates select="$entry">
  89. <xsl:with-param name="label" select="$label"/>
  90. </xsl:apply-templates>
  91. </xsl:when>
  92. <xsl:otherwise>
  93. <xsl:apply-templates select="$entry"/>
  94. </xsl:otherwise>
  95. </xsl:choose>
  96. </xsl:when>
  97. <xsl:otherwise>
  98. <xsl:message>
  99. <xsl:text>No bibliography entry: </xsl:text>
  100. <xsl:value-of select="$id"/>
  101. <xsl:text> found in </xsl:text>
  102. <xsl:value-of select="$bibliography.collection"/>
  103. </xsl:message>
  104. <div>
  105. <xsl:call-template name="common.html.attributes"/>
  106. <xsl:call-template name="id.attribute"/>
  107. <xsl:call-template name="anchor"/>
  108. <p>
  109. <xsl:copy-of select="$label"/>
  110. <xsl:text>Error: no bibliography entry: </xsl:text>
  111. <xsl:value-of select="$id"/>
  112. <xsl:text> found in </xsl:text>
  113. <xsl:value-of select="$bibliography.collection"/>
  114. </p>
  115. </div>
  116. </xsl:otherwise>
  117. </xsl:choose>
  118. </xsl:when>
  119. <xsl:otherwise>
  120. <div>
  121. <xsl:call-template name="common.html.attributes"/>
  122. <xsl:call-template name="id.attribute">
  123. <xsl:with-param name="conditional" select="0"/>
  124. </xsl:call-template>
  125. <xsl:call-template name="anchor">
  126. <xsl:with-param name="conditional" select="0"/>
  127. </xsl:call-template>
  128. <p>
  129. <xsl:copy-of select="$label"/>
  130. <xsl:choose>
  131. <xsl:when test="$bibliography.style = 'iso690'">
  132. <xsl:call-template name="iso690.makecitation"/>
  133. </xsl:when>
  134. <xsl:otherwise>
  135. <xsl:apply-templates mode="bibliography.mode"/>
  136. </xsl:otherwise>
  137. </xsl:choose>
  138. </p>
  139. </div>
  140. </xsl:otherwise>
  141. </xsl:choose>
  142. </xsl:template>
  143. <xsl:template match="bibliomixed">
  144. <xsl:param name="label">
  145. <xsl:call-template name="biblioentry.label"/>
  146. </xsl:param>
  147. <xsl:variable name="id">
  148. <xsl:call-template name="object.id"/>
  149. </xsl:variable>
  150. <xsl:choose>
  151. <xsl:when test="string(.) = ''">
  152. <xsl:variable name="bib" select="document($bibliography.collection,.)"/>
  153. <xsl:variable name="entry" select="$bib/bibliography// *[@id=$id or @xml:id=$id][1]"/>
  154. <xsl:choose>
  155. <xsl:when test="$entry">
  156. <xsl:choose>
  157. <xsl:when test="$bibliography.numbered != 0">
  158. <xsl:apply-templates select="$entry">
  159. <xsl:with-param name="label" select="$label"/>
  160. </xsl:apply-templates>
  161. </xsl:when>
  162. <xsl:otherwise>
  163. <xsl:apply-templates select="$entry"/>
  164. </xsl:otherwise>
  165. </xsl:choose>
  166. </xsl:when>
  167. <xsl:otherwise>
  168. <xsl:message>
  169. <xsl:text>No bibliography entry: </xsl:text>
  170. <xsl:value-of select="$id"/>
  171. <xsl:text> found in </xsl:text>
  172. <xsl:value-of select="$bibliography.collection"/>
  173. </xsl:message>
  174. <div>
  175. <xsl:call-template name="common.html.attributes"/>
  176. <xsl:call-template name="id.attribute"/>
  177. <xsl:call-template name="anchor"/>
  178. <p>
  179. <xsl:copy-of select="$label"/>
  180. <xsl:text>Error: no bibliography entry: </xsl:text>
  181. <xsl:value-of select="$id"/>
  182. <xsl:text> found in </xsl:text>
  183. <xsl:value-of select="$bibliography.collection"/>
  184. </p>
  185. </div>
  186. </xsl:otherwise>
  187. </xsl:choose>
  188. </xsl:when>
  189. <xsl:otherwise>
  190. <div>
  191. <xsl:call-template name="common.html.attributes"/>
  192. <xsl:call-template name="id.attribute">
  193. <xsl:with-param name="conditional" select="0"/>
  194. </xsl:call-template>
  195. <xsl:call-template name="anchor">
  196. <xsl:with-param name="conditional" select="0"/>
  197. </xsl:call-template>
  198. <p>
  199. <xsl:call-template name="common.html.attributes"/>
  200. <xsl:copy-of select="$label"/>
  201. <xsl:apply-templates mode="bibliomixed.mode"/>
  202. </p>
  203. </div>
  204. </xsl:otherwise>
  205. </xsl:choose>
  206. </xsl:template>
  207. <xsl:template name="biblioentry.label">
  208. <xsl:param name="node" select="."/>
  209. <xsl:choose>
  210. <xsl:when test="$bibliography.numbered != 0">
  211. <xsl:text>[</xsl:text>
  212. <xsl:number from="bibliography" count="biblioentry|bibliomixed" level="any" format="1"/>
  213. <xsl:text>] </xsl:text>
  214. </xsl:when>
  215. <xsl:when test="local-name($node/child::*[1]) = 'abbrev'">
  216. <xsl:text>[</xsl:text>
  217. <xsl:apply-templates select="$node/abbrev[1]"/>
  218. <xsl:text>] </xsl:text>
  219. </xsl:when>
  220. <xsl:when test="$node/@xreflabel">
  221. <xsl:text>[</xsl:text>
  222. <xsl:value-of select="$node/@xreflabel"/>
  223. <xsl:text>] </xsl:text>
  224. </xsl:when>
  225. <xsl:when test="$node/@id">
  226. <xsl:text>[</xsl:text>
  227. <xsl:value-of select="$node/@id"/>
  228. <xsl:text>] </xsl:text>
  229. </xsl:when>
  230. <xsl:when test="$node/@xml:id">
  231. <xsl:text>[</xsl:text>
  232. <xsl:value-of select="$node/@xml:id"/>
  233. <xsl:text>] </xsl:text>
  234. </xsl:when>
  235. <xsl:otherwise><!-- nop --></xsl:otherwise>
  236. </xsl:choose>
  237. </xsl:template>
  238. <!-- ==================================================================== -->
  239. <xsl:template match="*" mode="bibliography.mode">
  240. <xsl:apply-templates select="."/><!-- try the default mode -->
  241. </xsl:template>
  242. <xsl:template match="abbrev" mode="bibliography.mode">
  243. <xsl:if test="preceding-sibling::*">
  244. <xsl:apply-templates mode="bibliography.mode"/>
  245. </xsl:if>
  246. </xsl:template>
  247. <xsl:template match="abstract" mode="bibliography.mode">
  248. <!-- suppressed -->
  249. </xsl:template>
  250. <xsl:template match="address" mode="bibliography.mode">
  251. <span>
  252. <xsl:call-template name="common.html.attributes"/>
  253. <xsl:call-template name="id.attribute"/>
  254. <xsl:apply-templates mode="bibliography.mode"/>
  255. <xsl:copy-of select="$biblioentry.item.separator"/>
  256. </span>
  257. </xsl:template>
  258. <xsl:template match="affiliation" mode="bibliography.mode">
  259. <span>
  260. <xsl:call-template name="common.html.attributes"/>
  261. <xsl:call-template name="id.attribute"/>
  262. <xsl:apply-templates mode="bibliography.mode"/>
  263. <xsl:copy-of select="$biblioentry.item.separator"/>
  264. </span>
  265. </xsl:template>
  266. <xsl:template match="shortaffil" mode="bibliography.mode">
  267. <span>
  268. <xsl:call-template name="common.html.attributes"/>
  269. <xsl:call-template name="id.attribute"/>
  270. <xsl:apply-templates mode="bibliography.mode"/>
  271. <xsl:copy-of select="$biblioentry.item.separator"/>
  272. </span>
  273. </xsl:template>
  274. <xsl:template match="jobtitle" mode="bibliography.mode">
  275. <span>
  276. <xsl:call-template name="common.html.attributes"/>
  277. <xsl:call-template name="id.attribute"/>
  278. <xsl:apply-templates mode="bibliography.mode"/>
  279. <xsl:copy-of select="$biblioentry.item.separator"/>
  280. </span>
  281. </xsl:template>
  282. <xsl:template match="artheader|articleinfo|info" 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. <xsl:template match="artpagenums" mode="bibliography.mode">
  291. <span>
  292. <xsl:call-template name="common.html.attributes"/>
  293. <xsl:call-template name="id.attribute"/>
  294. <xsl:apply-templates mode="bibliography.mode"/>
  295. <xsl:copy-of select="$biblioentry.item.separator"/>
  296. </span>
  297. </xsl:template>
  298. <xsl:template match="author" mode="bibliography.mode">
  299. <span>
  300. <xsl:call-template name="common.html.attributes"/>
  301. <xsl:call-template name="id.attribute"/>
  302. <xsl:choose>
  303. <xsl:when test="orgname">
  304. <xsl:apply-templates select="orgname" mode="bibliography.mode"/>
  305. </xsl:when>
  306. <xsl:otherwise>
  307. <xsl:call-template name="person.name"/>
  308. <xsl:copy-of select="$biblioentry.item.separator"/>
  309. </xsl:otherwise>
  310. </xsl:choose>
  311. </span>
  312. </xsl:template>
  313. <xsl:template match="authorblurb|personblurb" mode="bibliography.mode">
  314. <!-- suppressed -->
  315. </xsl:template>
  316. <xsl:template match="authorgroup" mode="bibliography.mode">
  317. <span>
  318. <xsl:call-template name="common.html.attributes"/>
  319. <xsl:call-template name="id.attribute"/>
  320. <xsl:call-template name="person.name.list"/>
  321. <xsl:copy-of select="$biblioentry.item.separator"/>
  322. </span>
  323. </xsl:template>
  324. <xsl:template match="authorinitials" mode="bibliography.mode">
  325. <span>
  326. <xsl:call-template name="common.html.attributes"/>
  327. <xsl:call-template name="id.attribute"/>
  328. <xsl:apply-templates mode="bibliography.mode"/>
  329. <xsl:copy-of select="$biblioentry.item.separator"/>
  330. </span>
  331. </xsl:template>
  332. <xsl:template match="bibliomisc" mode="bibliography.mode">
  333. <span>
  334. <xsl:call-template name="common.html.attributes"/>
  335. <xsl:call-template name="id.attribute"/>
  336. <xsl:apply-templates mode="bibliography.mode"/>
  337. <xsl:copy-of select="$biblioentry.item.separator"/>
  338. </span>
  339. </xsl:template>
  340. <xsl:template match="bibliomset" mode="bibliography.mode">
  341. <span>
  342. <xsl:call-template name="common.html.attributes"/>
  343. <xsl:call-template name="id.attribute"/>
  344. <xsl:apply-templates mode="bibliography.mode"/>
  345. <xsl:copy-of select="$biblioentry.item.separator"/>
  346. </span>
  347. </xsl:template>
  348. <!-- ================================================== -->
  349. <xsl:template match="biblioset" mode="bibliography.mode">
  350. <span>
  351. <xsl:call-template name="common.html.attributes"/>
  352. <xsl:call-template name="id.attribute"/>
  353. <xsl:apply-templates mode="bibliography.mode"/>
  354. </span>
  355. </xsl:template>
  356. <xsl:template match="biblioset/title|biblioset/citetitle" mode="bibliography.mode">
  357. <xsl:variable name="relation" select="../@relation"/>
  358. <xsl:choose>
  359. <xsl:when test="$relation='article' or @pubwork='article'">
  360. <xsl:call-template name="gentext.startquote"/>
  361. <xsl:apply-templates/>
  362. <xsl:call-template name="gentext.endquote"/>
  363. </xsl:when>
  364. <xsl:otherwise>
  365. <em xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></em>
  366. </xsl:otherwise>
  367. </xsl:choose>
  368. <xsl:copy-of select="$biblioentry.item.separator"/>
  369. </xsl:template>
  370. <!-- ================================================== -->
  371. <xsl:template match="citetitle" mode="bibliography.mode">
  372. <span>
  373. <xsl:call-template name="common.html.attributes"/>
  374. <xsl:call-template name="id.attribute"/>
  375. <xsl:choose>
  376. <xsl:when test="@pubwork = 'article'">
  377. <xsl:call-template name="gentext.startquote"/>
  378. <xsl:call-template name="inline.charseq"/>
  379. <xsl:call-template name="gentext.endquote"/>
  380. </xsl:when>
  381. <xsl:otherwise>
  382. <xsl:call-template name="inline.italicseq"/>
  383. </xsl:otherwise>
  384. </xsl:choose>
  385. <xsl:copy-of select="$biblioentry.item.separator"/>
  386. </span>
  387. </xsl:template>
  388. <xsl:template match="collab" mode="bibliography.mode">
  389. <span>
  390. <xsl:call-template name="common.html.attributes"/>
  391. <xsl:call-template name="id.attribute"/>
  392. <xsl:apply-templates mode="bibliography.mode"/>
  393. <xsl:copy-of select="$biblioentry.item.separator"/>
  394. </span>
  395. </xsl:template>
  396. <xsl:template match="collabname" 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="confgroup" 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="confdates" 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="conftitle" 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="confnum" 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="confsponsor" 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="contractnum" 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="contractsponsor" 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="contrib" 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. <!-- ================================================== -->
  469. <xsl:template match="copyright" mode="bibliography.mode">
  470. <span>
  471. <xsl:call-template name="common.html.attributes"/>
  472. <xsl:call-template name="id.attribute"/>
  473. <xsl:call-template name="gentext">
  474. <xsl:with-param name="key" select="'Copyright'"/>
  475. </xsl:call-template>
  476. <xsl:call-template name="gentext.space"/>
  477. <xsl:call-template name="dingbat">
  478. <xsl:with-param name="dingbat">copyright</xsl:with-param>
  479. </xsl:call-template>
  480. <xsl:call-template name="gentext.space"/>
  481. <xsl:apply-templates select="year" mode="bibliography.mode"/>
  482. <xsl:if test="holder">
  483. <xsl:call-template name="gentext.space"/>
  484. <xsl:apply-templates select="holder" mode="bibliography.mode"/>
  485. </xsl:if>
  486. <xsl:copy-of select="$biblioentry.item.separator"/>
  487. </span>
  488. </xsl:template>
  489. <xsl:template match="year" mode="bibliography.mode">
  490. <xsl:apply-templates/><xsl:text>, </xsl:text>
  491. </xsl:template>
  492. <xsl:template match="year[position()=last()]" mode="bibliography.mode">
  493. <xsl:apply-templates/>
  494. </xsl:template>
  495. <xsl:template match="holder" mode="bibliography.mode">
  496. <xsl:apply-templates/>
  497. </xsl:template>
  498. <!-- ================================================== -->
  499. <xsl:template match="corpauthor" mode="bibliography.mode">
  500. <span>
  501. <xsl:call-template name="common.html.attributes"/>
  502. <xsl:call-template name="id.attribute"/>
  503. <xsl:apply-templates mode="bibliography.mode"/>
  504. <xsl:copy-of select="$biblioentry.item.separator"/>
  505. </span>
  506. </xsl:template>
  507. <xsl:template match="corpcredit" 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="corpname" 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="date" 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="edition" 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="editor" mode="bibliography.mode">
  540. <span>
  541. <xsl:call-template name="common.html.attributes"/>
  542. <xsl:call-template name="id.attribute"/>
  543. <xsl:call-template name="person.name"/>
  544. <xsl:copy-of select="$biblioentry.item.separator"/>
  545. </span>
  546. </xsl:template>
  547. <xsl:template match="firstname" mode="bibliography.mode">
  548. <span>
  549. <xsl:call-template name="common.html.attributes"/>
  550. <xsl:call-template name="id.attribute"/>
  551. <xsl:apply-templates mode="bibliography.mode"/>
  552. <xsl:copy-of select="$biblioentry.item.separator"/>
  553. </span>
  554. </xsl:template>
  555. <xsl:template match="honorific" 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="indexterm" 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="invpartnumber" 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="isbn" 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="issn" 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="issuenum" 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="lineage" 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="orgname" 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="orgdiv" 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="othercredit" 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="othername" 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="pagenums" 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="printhistory" mode="bibliography.mode">
  652. <!-- suppressed -->
  653. </xsl:template>
  654. <xsl:template match="productname" 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. <xsl:template match="productnumber" 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="pubdate" 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="publisher" 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. </span>
  684. </xsl:template>
  685. <xsl:template match="publishername" mode="bibliography.mode">
  686. <span>
  687. <xsl:call-template name="common.html.attributes"/>
  688. <xsl:call-template name="id.attribute"/>
  689. <xsl:apply-templates mode="bibliography.mode"/>
  690. <xsl:copy-of select="$biblioentry.item.separator"/>
  691. </span>
  692. </xsl:template>
  693. <xsl:template match="pubsnumber" 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="releaseinfo" 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="revhistory" mode="bibliography.mode">
  710. <!-- suppressed; how could this be represented? -->
  711. </xsl:template>
  712. <xsl:template match="seriesinfo" mode="bibliography.mode">
  713. <span>
  714. <xsl:call-template name="common.html.attributes"/>
  715. <xsl:call-template name="id.attribute"/>
  716. <xsl:apply-templates mode="bibliography.mode"/>
  717. </span>
  718. </xsl:template>
  719. <xsl:template match="seriesvolnums" mode="bibliography.mode">
  720. <span>
  721. <xsl:call-template name="common.html.attributes"/>
  722. <xsl:call-template name="id.attribute"/>
  723. <xsl:apply-templates mode="bibliography.mode"/>
  724. <xsl:copy-of select="$biblioentry.item.separator"/>
  725. </span>
  726. </xsl:template>
  727. <xsl:template match="subtitle" 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="surname" 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="title" mode="bibliography.mode">
  744. <span>
  745. <xsl:call-template name="common.html.attributes"/>
  746. <xsl:call-template name="id.attribute"/>
  747. <em xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates mode="bibliography.mode"/></em>
  748. <xsl:copy-of select="$biblioentry.item.separator"/>
  749. </span>
  750. </xsl:template>
  751. <xsl:template match="titleabbrev" mode="bibliography.mode">
  752. <span>
  753. <xsl:call-template name="common.html.attributes"/>
  754. <xsl:call-template name="id.attribute"/>
  755. <xsl:apply-templates mode="bibliography.mode"/>
  756. <xsl:copy-of select="$biblioentry.item.separator"/>
  757. </span>
  758. </xsl:template>
  759. <xsl:template match="volumenum" 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="bibliocoverage|biblioid|bibliorelation|bibliosource" 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. <!-- See FR #1934434 and http://doi.org -->
  776. <xsl:template match="biblioid[@class='doi']" mode="bibliography.mode">
  777. <span>
  778. <xsl:call-template name="common.html.attributes"/>
  779. <xsl:call-template name="id.attribute"/>
  780. <a href="{concat('http://dx.doi.org/', .)}">doi:<xsl:value-of select="."/></a>
  781. </span>
  782. </xsl:template>
  783. <!-- ==================================================================== -->
  784. <xsl:template match="*" mode="bibliomixed.mode">
  785. <xsl:apply-templates select="."/><!-- try the default mode -->
  786. </xsl:template>
  787. <xsl:template match="abbrev" mode="bibliomixed.mode">
  788. <xsl:if test="preceding-sibling::*">
  789. <xsl:apply-templates mode="bibliomixed.mode"/>
  790. </xsl:if>
  791. </xsl:template>
  792. <xsl:template match="abstract" mode="bibliomixed.mode">
  793. <span>
  794. <xsl:call-template name="common.html.attributes"/>
  795. <xsl:call-template name="id.attribute"/>
  796. <xsl:apply-templates mode="bibliomixed.mode"/>
  797. </span>
  798. </xsl:template>
  799. <xsl:template match="address" mode="bibliomixed.mode">
  800. <span>
  801. <xsl:call-template name="common.html.attributes"/>
  802. <xsl:call-template name="id.attribute"/>
  803. <xsl:apply-templates mode="bibliomixed.mode"/>
  804. </span>
  805. </xsl:template>
  806. <xsl:template match="affiliation" mode="bibliomixed.mode">
  807. <span>
  808. <xsl:call-template name="common.html.attributes"/>
  809. <xsl:call-template name="id.attribute"/>
  810. <xsl:apply-templates mode="bibliomixed.mode"/>
  811. </span>
  812. </xsl:template>
  813. <xsl:template match="shortaffil" mode="bibliomixed.mode">
  814. <span>
  815. <xsl:call-template name="common.html.attributes"/>
  816. <xsl:call-template name="id.attribute"/>
  817. <xsl:apply-templates mode="bibliomixed.mode"/>
  818. </span>
  819. </xsl:template>
  820. <xsl:template match="jobtitle" mode="bibliomixed.mode">
  821. <span>
  822. <xsl:call-template name="common.html.attributes"/>
  823. <xsl:call-template name="id.attribute"/>
  824. <xsl:apply-templates mode="bibliomixed.mode"/>
  825. </span>
  826. </xsl:template>
  827. <xsl:template match="artpagenums" mode="bibliomixed.mode">
  828. <span>
  829. <xsl:call-template name="common.html.attributes"/>
  830. <xsl:call-template name="id.attribute"/>
  831. <xsl:apply-templates mode="bibliomixed.mode"/>
  832. </span>
  833. </xsl:template>
  834. <xsl:template match="author" mode="bibliomixed.mode">
  835. <span>
  836. <xsl:call-template name="common.html.attributes"/>
  837. <xsl:call-template name="id.attribute"/>
  838. <xsl:choose>
  839. <xsl:when test="orgname">
  840. <xsl:apply-templates select="orgname" mode="bibliomixed.mode"/>
  841. </xsl:when>
  842. <xsl:otherwise>
  843. <xsl:call-template name="person.name"/>
  844. </xsl:otherwise>
  845. </xsl:choose>
  846. </span>
  847. </xsl:template>
  848. <xsl:template match="authorblurb|personblurb" mode="bibliomixed.mode">
  849. <span>
  850. <xsl:call-template name="common.html.attributes"/>
  851. <xsl:call-template name="id.attribute"/>
  852. <xsl:apply-templates mode="bibliomixed.mode"/>
  853. </span>
  854. </xsl:template>
  855. <xsl:template match="authorgroup" mode="bibliomixed.mode">
  856. <span>
  857. <xsl:call-template name="common.html.attributes"/>
  858. <xsl:call-template name="id.attribute"/>
  859. <xsl:apply-templates mode="bibliomixed.mode"/>
  860. </span>
  861. </xsl:template>
  862. <xsl:template match="authorinitials" mode="bibliomixed.mode">
  863. <span>
  864. <xsl:call-template name="common.html.attributes"/>
  865. <xsl:call-template name="id.attribute"/>
  866. <xsl:apply-templates mode="bibliomixed.mode"/>
  867. </span>
  868. </xsl:template>
  869. <xsl:template match="bibliomisc" mode="bibliomixed.mode">
  870. <span>
  871. <xsl:call-template name="common.html.attributes"/>
  872. <xsl:call-template name="id.attribute"/>
  873. <xsl:apply-templates mode="bibliomixed.mode"/>
  874. </span>
  875. </xsl:template>
  876. <!-- ================================================== -->
  877. <xsl:template match="bibliomset" mode="bibliomixed.mode">
  878. <span>
  879. <xsl:call-template name="common.html.attributes"/>
  880. <xsl:call-template name="id.attribute"/>
  881. <xsl:apply-templates mode="bibliomixed.mode"/>
  882. </span>
  883. </xsl:template>
  884. <xsl:template match="bibliomset/title|bibliomset/citetitle" mode="bibliomixed.mode">
  885. <xsl:variable name="relation" select="../@relation"/>
  886. <xsl:choose>
  887. <xsl:when test="$relation='article' or @pubwork='article'">
  888. <xsl:call-template name="gentext.startquote"/>
  889. <xsl:apply-templates/>
  890. <xsl:call-template name="gentext.endquote"/>
  891. </xsl:when>
  892. <xsl:otherwise>
  893. <em xmlns:xslo="http://www.w3.org/1999/XSL/Transform"><xsl:apply-templates/></em>
  894. </xsl:otherwise>
  895. </xsl:choose>
  896. </xsl:template>
  897. <!-- ================================================== -->
  898. <xsl:template match="biblioset" mode="bibliomixed.mode">
  899. <span>
  900. <xsl:call-template name="common.html.attributes"/>
  901. <xsl:call-template name="id.attribute"/>
  902. <xsl:apply-templates mode="bibliomixed.mode"/>
  903. </span>
  904. </xsl:template>
  905. <xsl:template match="citetitle" mode="bibliomixed.mode">
  906. <span>
  907. <xsl:call-template name="common.html.attributes"/>
  908. <xsl:call-template name="id.attribute"/>
  909. <xsl:choose>
  910. <xsl:when test="@pubwork = 'article'">
  911. <xsl:call-template name="gentext.startquote"/>
  912. <xsl:call-template name="inline.charseq"/>
  913. <xsl:call-template name="gentext.endquote"/>
  914. </xsl:when>
  915. <xsl:otherwise>
  916. <xsl:call-template name="inline.italicseq"/>
  917. </xsl:otherwise>
  918. </xsl:choose>
  919. </span>
  920. </xsl:template>
  921. <xsl:template match="collab" 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. <xsl:template match="confgroup" mode="bibliomixed.mode">
  929. <span>
  930. <xsl:call-template name="common.html.attributes"/>
  931. <xsl:call-template name="id.attribute"/>
  932. <xsl:apply-templates mode="bibliomixed.mode"/>
  933. </span>
  934. </xsl:template>
  935. <xsl:template match="contractnum" mode="bibliomixed.mode">
  936. <span>
  937. <xsl:call-template name="common.html.attributes"/>
  938. <xsl:call-template name="id.attribute"/>
  939. <xsl:apply-templates mode="bibliomixed.mode"/>
  940. </span>
  941. </xsl:template>
  942. <xsl:template match="contractsponsor" mode="bibliomixed.mode">
  943. <span>
  944. <xsl:call-template name="common.html.attributes"/>
  945. <xsl:call-template name="id.attribute"/>
  946. <xsl:apply-templates mode="bibliomixed.mode"/>
  947. </span>
  948. </xsl:template>
  949. <xsl:template match="contrib" mode="bibliomixed.mode">
  950. <span>
  951. <xsl:call-template name="common.html.attributes"/>
  952. <xsl:call-template name="id.attribute"/>
  953. <xsl:apply-templates mode="bibliomixed.mode"/>
  954. </span>
  955. </xsl:template>
  956. <xsl:template match="copyright" mode="bibliomixed.mode">
  957. <span>
  958. <xsl:call-template name="common.html.attributes"/>
  959. <xsl:call-template name="id.attribute"/>
  960. <xsl:apply-templates mode="bibliomixed.mode"/>
  961. </span>
  962. </xsl:template>
  963. <xsl:template match="corpauthor" mode="bibliomixed.mode">
  964. <span>
  965. <xsl:call-template name="common.html.attributes"/>
  966. <xsl:call-template name="id.attribute"/>
  967. <xsl:apply-templates mode="bibliomixed.mode"/>
  968. </span>
  969. </xsl:template>
  970. <xsl:template match="corpcredit" mode="bibliomixed.mode">
  971. <span>
  972. <xsl:call-template name="common.html.attributes"/>
  973. <xsl:call-template name="id.attribute"/>
  974. <xsl:apply-templates mode="bibliomixed.mode"/>
  975. </span>
  976. </xsl:template>
  977. <xsl:template match="corpname" mode="bibliomixed.mode">
  978. <span>
  979. <xsl:call-template name="common.html.attributes"/>
  980. <xsl:call-template name="id.attribute"/>
  981. <xsl:apply-templates mode="bibliomixed.mode"/>
  982. </span>
  983. </xsl:template>
  984. <xsl:template match="date" 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. <xsl:template match="edition" mode="bibliomixed.mode">
  992. <span>
  993. <xsl:call-template name="common.html.attributes"/>
  994. <xsl:call-template name="id.attribute"/>
  995. <xsl:apply-templates mode="bibliomixed.mode"/>
  996. </span>
  997. </xsl:template>
  998. <xsl:template match="editor" mode="bibliomixed.mode">
  999. <span>
  1000. <xsl:call-template name="common.html.attributes"/>
  1001. <xsl:call-template name="id.attribute"/>
  1002. <xsl:apply-templates mode="bibliomixed.mode"/>
  1003. </span>
  1004. </xsl:template>
  1005. <xsl:template match="firstname" mode="bibliomixed.mode">
  1006. <span>
  1007. <xsl:call-template name="common.html.attributes"/>
  1008. <xsl:call-template name="id.attribute"/>
  1009. <xsl:apply-templates mode="bibliomixed.mode"/>
  1010. </span>
  1011. </xsl:template>
  1012. <xsl:template match="honorific" mode="bibliomixed.mode">
  1013. <span>
  1014. <xsl:call-template name="common.html.attributes"/>
  1015. <xsl:call-template name="id.attribute"/>
  1016. <xsl:apply-templates mode="bibliomixed.mode"/>
  1017. </span>
  1018. </xsl:template>
  1019. <xsl:template match="indexterm" mode="bibliomixed.mode">
  1020. <span>
  1021. <xsl:call-template name="common.html.attributes"/>
  1022. <xsl:call-template name="id.attribute"/>
  1023. <xsl:apply-templates mode="bibliomixed.mode"/>
  1024. </span>
  1025. </xsl:template>
  1026. <xsl:template match="invpartnumber" mode="bibliomixed.mode">
  1027. <span>
  1028. <xsl:call-template name="common.html.attributes"/>
  1029. <xsl:call-template name="id.attribute"/>
  1030. <xsl:apply-templates mode="bibliomixed.mode"/>
  1031. </span>
  1032. </xsl:template>
  1033. <xsl:template match="isbn" mode="bibliomixed.mode">
  1034. <span>
  1035. <xsl:call-template name="common.html.attributes"/>
  1036. <xsl:call-template name="id.attribute"/>
  1037. <xsl:apply-templates mode="bibliomixed.mode"/>
  1038. </span>
  1039. </xsl:template>
  1040. <xsl:template match="issn" mode="bibliomixed.mode">
  1041. <span>
  1042. <xsl:call-template name="common.html.attributes"/>
  1043. <xsl:call-template name="id.attribute"/>
  1044. <xsl:apply-templates mode="bibliomixed.mode"/>
  1045. </span>
  1046. </xsl:template>
  1047. <xsl:template match="issuenum" mode="bibliomixed.mode">
  1048. <span>
  1049. <xsl:call-template name="common.html.attributes"/>
  1050. <xsl:call-template name="id.attribute"/>
  1051. <xsl:apply-templates mode="bibliomixed.mode"/>
  1052. </span>
  1053. </xsl:template>
  1054. <xsl:template match="lineage" mode="bibliomixed.mode">
  1055. <span>
  1056. <xsl:call-template name="common.html.attributes"/>
  1057. <xsl:call-template name="id.attribute"/>
  1058. <xsl:apply-templates mode="bibliomixed.mode"/>
  1059. </span>
  1060. </xsl:template>
  1061. <xsl:template match="orgname" mode="bibliomixed.mode">
  1062. <span>
  1063. <xsl:call-template name="common.html.attributes"/>
  1064. <xsl:call-template name="id.attribute"/>
  1065. <xsl:apply-templates mode="bibliomixed.mode"/>
  1066. </span>
  1067. </xsl:template>
  1068. <xsl:template match="othercredit" 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. <xsl:template match="othername" mode="bibliomixed.mode">
  1076. <span>
  1077. <xsl:call-template name="common.html.attributes"/>
  1078. <xsl:call-template name="id.attribute"/>
  1079. <xsl:apply-templates mode="bibliomixed.mode"/>
  1080. </span>
  1081. </xsl:template>
  1082. <xsl:template match="pagenums" mode="bibliomixed.mode">
  1083. <span>
  1084. <xsl:call-template name="common.html.attributes"/>
  1085. <xsl:call-template name="id.attribute"/>
  1086. <xsl:apply-templates mode="bibliomixed.mode"/>
  1087. </span>
  1088. </xsl:template>
  1089. <xsl:template match="printhistory" mode="bibliomixed.mode">
  1090. <span>
  1091. <xsl:call-template name="common.html.attributes"/>
  1092. <xsl:call-template name="id.attribute"/>
  1093. <xsl:apply-templates mode="bibliomixed.mode"/>
  1094. </span>
  1095. </xsl:template>
  1096. <xsl:template match="productname" mode="bibliomixed.mode">
  1097. <span>
  1098. <xsl:call-template name="common.html.attributes"/>
  1099. <xsl:call-template name="id.attribute"/>
  1100. <xsl:apply-templates mode="bibliomixed.mode"/>
  1101. </span>
  1102. </xsl:template>
  1103. <xsl:template match="productnumber" mode="bibliomixed.mode">
  1104. <span>
  1105. <xsl:call-template name="common.html.attributes"/>
  1106. <xsl:call-template name="id.attribute"/>
  1107. <xsl:apply-templates mode="bibliomixed.mode"/>
  1108. </span>
  1109. </xsl:template>
  1110. <xsl:template match="pubdate" mode="bibliomixed.mode">
  1111. <span>
  1112. <xsl:call-template name="common.html.attributes"/>
  1113. <xsl:call-template name="id.attribute"/>
  1114. <xsl:apply-templates mode="bibliomixed.mode"/>
  1115. </span>
  1116. </xsl:template>
  1117. <xsl:template match="publisher" mode="bibliomixed.mode">
  1118. <span>
  1119. <xsl:call-template name="common.html.attributes"/>
  1120. <xsl:call-template name="id.attribute"/>
  1121. <xsl:apply-templates mode="bibliomixed.mode"/>
  1122. </span>
  1123. </xsl:template>
  1124. <xsl:template match="publishername" 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. <xsl:template match="pubsnumber" mode="bibliomixed.mode">
  1132. <span>
  1133. <xsl:call-template name="common.html.attributes"/>
  1134. <xsl:call-template name="id.attribute"/>
  1135. <xsl:apply-templates mode="bibliomixed.mode"/>
  1136. </span>
  1137. </xsl:template>
  1138. <xsl:template match="releaseinfo" mode="bibliomixed.mode">
  1139. <span>
  1140. <xsl:call-template name="common.html.attributes"/>
  1141. <xsl:call-template name="id.attribute"/>
  1142. <xsl:apply-templates mode="bibliomixed.mode"/>
  1143. </span>
  1144. </xsl:template>
  1145. <xsl:template match="revhistory" mode="bibliomixed.mode">
  1146. <!-- suppressed; how could this be represented? -->
  1147. </xsl:template>
  1148. <xsl:template match="seriesvolnums" 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. <xsl:template match="subtitle" mode="bibliomixed.mode">
  1156. <span>
  1157. <xsl:call-template name="common.html.attributes"/>
  1158. <xsl:call-template name="id.attribute"/>
  1159. <xsl:apply-templates mode="bibliomixed.mode"/>
  1160. </span>
  1161. </xsl:template>
  1162. <xsl:template match="surname" mode="bibliomixed.mode">
  1163. <span>
  1164. <xsl:call-template name="common.html.attributes"/>
  1165. <xsl:call-template name="id.attribute"/>
  1166. <xsl:apply-templates mode="bibliomixed.mode"/>
  1167. </span>
  1168. </xsl:template>
  1169. <xsl:template match="title" mode="bibliomixed.mode">
  1170. <span>
  1171. <xsl:call-template name="common.html.attributes"/>
  1172. <xsl:call-template name="id.attribute"/>
  1173. <xsl:apply-templates mode="bibliomixed.mode"/>
  1174. </span>
  1175. </xsl:template>
  1176. <xsl:template match="titleabbrev" mode="bibliomixed.mode">
  1177. <span>
  1178. <xsl:call-template name="common.html.attributes"/>
  1179. <xsl:call-template name="id.attribute"/>
  1180. <xsl:apply-templates mode="bibliomixed.mode"/>
  1181. </span>
  1182. </xsl:template>
  1183. <xsl:template match="volumenum" mode="bibliomixed.mode">
  1184. <span>
  1185. <xsl:call-template name="common.html.attributes"/>
  1186. <xsl:call-template name="id.attribute"/>
  1187. <xsl:apply-templates mode="bibliomixed.mode"/>
  1188. </span>
  1189. </xsl:template>
  1190. <xsl:template match="bibliocoverage|biblioid|bibliorelation|bibliosource" mode="bibliomixed.mode">
  1191. <span>
  1192. <xsl:call-template name="common.html.attributes"/>
  1193. <xsl:call-template name="id.attribute"/>
  1194. <xsl:apply-templates mode="bibliomixed.mode"/>
  1195. </span>
  1196. </xsl:template>
  1197. <!-- See FR #1934434 and http://doi.org -->
  1198. <xsl:template match="biblioid[@class='doi']" mode="bibliomixed.mode">
  1199. <span>
  1200. <xsl:call-template name="common.html.attributes"/>
  1201. <xsl:call-template name="id.attribute"/>
  1202. <a href="{concat('http://dx.doi.org/', .)}">doi:<xsl:value-of select="."/></a>
  1203. </span>
  1204. </xsl:template>
  1205. <!-- ==================================================================== -->
  1206. </xsl:stylesheet>