titlepage.xsl 37 KB

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