titlepage.xsl 31 KB

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