booky 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1557) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/README.textile +18 -0
  4. data/Rakefile +2 -0
  5. data/bin/booky +6 -0
  6. data/booky.gemspec +24 -0
  7. data/lib/booky/docbook.rb +13 -0
  8. data/lib/booky/fo.rb +15 -0
  9. data/lib/booky/fonts.rb +104 -0
  10. data/lib/booky/pdf.rb +19 -0
  11. data/lib/booky/version.rb +3 -0
  12. data/lib/booky.rb +101 -0
  13. data/lib/custom_fonts.xml +91 -0
  14. data/lib/fonts/Ubuntu-B.ttf +0 -0
  15. data/lib/fonts/Ubuntu-BI.ttf +0 -0
  16. data/lib/fonts/Ubuntu-L.ttf +0 -0
  17. data/lib/fonts/Ubuntu-LI.ttf +0 -0
  18. data/lib/fonts/Ubuntu-M.ttf +0 -0
  19. data/lib/fonts/Ubuntu-MI.ttf +0 -0
  20. data/lib/fonts/Ubuntu-R.ttf +0 -0
  21. data/lib/fonts/Ubuntu-RI.ttf +0 -0
  22. data/lib/fop/KEYS +248 -0
  23. data/lib/fop/LICENSE +202 -0
  24. data/lib/fop/NOTICE +10 -0
  25. data/lib/fop/README +286 -0
  26. data/lib/fop/build/fop.jar +0 -0
  27. data/lib/fop/conf/fop.xconf +464 -0
  28. data/lib/fop/fop +254 -0
  29. data/lib/fop/fop.bat +85 -0
  30. data/lib/fop/fop.cmd +75 -0
  31. data/lib/fop/fop.js +341 -0
  32. data/lib/fop/lib/README.txt +243 -0
  33. data/lib/fop/lib/avalon-framework-4.2.0.jar +0 -0
  34. data/lib/fop/lib/avalon-framework.LICENSE.txt +175 -0
  35. data/lib/fop/lib/avalon-framework.NOTICE.TXT +11 -0
  36. data/lib/fop/lib/batik-all-1.7.jar +0 -0
  37. data/lib/fop/lib/batik.LICENSE.txt +201 -0
  38. data/lib/fop/lib/batik.NOTICE.txt +18 -0
  39. data/lib/fop/lib/commons-io-1.3.1.jar +0 -0
  40. data/lib/fop/lib/commons-io.LICENSE.txt +203 -0
  41. data/lib/fop/lib/commons-io.NOTICE.txt +6 -0
  42. data/lib/fop/lib/commons-logging-1.0.4.jar +0 -0
  43. data/lib/fop/lib/commons-logging.LICENSE.txt +202 -0
  44. data/lib/fop/lib/commons-logging.NOTICE.txt +3 -0
  45. data/lib/fop/lib/jeuclid-core-3.1.9.jar +0 -0
  46. data/lib/fop/lib/jeuclid-fop-3.1.9.jar +0 -0
  47. data/lib/fop/lib/serializer-2.7.0.jar +0 -0
  48. data/lib/fop/lib/serializer.LICENSE.txt +201 -0
  49. data/lib/fop/lib/serializer.NOTICE.txt +15 -0
  50. data/lib/fop/lib/xalan-2.7.0.jar +0 -0
  51. data/lib/fop/lib/xalan.BCEL.LICENSE.txt +52 -0
  52. data/lib/fop/lib/xalan.LICENSE.txt +202 -0
  53. data/lib/fop/lib/xalan.NOTICE.txt +44 -0
  54. data/lib/fop/lib/xalan.regexp.LICENSE.txt +52 -0
  55. data/lib/fop/lib/xalan.runtime.LICENSE.txt +20 -0
  56. data/lib/fop/lib/xerces.LICENSE.txt +56 -0
  57. data/lib/fop/lib/xercesImpl-2.7.1.jar +0 -0
  58. data/lib/fop/lib/xercesImpl.LICENSE.txt +201 -0
  59. data/lib/fop/lib/xercesImpl.NOTICE.txt +14 -0
  60. data/lib/fop/lib/xml-apis-1.3.04.jar +0 -0
  61. data/lib/fop/lib/xml-apis-ext-1.3.04.jar +0 -0
  62. data/lib/fop/lib/xml-apis-ext.LICENSE.dom-documentation.txt +73 -0
  63. data/lib/fop/lib/xml-apis-ext.LICENSE.dom-software.txt +61 -0
  64. data/lib/fop/lib/xml-apis-ext.LICENSE.sac.html +75 -0
  65. data/lib/fop/lib/xml-apis-ext.LICENSE.txt +202 -0
  66. data/lib/fop/lib/xml-apis-ext.NOTICE.txt +16 -0
  67. data/lib/fop/lib/xml-apis-ext.README.dom.txt +56 -0
  68. data/lib/fop/lib/xml-apis.LICENSE-SAX.html +17 -0
  69. data/lib/fop/lib/xml-apis.LICENSE.DOM-documentation.html +74 -0
  70. data/lib/fop/lib/xml-apis.LICENSE.DOM-software.html +66 -0
  71. data/lib/fop/lib/xml-apis.LICENSE.txt +201 -0
  72. data/lib/fop/lib/xml-apis.NOTICE.txt +13 -0
  73. data/lib/fop/lib/xmlgraphics-commons-1.4.jar +0 -0
  74. data/lib/fop/lib/xmlgraphics-commons.LICENSE.txt +202 -0
  75. data/lib/fop/lib/xmlgraphics-commons.NOTICE.txt +5 -0
  76. data/lib/fop/status.xml +1809 -0
  77. data/lib/params.pdf +0 -0
  78. data/lib/stylesheets/.CatalogManager.properties.example +61 -0
  79. data/lib/stylesheets/.urilist +1 -0
  80. data/lib/stylesheets/AUTHORS +4 -0
  81. data/lib/stylesheets/BUGS +21 -0
  82. data/lib/stylesheets/COPYING +47 -0
  83. data/lib/stylesheets/INSTALL +88 -0
  84. data/lib/stylesheets/Makefile +89 -0
  85. data/lib/stylesheets/NEWS +139 -0
  86. data/lib/stylesheets/NEWS.html +25 -0
  87. data/lib/stylesheets/NEWS.xml +145 -0
  88. data/lib/stylesheets/README +166 -0
  89. data/lib/stylesheets/RELEASE-NOTES.html +8353 -0
  90. data/lib/stylesheets/RELEASE-NOTES.pdf +24340 -11
  91. data/lib/stylesheets/RELEASE-NOTES.txt +8575 -0
  92. data/lib/stylesheets/RELEASE-NOTES.xml +10327 -0
  93. data/lib/stylesheets/TODO +23 -0
  94. data/lib/stylesheets/VERSION +115 -0
  95. data/lib/stylesheets/catalog.xml +8 -0
  96. data/lib/stylesheets/common/addns.xsl +118 -0
  97. data/lib/stylesheets/common/af.xml +1229 -0
  98. data/lib/stylesheets/common/am.xml +1229 -0
  99. data/lib/stylesheets/common/ar.xml +1229 -0
  100. data/lib/stylesheets/common/as.xml +660 -0
  101. data/lib/stylesheets/common/ast.xml +660 -0
  102. data/lib/stylesheets/common/autoidx-kimber.xsl +45 -0
  103. data/lib/stylesheets/common/autoidx-kosek.xsl +155 -0
  104. data/lib/stylesheets/common/az.xml +672 -0
  105. data/lib/stylesheets/common/bg.xml +724 -0
  106. data/lib/stylesheets/common/bn.xml +1229 -0
  107. data/lib/stylesheets/common/bn_in.xml +660 -0
  108. data/lib/stylesheets/common/bs.xml +662 -0
  109. data/lib/stylesheets/common/ca.xml +660 -0
  110. data/lib/stylesheets/common/charmap.xml +185 -0
  111. data/lib/stylesheets/common/charmap.xsl +222 -0
  112. data/lib/stylesheets/common/common.xml +622 -0
  113. data/lib/stylesheets/common/common.xsl +2040 -0
  114. data/lib/stylesheets/common/cs.xml +700 -0
  115. data/lib/stylesheets/common/cy.xml +1245 -0
  116. data/lib/stylesheets/common/da.xml +664 -0
  117. data/lib/stylesheets/common/de.xml +666 -0
  118. data/lib/stylesheets/common/el.xml +729 -0
  119. data/lib/stylesheets/common/en.xml +1230 -0
  120. data/lib/stylesheets/common/entities.ent +67 -0
  121. data/lib/stylesheets/common/eo.xml +1229 -0
  122. data/lib/stylesheets/common/es.xml +676 -0
  123. data/lib/stylesheets/common/et.xml +1229 -0
  124. data/lib/stylesheets/common/eu.xml +1229 -0
  125. data/lib/stylesheets/common/fa.xml +660 -0
  126. data/lib/stylesheets/common/fi.xml +670 -0
  127. data/lib/stylesheets/common/fr.xml +690 -0
  128. data/lib/stylesheets/common/ga.xml +1229 -0
  129. data/lib/stylesheets/common/gentext.xsl +840 -0
  130. data/lib/stylesheets/common/gl.xml +1229 -0
  131. data/lib/stylesheets/common/gu.xml +660 -0
  132. data/lib/stylesheets/common/he.xml +1229 -0
  133. data/lib/stylesheets/common/hi.xml +660 -0
  134. data/lib/stylesheets/common/hr.xml +662 -0
  135. data/lib/stylesheets/common/hu.xml +678 -0
  136. data/lib/stylesheets/common/id.xml +1229 -0
  137. data/lib/stylesheets/common/insertfile.xsl +113 -0
  138. data/lib/stylesheets/common/is.xml +672 -0
  139. data/lib/stylesheets/common/it.xml +1229 -0
  140. data/lib/stylesheets/common/ja.xml +660 -0
  141. data/lib/stylesheets/common/ka.xml +700 -0
  142. data/lib/stylesheets/common/kn.xml +1229 -0
  143. data/lib/stylesheets/common/ko.xml +1229 -0
  144. data/lib/stylesheets/common/ky.xml +732 -0
  145. data/lib/stylesheets/common/l10n.dtd +64 -0
  146. data/lib/stylesheets/common/l10n.xml +77 -0
  147. data/lib/stylesheets/common/l10n.xsl +594 -0
  148. data/lib/stylesheets/common/la.xml +1229 -0
  149. data/lib/stylesheets/common/labels.xsl +888 -0
  150. data/lib/stylesheets/common/lt.xml +678 -0
  151. data/lib/stylesheets/common/lv.xml +1229 -0
  152. data/lib/stylesheets/common/ml.xml +660 -0
  153. data/lib/stylesheets/common/mn.xml +730 -0
  154. data/lib/stylesheets/common/mr.xml +660 -0
  155. data/lib/stylesheets/common/nb.xml +1229 -0
  156. data/lib/stylesheets/common/nds.xml +666 -0
  157. data/lib/stylesheets/common/nl.xml +660 -0
  158. data/lib/stylesheets/common/nn.xml +1229 -0
  159. data/lib/stylesheets/common/olink.xsl +1227 -0
  160. data/lib/stylesheets/common/or.xml +1229 -0
  161. data/lib/stylesheets/common/pa.xml +660 -0
  162. data/lib/stylesheets/common/pi.xml +168 -0
  163. data/lib/stylesheets/common/pi.xsl +347 -0
  164. data/lib/stylesheets/common/pl.xml +678 -0
  165. data/lib/stylesheets/common/pt.xml +1229 -0
  166. data/lib/stylesheets/common/pt_br.xml +1229 -0
  167. data/lib/stylesheets/common/refentry.xml +781 -0
  168. data/lib/stylesheets/common/refentry.xsl +1353 -0
  169. data/lib/stylesheets/common/ro.xml +1229 -0
  170. data/lib/stylesheets/common/ru.xml +726 -0
  171. data/lib/stylesheets/common/sk.xml +1229 -0
  172. data/lib/stylesheets/common/sl.xml +1229 -0
  173. data/lib/stylesheets/common/sq.xml +1229 -0
  174. data/lib/stylesheets/common/sr.xml +720 -0
  175. data/lib/stylesheets/common/sr_Latn.xml +679 -0
  176. data/lib/stylesheets/common/subtitles.xsl +156 -0
  177. data/lib/stylesheets/common/sv.xml +664 -0
  178. data/lib/stylesheets/common/ta.xml +660 -0
  179. data/lib/stylesheets/common/table.xsl +515 -0
  180. data/lib/stylesheets/common/targetdatabase.dtd +49 -0
  181. data/lib/stylesheets/common/targets.xsl +334 -0
  182. data/lib/stylesheets/common/te.xml +660 -0
  183. data/lib/stylesheets/common/th.xml +1229 -0
  184. data/lib/stylesheets/common/titles.xsl +806 -0
  185. data/lib/stylesheets/common/tl.xml +1229 -0
  186. data/lib/stylesheets/common/tr.xml +666 -0
  187. data/lib/stylesheets/common/uk.xml +726 -0
  188. data/lib/stylesheets/common/utility.xml +259 -0
  189. data/lib/stylesheets/common/utility.xsl +291 -0
  190. data/lib/stylesheets/common/vi.xml +1229 -0
  191. data/lib/stylesheets/common/xh.xml +1229 -0
  192. data/lib/stylesheets/common/zh.xml +660 -0
  193. data/lib/stylesheets/common/zh_cn.xml +660 -0
  194. data/lib/stylesheets/common/zh_tw.xml +660 -0
  195. data/lib/stylesheets/docsrc/authors.xml +10 -0
  196. data/lib/stylesheets/docsrc/copyright.xml +18 -0
  197. data/lib/stylesheets/docsrc/license.xml +23 -0
  198. data/lib/stylesheets/docsrc/page.png +0 -0
  199. data/lib/stylesheets/docsrc/reference.css +79 -0
  200. data/lib/stylesheets/docsrc/reference.xml +229 -0
  201. data/lib/stylesheets/docsrc/reference.xml.included +33905 -0
  202. data/lib/stylesheets/docsrc/warranty.xml +11 -0
  203. data/lib/stylesheets/eclipse/eclipse.xsl +294 -0
  204. data/lib/stylesheets/eclipse/eclipse3.xsl +112 -0
  205. data/lib/stylesheets/eclipse/profile-eclipse.xsl +268 -0
  206. data/lib/stylesheets/epub/README +88 -0
  207. data/lib/stylesheets/epub/bin/dbtoepub +76 -0
  208. data/lib/stylesheets/epub/bin/lib/docbook.rb +227 -0
  209. data/lib/stylesheets/epub/bin/xslt/obfuscate.xsl +14 -0
  210. data/lib/stylesheets/epub/docbook.xsl +1678 -0
  211. data/lib/stylesheets/extensions/LICENSE.txt +264 -0
  212. data/lib/stylesheets/extensions/NOTICE.txt +12 -0
  213. data/lib/stylesheets/extensions/README.LIBXSLT +52 -0
  214. data/lib/stylesheets/extensions/README.txt +4 -0
  215. data/lib/stylesheets/extensions/docbook.py +239 -0
  216. data/lib/stylesheets/extensions/lucene-analyzers-3.0.0.jar +0 -0
  217. data/lib/stylesheets/extensions/lucene-core-3.0.0.jar +0 -0
  218. data/lib/stylesheets/extensions/saxon65.jar +0 -0
  219. data/lib/stylesheets/extensions/webhelpindexer.jar +0 -0
  220. data/lib/stylesheets/extensions/xalan27.jar +0 -0
  221. data/lib/stylesheets/extensions/xslt.py +84 -0
  222. data/lib/stylesheets/fo/admon.xsl +132 -0
  223. data/lib/stylesheets/fo/annotations.xsl +20 -0
  224. data/lib/stylesheets/fo/autoidx-kimber.xsl +173 -0
  225. data/lib/stylesheets/fo/autoidx-kosek.xsl +140 -0
  226. data/lib/stylesheets/fo/autoidx-ng.xsl +22 -0
  227. data/lib/stylesheets/fo/autoidx.xsl +1331 -0
  228. data/lib/stylesheets/fo/autotoc.xsl +917 -0
  229. data/lib/stylesheets/fo/axf.xsl +112 -0
  230. data/lib/stylesheets/fo/biblio-iso690.xsl +1302 -0
  231. data/lib/stylesheets/fo/biblio.xsl +1171 -0
  232. data/lib/stylesheets/fo/block.xsl +656 -0
  233. data/lib/stylesheets/fo/callout.xsl +232 -0
  234. data/lib/stylesheets/fo/component.xsl +900 -0
  235. data/lib/stylesheets/fo/division.xsl +614 -0
  236. data/lib/stylesheets/fo/docbook.xsl +333 -0
  237. data/lib/stylesheets/fo/ebnf.xsl +326 -0
  238. data/lib/stylesheets/fo/fo-rtf.xsl +155 -0
  239. data/lib/stylesheets/fo/fo.xsl +119 -0
  240. data/lib/stylesheets/fo/footnote.xsl +221 -0
  241. data/lib/stylesheets/fo/fop.xsl +95 -0
  242. data/lib/stylesheets/fo/fop1.xsl +225 -0
  243. data/lib/stylesheets/fo/formal.xsl +644 -0
  244. data/lib/stylesheets/fo/glossary.xsl +1170 -0
  245. data/lib/stylesheets/fo/graphics.xsl +649 -0
  246. data/lib/stylesheets/fo/highlight.xsl +78 -0
  247. data/lib/stylesheets/fo/htmltbl.xsl +427 -0
  248. data/lib/stylesheets/fo/index.xsl +486 -0
  249. data/lib/stylesheets/fo/info.xsl +36 -0
  250. data/lib/stylesheets/fo/inline.xsl +1289 -0
  251. data/lib/stylesheets/fo/keywords.xsl +23 -0
  252. data/lib/stylesheets/fo/lists.xsl +1395 -0
  253. data/lib/stylesheets/fo/math.xsl +141 -0
  254. data/lib/stylesheets/fo/pagesetup.xsl +2571 -0
  255. data/lib/stylesheets/fo/param.xml +12445 -0
  256. data/lib/stylesheets/fo/param.xsl +969 -0
  257. data/lib/stylesheets/fo/passivetex.xsl +38 -0
  258. data/lib/stylesheets/fo/pdf2index +140 -0
  259. data/lib/stylesheets/fo/pi.xml +1002 -0
  260. data/lib/stylesheets/fo/pi.xsl +1093 -0
  261. data/lib/stylesheets/fo/profile-docbook.xsl +288 -0
  262. data/lib/stylesheets/fo/ptc.xsl +79 -0
  263. data/lib/stylesheets/fo/qandaset.xsl +397 -0
  264. data/lib/stylesheets/fo/refentry.xsl +640 -0
  265. data/lib/stylesheets/fo/sections.xsl +766 -0
  266. data/lib/stylesheets/fo/spaces.xsl +276 -0
  267. data/lib/stylesheets/fo/synop.xsl +1009 -0
  268. data/lib/stylesheets/fo/table.xml +135 -0
  269. data/lib/stylesheets/fo/table.xsl +1682 -0
  270. data/lib/stylesheets/fo/task.xsl +93 -0
  271. data/lib/stylesheets/fo/titlepage.templates.xml +1354 -0
  272. data/lib/stylesheets/fo/titlepage.templates.xsl +5186 -0
  273. data/lib/stylesheets/fo/titlepage.xsl +769 -0
  274. data/lib/stylesheets/fo/toc.xsl +334 -0
  275. data/lib/stylesheets/fo/verbatim.xsl +466 -0
  276. data/lib/stylesheets/fo/xep.xsl +182 -0
  277. data/lib/stylesheets/fo/xref.xsl +1539 -0
  278. data/lib/stylesheets/highlighting/README +16 -0
  279. data/lib/stylesheets/highlighting/c-hl.xml +101 -0
  280. data/lib/stylesheets/highlighting/common.xsl +121 -0
  281. data/lib/stylesheets/highlighting/cpp-hl.xml +150 -0
  282. data/lib/stylesheets/highlighting/csharp-hl.xml +187 -0
  283. data/lib/stylesheets/highlighting/delphi-hl.xml +200 -0
  284. data/lib/stylesheets/highlighting/ini-hl.xml +45 -0
  285. data/lib/stylesheets/highlighting/java-hl.xml +117 -0
  286. data/lib/stylesheets/highlighting/javascript-hl.xml +147 -0
  287. data/lib/stylesheets/highlighting/m2-hl.xml +90 -0
  288. data/lib/stylesheets/highlighting/myxml-hl.xml +116 -0
  289. data/lib/stylesheets/highlighting/perl-hl.xml +120 -0
  290. data/lib/stylesheets/highlighting/php-hl.xml +149 -0
  291. data/lib/stylesheets/highlighting/python-hl.xml +100 -0
  292. data/lib/stylesheets/highlighting/ruby-hl.xml +109 -0
  293. data/lib/stylesheets/highlighting/tcl-hl.xml +180 -0
  294. data/lib/stylesheets/highlighting/xslthl-config.xml +46 -0
  295. data/lib/stylesheets/html/admon.xsl +136 -0
  296. data/lib/stylesheets/html/annotations.xsl +171 -0
  297. data/lib/stylesheets/html/autoidx-kimber.xsl +166 -0
  298. data/lib/stylesheets/html/autoidx-kosek.xsl +121 -0
  299. data/lib/stylesheets/html/autoidx-ng.xsl +22 -0
  300. data/lib/stylesheets/html/autoidx.xsl +740 -0
  301. data/lib/stylesheets/html/autotoc.xsl +709 -0
  302. data/lib/stylesheets/html/biblio-iso690.xsl +1302 -0
  303. data/lib/stylesheets/html/biblio.xsl +1255 -0
  304. data/lib/stylesheets/html/block.xsl +540 -0
  305. data/lib/stylesheets/html/callout.xsl +202 -0
  306. data/lib/stylesheets/html/changebars.xsl +123 -0
  307. data/lib/stylesheets/html/chunk-changebars.xsl +100 -0
  308. data/lib/stylesheets/html/chunk-code.xsl +672 -0
  309. data/lib/stylesheets/html/chunk-common.xsl +1921 -0
  310. data/lib/stylesheets/html/chunk.xsl +53 -0
  311. data/lib/stylesheets/html/chunker.xsl +440 -0
  312. data/lib/stylesheets/html/chunkfast.xsl +73 -0
  313. data/lib/stylesheets/html/chunktoc.xsl +541 -0
  314. data/lib/stylesheets/html/component.xsl +427 -0
  315. data/lib/stylesheets/html/division.xsl +219 -0
  316. data/lib/stylesheets/html/docbook.css.xml +109 -0
  317. data/lib/stylesheets/html/docbook.xsl +468 -0
  318. data/lib/stylesheets/html/ebnf.xsl +330 -0
  319. data/lib/stylesheets/html/footnote.xsl +314 -0
  320. data/lib/stylesheets/html/formal.xsl +427 -0
  321. data/lib/stylesheets/html/glossary.xsl +493 -0
  322. data/lib/stylesheets/html/graphics.xsl +1516 -0
  323. data/lib/stylesheets/html/highlight.xsl +87 -0
  324. data/lib/stylesheets/html/html-rtf.xsl +336 -0
  325. data/lib/stylesheets/html/html.xsl +614 -0
  326. data/lib/stylesheets/html/htmltbl.xsl +137 -0
  327. data/lib/stylesheets/html/index.xsl +290 -0
  328. data/lib/stylesheets/html/info.xsl +45 -0
  329. data/lib/stylesheets/html/inline.xsl +1491 -0
  330. data/lib/stylesheets/html/keywords.xsl +37 -0
  331. data/lib/stylesheets/html/lists.xsl +1185 -0
  332. data/lib/stylesheets/html/maketoc.xsl +87 -0
  333. data/lib/stylesheets/html/manifest.xsl +23 -0
  334. data/lib/stylesheets/html/math.xsl +271 -0
  335. data/lib/stylesheets/html/oldchunker.xsl +203 -0
  336. data/lib/stylesheets/html/onechunk.xsl +38 -0
  337. data/lib/stylesheets/html/param.xml +10905 -0
  338. data/lib/stylesheets/html/param.xsl +436 -0
  339. data/lib/stylesheets/html/pi.xml +1113 -0
  340. data/lib/stylesheets/html/pi.xsl +1264 -0
  341. data/lib/stylesheets/html/profile-chunk-code.xsl +614 -0
  342. data/lib/stylesheets/html/profile-chunk.xsl +53 -0
  343. data/lib/stylesheets/html/profile-docbook.xsl +412 -0
  344. data/lib/stylesheets/html/profile-onechunk.xsl +38 -0
  345. data/lib/stylesheets/html/qandaset.xsl +438 -0
  346. data/lib/stylesheets/html/refentry.xsl +301 -0
  347. data/lib/stylesheets/html/sections.xsl +617 -0
  348. data/lib/stylesheets/html/synop.xsl +1556 -0
  349. data/lib/stylesheets/html/table.xsl +1201 -0
  350. data/lib/stylesheets/html/task.xsl +78 -0
  351. data/lib/stylesheets/html/titlepage.templates.xml +708 -0
  352. data/lib/stylesheets/html/titlepage.templates.xsl +3818 -0
  353. data/lib/stylesheets/html/titlepage.xsl +1049 -0
  354. data/lib/stylesheets/html/toc.xsl +352 -0
  355. data/lib/stylesheets/html/verbatim.xsl +411 -0
  356. data/lib/stylesheets/html/xref.xsl +1378 -0
  357. data/lib/stylesheets/htmlhelp/htmlhelp-common.xsl +1108 -0
  358. data/lib/stylesheets/htmlhelp/htmlhelp.xsl +23 -0
  359. data/lib/stylesheets/htmlhelp/profile-htmlhelp-common.xsl +1082 -0
  360. data/lib/stylesheets/htmlhelp/profile-htmlhelp.xsl +23 -0
  361. data/lib/stylesheets/images/annot-close.png +0 -0
  362. data/lib/stylesheets/images/annot-open.png +0 -0
  363. data/lib/stylesheets/images/blank.png +0 -0
  364. data/lib/stylesheets/images/callouts/1.gif +0 -0
  365. data/lib/stylesheets/images/callouts/1.png +0 -0
  366. data/lib/stylesheets/images/callouts/1.svg +15 -0
  367. data/lib/stylesheets/images/callouts/10.gif +0 -0
  368. data/lib/stylesheets/images/callouts/10.png +0 -0
  369. data/lib/stylesheets/images/callouts/10.svg +18 -0
  370. data/lib/stylesheets/images/callouts/11.gif +0 -0
  371. data/lib/stylesheets/images/callouts/11.png +0 -0
  372. data/lib/stylesheets/images/callouts/11.svg +16 -0
  373. data/lib/stylesheets/images/callouts/12.gif +0 -0
  374. data/lib/stylesheets/images/callouts/12.png +0 -0
  375. data/lib/stylesheets/images/callouts/12.svg +18 -0
  376. data/lib/stylesheets/images/callouts/13.gif +0 -0
  377. data/lib/stylesheets/images/callouts/13.png +0 -0
  378. data/lib/stylesheets/images/callouts/13.svg +20 -0
  379. data/lib/stylesheets/images/callouts/14.gif +0 -0
  380. data/lib/stylesheets/images/callouts/14.png +0 -0
  381. data/lib/stylesheets/images/callouts/14.svg +17 -0
  382. data/lib/stylesheets/images/callouts/15.gif +0 -0
  383. data/lib/stylesheets/images/callouts/15.png +0 -0
  384. data/lib/stylesheets/images/callouts/15.svg +19 -0
  385. data/lib/stylesheets/images/callouts/16.svg +20 -0
  386. data/lib/stylesheets/images/callouts/17.svg +17 -0
  387. data/lib/stylesheets/images/callouts/18.svg +21 -0
  388. data/lib/stylesheets/images/callouts/19.svg +20 -0
  389. data/lib/stylesheets/images/callouts/2.gif +0 -0
  390. data/lib/stylesheets/images/callouts/2.png +0 -0
  391. data/lib/stylesheets/images/callouts/2.svg +17 -0
  392. data/lib/stylesheets/images/callouts/20.svg +20 -0
  393. data/lib/stylesheets/images/callouts/21.svg +18 -0
  394. data/lib/stylesheets/images/callouts/22.svg +20 -0
  395. data/lib/stylesheets/images/callouts/23.svg +22 -0
  396. data/lib/stylesheets/images/callouts/24.svg +19 -0
  397. data/lib/stylesheets/images/callouts/25.svg +21 -0
  398. data/lib/stylesheets/images/callouts/26.svg +22 -0
  399. data/lib/stylesheets/images/callouts/27.svg +19 -0
  400. data/lib/stylesheets/images/callouts/28.svg +23 -0
  401. data/lib/stylesheets/images/callouts/29.svg +22 -0
  402. data/lib/stylesheets/images/callouts/3.gif +0 -0
  403. data/lib/stylesheets/images/callouts/3.png +0 -0
  404. data/lib/stylesheets/images/callouts/3.svg +19 -0
  405. data/lib/stylesheets/images/callouts/30.svg +22 -0
  406. data/lib/stylesheets/images/callouts/4.gif +0 -0
  407. data/lib/stylesheets/images/callouts/4.png +0 -0
  408. data/lib/stylesheets/images/callouts/4.svg +16 -0
  409. data/lib/stylesheets/images/callouts/5.gif +0 -0
  410. data/lib/stylesheets/images/callouts/5.png +0 -0
  411. data/lib/stylesheets/images/callouts/5.svg +18 -0
  412. data/lib/stylesheets/images/callouts/6.gif +0 -0
  413. data/lib/stylesheets/images/callouts/6.png +0 -0
  414. data/lib/stylesheets/images/callouts/6.svg +19 -0
  415. data/lib/stylesheets/images/callouts/7.gif +0 -0
  416. data/lib/stylesheets/images/callouts/7.png +0 -0
  417. data/lib/stylesheets/images/callouts/7.svg +16 -0
  418. data/lib/stylesheets/images/callouts/8.gif +0 -0
  419. data/lib/stylesheets/images/callouts/8.png +0 -0
  420. data/lib/stylesheets/images/callouts/8.svg +20 -0
  421. data/lib/stylesheets/images/callouts/9.gif +0 -0
  422. data/lib/stylesheets/images/callouts/9.png +0 -0
  423. data/lib/stylesheets/images/callouts/9.svg +19 -0
  424. data/lib/stylesheets/images/caution.gif +0 -0
  425. data/lib/stylesheets/images/caution.png +0 -0
  426. data/lib/stylesheets/images/caution.svg +25 -0
  427. data/lib/stylesheets/images/caution.tif +0 -0
  428. data/lib/stylesheets/images/colorsvg/caution.svg +141 -0
  429. data/lib/stylesheets/images/colorsvg/home.svg +498 -0
  430. data/lib/stylesheets/images/colorsvg/important.svg +239 -0
  431. data/lib/stylesheets/images/colorsvg/next.svg +338 -0
  432. data/lib/stylesheets/images/colorsvg/note.svg +200 -0
  433. data/lib/stylesheets/images/colorsvg/prev.svg +338 -0
  434. data/lib/stylesheets/images/colorsvg/tip.svg +367 -0
  435. data/lib/stylesheets/images/colorsvg/up.svg +338 -0
  436. data/lib/stylesheets/images/colorsvg/warning.svg +232 -0
  437. data/lib/stylesheets/images/draft.png +0 -0
  438. data/lib/stylesheets/images/home.gif +0 -0
  439. data/lib/stylesheets/images/home.png +0 -0
  440. data/lib/stylesheets/images/home.svg +26 -0
  441. data/lib/stylesheets/images/important.gif +0 -0
  442. data/lib/stylesheets/images/important.png +0 -0
  443. data/lib/stylesheets/images/important.svg +25 -0
  444. data/lib/stylesheets/images/important.tif +0 -0
  445. data/lib/stylesheets/images/next.gif +0 -0
  446. data/lib/stylesheets/images/next.png +0 -0
  447. data/lib/stylesheets/images/next.svg +19 -0
  448. data/lib/stylesheets/images/note.gif +0 -0
  449. data/lib/stylesheets/images/note.png +0 -0
  450. data/lib/stylesheets/images/note.svg +33 -0
  451. data/lib/stylesheets/images/note.tif +0 -0
  452. data/lib/stylesheets/images/prev.gif +0 -0
  453. data/lib/stylesheets/images/prev.png +0 -0
  454. data/lib/stylesheets/images/prev.svg +19 -0
  455. data/lib/stylesheets/images/tip.gif +0 -0
  456. data/lib/stylesheets/images/tip.png +0 -0
  457. data/lib/stylesheets/images/tip.svg +31 -0
  458. data/lib/stylesheets/images/tip.tif +0 -0
  459. data/lib/stylesheets/images/toc-blank.png +0 -0
  460. data/lib/stylesheets/images/toc-minus.png +0 -0
  461. data/lib/stylesheets/images/toc-plus.png +0 -0
  462. data/lib/stylesheets/images/up.gif +0 -0
  463. data/lib/stylesheets/images/up.png +0 -0
  464. data/lib/stylesheets/images/up.svg +19 -0
  465. data/lib/stylesheets/images/warning.gif +0 -0
  466. data/lib/stylesheets/images/warning.png +0 -0
  467. data/lib/stylesheets/images/warning.svg +23 -0
  468. data/lib/stylesheets/images/warning.tif +0 -0
  469. data/lib/stylesheets/install.sh +977 -0
  470. data/lib/stylesheets/javahelp/javahelp.xsl +613 -0
  471. data/lib/stylesheets/javahelp/profile-javahelp.xsl +548 -0
  472. data/lib/stylesheets/lib/lib.xsl +482 -0
  473. data/lib/stylesheets/manpages/ChangeLog.20020917 +195 -0
  474. data/lib/stylesheets/manpages/block.xsl +412 -0
  475. data/lib/stylesheets/manpages/charmap.groff.xsl +6014 -0
  476. data/lib/stylesheets/manpages/docbook.xsl +302 -0
  477. data/lib/stylesheets/manpages/endnotes.xsl +587 -0
  478. data/lib/stylesheets/manpages/html-synop.xsl +1569 -0
  479. data/lib/stylesheets/manpages/info.xsl +801 -0
  480. data/lib/stylesheets/manpages/inline.xsl +221 -0
  481. data/lib/stylesheets/manpages/lists.xsl +606 -0
  482. data/lib/stylesheets/manpages/other.xsl +889 -0
  483. data/lib/stylesheets/manpages/param.xml +3220 -0
  484. data/lib/stylesheets/manpages/param.xsl +195 -0
  485. data/lib/stylesheets/manpages/pi.xml +70 -0
  486. data/lib/stylesheets/manpages/pi.xsl +80 -0
  487. data/lib/stylesheets/manpages/profile-docbook.xsl +282 -0
  488. data/lib/stylesheets/manpages/refentry.xsl +321 -0
  489. data/lib/stylesheets/manpages/synop.xsl +433 -0
  490. data/lib/stylesheets/manpages/table.xsl +633 -0
  491. data/lib/stylesheets/manpages/utility.xsl +556 -0
  492. data/lib/stylesheets/params/abstract.notitle.enabled.xml +22 -0
  493. data/lib/stylesheets/params/abstract.properties.xml +32 -0
  494. data/lib/stylesheets/params/abstract.title.properties.xml +39 -0
  495. data/lib/stylesheets/params/active.toc.xml +29 -0
  496. data/lib/stylesheets/params/ade.extensions.xml +32 -0
  497. data/lib/stylesheets/params/admon.graphics.extension.xml +27 -0
  498. data/lib/stylesheets/params/admon.graphics.path.xml +27 -0
  499. data/lib/stylesheets/params/admon.graphics.xml +29 -0
  500. data/lib/stylesheets/params/admon.style.xml +31 -0
  501. data/lib/stylesheets/params/admon.textlabel.xml +32 -0
  502. data/lib/stylesheets/params/admonition.properties.xml +25 -0
  503. data/lib/stylesheets/params/admonition.title.properties.xml +32 -0
  504. data/lib/stylesheets/params/alignment.xml +41 -0
  505. data/lib/stylesheets/params/annotate.toc.xml +28 -0
  506. data/lib/stylesheets/params/annotation.css.xml +71 -0
  507. data/lib/stylesheets/params/annotation.graphic.close.xml +31 -0
  508. data/lib/stylesheets/params/annotation.graphic.open.xml +28 -0
  509. data/lib/stylesheets/params/annotation.js.xml +33 -0
  510. data/lib/stylesheets/params/annotation.support.xml +29 -0
  511. data/lib/stylesheets/params/appendix.autolabel.xml +73 -0
  512. data/lib/stylesheets/params/arbortext.extensions.xml +30 -0
  513. data/lib/stylesheets/params/article.appendix.title.properties.xml +33 -0
  514. data/lib/stylesheets/params/author.othername.in.middle.xml +31 -0
  515. data/lib/stylesheets/params/autolayout-file.xml +29 -0
  516. data/lib/stylesheets/params/autotoc.label.in.hyperlink.xml +29 -0
  517. data/lib/stylesheets/params/autotoc.label.separator.xml +27 -0
  518. data/lib/stylesheets/params/axf.extensions.xml +33 -0
  519. data/lib/stylesheets/params/banner.before.navigation.xml +25 -0
  520. data/lib/stylesheets/params/base.dir.xml +29 -0
  521. data/lib/stylesheets/params/biblioentry.item.separator.xml +26 -0
  522. data/lib/stylesheets/params/biblioentry.properties.xml +28 -0
  523. data/lib/stylesheets/params/bibliography.collection.xml +104 -0
  524. data/lib/stylesheets/params/bibliography.numbered.xml +27 -0
  525. data/lib/stylesheets/params/bibliography.style.xml +35 -0
  526. data/lib/stylesheets/params/blockquote.properties.xml +34 -0
  527. data/lib/stylesheets/params/blurb.on.titlepage.enabled.xml +31 -0
  528. data/lib/stylesheets/params/body.attributes.xml +31 -0
  529. data/lib/stylesheets/params/body.bg.color.xml +28 -0
  530. data/lib/stylesheets/params/body.end.indent.xml +37 -0
  531. data/lib/stylesheets/params/body.font.family.xml +32 -0
  532. data/lib/stylesheets/params/body.font.master.xml +30 -0
  533. data/lib/stylesheets/params/body.font.size.xml +31 -0
  534. data/lib/stylesheets/params/body.margin.bottom.xml +29 -0
  535. data/lib/stylesheets/params/body.margin.top.xml +28 -0
  536. data/lib/stylesheets/params/body.start.indent.xml +64 -0
  537. data/lib/stylesheets/params/bookmarks.collapse.xml +31 -0
  538. data/lib/stylesheets/params/bridgehead.in.toc.xml +28 -0
  539. data/lib/stylesheets/params/bullet.image.xml +28 -0
  540. data/lib/stylesheets/params/callout.defaultcolumn.xml +30 -0
  541. data/lib/stylesheets/params/callout.graphics.extension.xml +33 -0
  542. data/lib/stylesheets/params/callout.graphics.number.limit.xml +34 -0
  543. data/lib/stylesheets/params/callout.graphics.path.xml +31 -0
  544. data/lib/stylesheets/params/callout.graphics.xml +30 -0
  545. data/lib/stylesheets/params/callout.icon.size.xml +28 -0
  546. data/lib/stylesheets/params/callout.list.table.xml +32 -0
  547. data/lib/stylesheets/params/callout.unicode.font.xml +29 -0
  548. data/lib/stylesheets/params/callout.unicode.number.limit.xml +35 -0
  549. data/lib/stylesheets/params/callout.unicode.start.character.xml +33 -0
  550. data/lib/stylesheets/params/callout.unicode.xml +26 -0
  551. data/lib/stylesheets/params/callouts.extension.xml +30 -0
  552. data/lib/stylesheets/params/chapter.autolabel.xml +71 -0
  553. data/lib/stylesheets/params/chunk.append.xml +30 -0
  554. data/lib/stylesheets/params/chunk.first.sections.xml +31 -0
  555. data/lib/stylesheets/params/chunk.quietly.xml +30 -0
  556. data/lib/stylesheets/params/chunk.section.depth.xml +27 -0
  557. data/lib/stylesheets/params/chunk.sections.xml +30 -0
  558. data/lib/stylesheets/params/chunk.separate.lots.xml +36 -0
  559. data/lib/stylesheets/params/chunk.toc.xml +30 -0
  560. data/lib/stylesheets/params/chunk.tocs.and.lots.has.title.xml +28 -0
  561. data/lib/stylesheets/params/chunk.tocs.and.lots.xml +32 -0
  562. data/lib/stylesheets/params/chunker.output.cdata-section-elements.xml +30 -0
  563. data/lib/stylesheets/params/chunker.output.doctype-public.xml +31 -0
  564. data/lib/stylesheets/params/chunker.output.doctype-system.xml +31 -0
  565. data/lib/stylesheets/params/chunker.output.encoding.xml +31 -0
  566. data/lib/stylesheets/params/chunker.output.indent.xml +30 -0
  567. data/lib/stylesheets/params/chunker.output.media-type.xml +35 -0
  568. data/lib/stylesheets/params/chunker.output.method.xml +32 -0
  569. data/lib/stylesheets/params/chunker.output.omit-xml-declaration.xml +30 -0
  570. data/lib/stylesheets/params/chunker.output.standalone.xml +31 -0
  571. data/lib/stylesheets/params/citerefentry.link.xml +29 -0
  572. data/lib/stylesheets/params/collect.xref.targets.xml +33 -0
  573. data/lib/stylesheets/params/column.count.back.xml +27 -0
  574. data/lib/stylesheets/params/column.count.body.xml +27 -0
  575. data/lib/stylesheets/params/column.count.front.xml +27 -0
  576. data/lib/stylesheets/params/column.count.index.xml +27 -0
  577. data/lib/stylesheets/params/column.count.lot.xml +28 -0
  578. data/lib/stylesheets/params/column.count.titlepage.xml +27 -0
  579. data/lib/stylesheets/params/column.gap.back.xml +28 -0
  580. data/lib/stylesheets/params/column.gap.body.xml +28 -0
  581. data/lib/stylesheets/params/column.gap.front.xml +28 -0
  582. data/lib/stylesheets/params/column.gap.index.xml +28 -0
  583. data/lib/stylesheets/params/column.gap.lot.xml +28 -0
  584. data/lib/stylesheets/params/column.gap.titlepage.xml +29 -0
  585. data/lib/stylesheets/params/compact.list.item.spacing.xml +28 -0
  586. data/lib/stylesheets/params/component.label.includes.part.label.xml +39 -0
  587. data/lib/stylesheets/params/component.title.properties.xml +40 -0
  588. data/lib/stylesheets/params/component.titlepage.properties.xml +33 -0
  589. data/lib/stylesheets/params/contrib.inline.enabled.xml +26 -0
  590. data/lib/stylesheets/params/crop.mark.bleed.xml +28 -0
  591. data/lib/stylesheets/params/crop.mark.offset.xml +28 -0
  592. data/lib/stylesheets/params/crop.mark.width.xml +28 -0
  593. data/lib/stylesheets/params/crop.marks.xml +28 -0
  594. data/lib/stylesheets/params/css.decoration.xml +33 -0
  595. data/lib/stylesheets/params/css.stylesheet.dir.xml +33 -0
  596. data/lib/stylesheets/params/css.stylesheet.xml +29 -0
  597. data/lib/stylesheets/params/current.docid.xml +27 -0
  598. data/lib/stylesheets/params/currentpage.marker.xml +25 -0
  599. data/lib/stylesheets/params/custom.css.source.xml +119 -0
  600. data/lib/stylesheets/params/default.float.class.xml +34 -0
  601. data/lib/stylesheets/params/default.image.width.xml +30 -0
  602. data/lib/stylesheets/params/default.table.frame.xml +28 -0
  603. data/lib/stylesheets/params/default.table.rules.xml +76 -0
  604. data/lib/stylesheets/params/default.table.width.xml +26 -0
  605. data/lib/stylesheets/params/default.units.xml +37 -0
  606. data/lib/stylesheets/params/dingbat.font.family.xml +33 -0
  607. data/lib/stylesheets/params/docbook.css.link.xml +42 -0
  608. data/lib/stylesheets/params/docbook.css.source.xml +83 -0
  609. data/lib/stylesheets/params/double.sided.xml +31 -0
  610. data/lib/stylesheets/params/draft.mode.xml +36 -0
  611. data/lib/stylesheets/params/draft.watermark.image.xml +27 -0
  612. data/lib/stylesheets/params/dry-run.xml +27 -0
  613. data/lib/stylesheets/params/dynamic.toc.xml +29 -0
  614. data/lib/stylesheets/params/ebnf.assignment.xml +39 -0
  615. data/lib/stylesheets/params/ebnf.statement.terminator.xml +32 -0
  616. data/lib/stylesheets/params/ebnf.table.bgcolor.xml +30 -0
  617. data/lib/stylesheets/params/ebnf.table.border.xml +26 -0
  618. data/lib/stylesheets/params/eclipse.autolabel.xml +28 -0
  619. data/lib/stylesheets/params/eclipse.plugin.id.xml +28 -0
  620. data/lib/stylesheets/params/eclipse.plugin.name.xml +27 -0
  621. data/lib/stylesheets/params/eclipse.plugin.provider.xml +27 -0
  622. data/lib/stylesheets/params/editedby.enabled.xml +27 -0
  623. data/lib/stylesheets/params/email.delimiters.enabled.xml +34 -0
  624. data/lib/stylesheets/params/email.mailto.enabled.xml +29 -0
  625. data/lib/stylesheets/params/emphasis.propagates.style.xml +26 -0
  626. data/lib/stylesheets/params/entry.propagates.style.xml +30 -0
  627. data/lib/stylesheets/params/epub.autolabel.xml +28 -0
  628. data/lib/stylesheets/params/equation.number.properties.xml +28 -0
  629. data/lib/stylesheets/params/equation.properties.xml +27 -0
  630. data/lib/stylesheets/params/example.properties.xml +27 -0
  631. data/lib/stylesheets/params/exsl.node.set.available.xml +44 -0
  632. data/lib/stylesheets/params/feedback.href.xml +28 -0
  633. data/lib/stylesheets/params/feedback.link.text.xml +28 -0
  634. data/lib/stylesheets/params/feedback.with.ids.xml +27 -0
  635. data/lib/stylesheets/params/figure.properties.xml +27 -0
  636. data/lib/stylesheets/params/filename-prefix.xml +28 -0
  637. data/lib/stylesheets/params/firstterm.only.link.xml +29 -0
  638. data/lib/stylesheets/params/foil.properties.xml +37 -0
  639. data/lib/stylesheets/params/foil.subtitle.properties.xml +36 -0
  640. data/lib/stylesheets/params/foil.title.master.xml +29 -0
  641. data/lib/stylesheets/params/foil.title.size.xml +32 -0
  642. data/lib/stylesheets/params/foilgroup.properties.xml +31 -0
  643. data/lib/stylesheets/params/foilgroup.toc.xml +29 -0
  644. data/lib/stylesheets/params/footer.column.widths.xml +80 -0
  645. data/lib/stylesheets/params/footer.content.properties.xml +34 -0
  646. data/lib/stylesheets/params/footer.hr.xml +26 -0
  647. data/lib/stylesheets/params/footer.rule.xml +27 -0
  648. data/lib/stylesheets/params/footer.table.height.xml +32 -0
  649. data/lib/stylesheets/params/footer.table.properties.xml +30 -0
  650. data/lib/stylesheets/params/footers.on.blank.pages.xml +27 -0
  651. data/lib/stylesheets/params/footnote.font.size.xml +28 -0
  652. data/lib/stylesheets/params/footnote.mark.properties.xml +41 -0
  653. data/lib/stylesheets/params/footnote.number.format.xml +33 -0
  654. data/lib/stylesheets/params/footnote.number.symbols.xml +39 -0
  655. data/lib/stylesheets/params/footnote.properties.xml +43 -0
  656. data/lib/stylesheets/params/footnote.sep.leader.properties.xml +39 -0
  657. data/lib/stylesheets/params/fop.extensions.xml +36 -0
  658. data/lib/stylesheets/params/fop1.extensions.xml +34 -0
  659. data/lib/stylesheets/params/formal.object.properties.xml +36 -0
  660. data/lib/stylesheets/params/formal.procedures.xml +28 -0
  661. data/lib/stylesheets/params/formal.title.placement.xml +41 -0
  662. data/lib/stylesheets/params/formal.title.properties.xml +34 -0
  663. data/lib/stylesheets/params/funcsynopsis.decoration.xml +30 -0
  664. data/lib/stylesheets/params/funcsynopsis.style.xml +31 -0
  665. data/lib/stylesheets/params/function.parens.xml +29 -0
  666. data/lib/stylesheets/params/generate.css.header.xml +40 -0
  667. data/lib/stylesheets/params/generate.id.attributes.xml +59 -0
  668. data/lib/stylesheets/params/generate.index.xml +25 -0
  669. data/lib/stylesheets/params/generate.legalnotice.link.xml +72 -0
  670. data/lib/stylesheets/params/generate.manifest.xml +27 -0
  671. data/lib/stylesheets/params/generate.meta.abstract.xml +29 -0
  672. data/lib/stylesheets/params/generate.revhistory.link.xml +50 -0
  673. data/lib/stylesheets/params/generate.section.toc.level.xml +35 -0
  674. data/lib/stylesheets/params/generate.toc.xml +108 -0
  675. data/lib/stylesheets/params/glossary.as.blocks.xml +38 -0
  676. data/lib/stylesheets/params/glossary.collection.xml +252 -0
  677. data/lib/stylesheets/params/glossary.sort.xml +32 -0
  678. data/lib/stylesheets/params/glossdef.block.properties.xml +32 -0
  679. data/lib/stylesheets/params/glossdef.list.properties.xml +30 -0
  680. data/lib/stylesheets/params/glossentry.list.item.properties.xml +32 -0
  681. data/lib/stylesheets/params/glossentry.show.acronym.xml +37 -0
  682. data/lib/stylesheets/params/glosslist.as.blocks.xml +27 -0
  683. data/lib/stylesheets/params/glossterm.auto.link.xml +33 -0
  684. data/lib/stylesheets/params/glossterm.block.properties.xml +35 -0
  685. data/lib/stylesheets/params/glossterm.list.properties.xml +30 -0
  686. data/lib/stylesheets/params/glossterm.separation.xml +31 -0
  687. data/lib/stylesheets/params/glossterm.width.xml +28 -0
  688. data/lib/stylesheets/params/graphic.default.extension.xml +29 -0
  689. data/lib/stylesheets/params/graphical.admonition.properties.xml +42 -0
  690. data/lib/stylesheets/params/graphics.dir.xml +33 -0
  691. data/lib/stylesheets/params/graphicsize.extension.xml +30 -0
  692. data/lib/stylesheets/params/graphicsize.use.img.src.path.xml +30 -0
  693. data/lib/stylesheets/params/header.column.widths.xml +80 -0
  694. data/lib/stylesheets/params/header.content.properties.xml +34 -0
  695. data/lib/stylesheets/params/header.hr.xml +26 -0
  696. data/lib/stylesheets/params/header.rule.xml +27 -0
  697. data/lib/stylesheets/params/header.table.height.xml +32 -0
  698. data/lib/stylesheets/params/header.table.properties.xml +30 -0
  699. data/lib/stylesheets/params/headers.on.blank.pages.xml +27 -0
  700. data/lib/stylesheets/params/hidetoc.image.xml +29 -0
  701. data/lib/stylesheets/params/highlight.default.language.xml +27 -0
  702. data/lib/stylesheets/params/highlight.source.xml +82 -0
  703. data/lib/stylesheets/params/highlight.xslthl.config.xml +33 -0
  704. data/lib/stylesheets/params/home.image.xml +27 -0
  705. data/lib/stylesheets/params/html.append.xml +30 -0
  706. data/lib/stylesheets/params/html.base.xml +30 -0
  707. data/lib/stylesheets/params/html.cellpadding.xml +29 -0
  708. data/lib/stylesheets/params/html.cellspacing.xml +29 -0
  709. data/lib/stylesheets/params/html.cleanup.xml +34 -0
  710. data/lib/stylesheets/params/html.ext.xml +29 -0
  711. data/lib/stylesheets/params/html.extra.head.links.xml +31 -0
  712. data/lib/stylesheets/params/html.head.legalnotice.link.multiple.xml +44 -0
  713. data/lib/stylesheets/params/html.head.legalnotice.link.types.xml +75 -0
  714. data/lib/stylesheets/params/html.longdesc.link.xml +39 -0
  715. data/lib/stylesheets/params/html.longdesc.xml +28 -0
  716. data/lib/stylesheets/params/html.stylesheet.type.xml +26 -0
  717. data/lib/stylesheets/params/html.stylesheet.xml +36 -0
  718. data/lib/stylesheets/params/htmlhelp.alias.file.xml +27 -0
  719. data/lib/stylesheets/params/htmlhelp.autolabel.xml +28 -0
  720. data/lib/stylesheets/params/htmlhelp.button.back.xml +27 -0
  721. data/lib/stylesheets/params/htmlhelp.button.forward.xml +27 -0
  722. data/lib/stylesheets/params/htmlhelp.button.hideshow.xml +27 -0
  723. data/lib/stylesheets/params/htmlhelp.button.home.url.xml +27 -0
  724. data/lib/stylesheets/params/htmlhelp.button.home.xml +27 -0
  725. data/lib/stylesheets/params/htmlhelp.button.jump1.title.xml +27 -0
  726. data/lib/stylesheets/params/htmlhelp.button.jump1.url.xml +27 -0
  727. data/lib/stylesheets/params/htmlhelp.button.jump1.xml +23 -0
  728. data/lib/stylesheets/params/htmlhelp.button.jump2.title.xml +27 -0
  729. data/lib/stylesheets/params/htmlhelp.button.jump2.url.xml +27 -0
  730. data/lib/stylesheets/params/htmlhelp.button.jump2.xml +27 -0
  731. data/lib/stylesheets/params/htmlhelp.button.locate.xml +28 -0
  732. data/lib/stylesheets/params/htmlhelp.button.next.xml +27 -0
  733. data/lib/stylesheets/params/htmlhelp.button.options.xml +28 -0
  734. data/lib/stylesheets/params/htmlhelp.button.prev.xml +28 -0
  735. data/lib/stylesheets/params/htmlhelp.button.print.xml +28 -0
  736. data/lib/stylesheets/params/htmlhelp.button.refresh.xml +27 -0
  737. data/lib/stylesheets/params/htmlhelp.button.stop.xml +28 -0
  738. data/lib/stylesheets/params/htmlhelp.button.zoom.xml +28 -0
  739. data/lib/stylesheets/params/htmlhelp.chm.xml +27 -0
  740. data/lib/stylesheets/params/htmlhelp.default.topic.xml +37 -0
  741. data/lib/stylesheets/params/htmlhelp.display.progress.xml +28 -0
  742. data/lib/stylesheets/params/htmlhelp.encoding.xml +28 -0
  743. data/lib/stylesheets/params/htmlhelp.enhanced.decompilation.xml +27 -0
  744. data/lib/stylesheets/params/htmlhelp.enumerate.images.xml +28 -0
  745. data/lib/stylesheets/params/htmlhelp.force.map.and.alias.xml +26 -0
  746. data/lib/stylesheets/params/htmlhelp.hhc.binary.xml +29 -0
  747. data/lib/stylesheets/params/htmlhelp.hhc.folders.instead.books.xml +31 -0
  748. data/lib/stylesheets/params/htmlhelp.hhc.section.depth.xml +27 -0
  749. data/lib/stylesheets/params/htmlhelp.hhc.show.root.xml +29 -0
  750. data/lib/stylesheets/params/htmlhelp.hhc.width.xml +28 -0
  751. data/lib/stylesheets/params/htmlhelp.hhc.xml +27 -0
  752. data/lib/stylesheets/params/htmlhelp.hhk.xml +27 -0
  753. data/lib/stylesheets/params/htmlhelp.hhp.tail.xml +28 -0
  754. data/lib/stylesheets/params/htmlhelp.hhp.window.xml +28 -0
  755. data/lib/stylesheets/params/htmlhelp.hhp.windows.xml +29 -0
  756. data/lib/stylesheets/params/htmlhelp.hhp.xml +28 -0
  757. data/lib/stylesheets/params/htmlhelp.map.file.xml +25 -0
  758. data/lib/stylesheets/params/htmlhelp.only.xml +32 -0
  759. data/lib/stylesheets/params/htmlhelp.remember.window.position.xml +27 -0
  760. data/lib/stylesheets/params/htmlhelp.show.advanced.search.xml +28 -0
  761. data/lib/stylesheets/params/htmlhelp.show.favorities.xml +28 -0
  762. data/lib/stylesheets/params/htmlhelp.show.menu.xml +28 -0
  763. data/lib/stylesheets/params/htmlhelp.show.toolbar.text.xml +28 -0
  764. data/lib/stylesheets/params/htmlhelp.title.xml +28 -0
  765. data/lib/stylesheets/params/htmlhelp.use.hhk.xml +28 -0
  766. data/lib/stylesheets/params/htmlhelp.window.geometry.xml +30 -0
  767. data/lib/stylesheets/params/hyphenate.verbatim.characters.xml +30 -0
  768. data/lib/stylesheets/params/hyphenate.verbatim.xml +45 -0
  769. data/lib/stylesheets/params/hyphenate.xml +29 -0
  770. data/lib/stylesheets/params/id.warnings.xml +25 -0
  771. data/lib/stylesheets/params/ignore.image.scaling.xml +28 -0
  772. data/lib/stylesheets/params/img.src.path.xml +40 -0
  773. data/lib/stylesheets/params/index.div.title.properties.xml +39 -0
  774. data/lib/stylesheets/params/index.entry.properties.xml +33 -0
  775. data/lib/stylesheets/params/index.links.to.section.xml +76 -0
  776. data/lib/stylesheets/params/index.method.xml +162 -0
  777. data/lib/stylesheets/params/index.number.separator.xml +54 -0
  778. data/lib/stylesheets/params/index.on.role.xml +48 -0
  779. data/lib/stylesheets/params/index.on.type.xml +52 -0
  780. data/lib/stylesheets/params/index.page.number.properties.xml +31 -0
  781. data/lib/stylesheets/params/index.prefer.titleabbrev.xml +29 -0
  782. data/lib/stylesheets/params/index.preferred.page.properties.xml +32 -0
  783. data/lib/stylesheets/params/index.range.separator.xml +57 -0
  784. data/lib/stylesheets/params/index.term.separator.xml +54 -0
  785. data/lib/stylesheets/params/informal.object.properties.xml +29 -0
  786. data/lib/stylesheets/params/informalequation.properties.xml +27 -0
  787. data/lib/stylesheets/params/informalexample.properties.xml +27 -0
  788. data/lib/stylesheets/params/informalfigure.properties.xml +27 -0
  789. data/lib/stylesheets/params/informaltable.properties.xml +32 -0
  790. data/lib/stylesheets/params/inherit.keywords.xml +31 -0
  791. data/lib/stylesheets/params/insert.link.page.number.xml +69 -0
  792. data/lib/stylesheets/params/insert.olink.page.number.xml +83 -0
  793. data/lib/stylesheets/params/insert.olink.pdf.frag.xml +68 -0
  794. data/lib/stylesheets/params/insert.xref.page.number.xml +60 -0
  795. data/lib/stylesheets/params/itemizedlist.label.properties.xml +26 -0
  796. data/lib/stylesheets/params/itemizedlist.label.width.xml +28 -0
  797. data/lib/stylesheets/params/itemizedlist.properties.xml +23 -0
  798. data/lib/stylesheets/params/javahelp.encoding.xml +31 -0
  799. data/lib/stylesheets/params/keep.relative.image.uris.xml +34 -0
  800. data/lib/stylesheets/params/keyboard.nav.xml +29 -0
  801. data/lib/stylesheets/params/l10n.gentext.default.language.xml +30 -0
  802. data/lib/stylesheets/params/l10n.gentext.language.xml +33 -0
  803. data/lib/stylesheets/params/l10n.gentext.use.xref.language.xml +53 -0
  804. data/lib/stylesheets/params/l10n.lang.value.rfc.compliant.xml +57 -0
  805. data/lib/stylesheets/params/label.from.part.xml +38 -0
  806. data/lib/stylesheets/params/line-height.xml +27 -0
  807. data/lib/stylesheets/params/linenumbering.everyNth.xml +29 -0
  808. data/lib/stylesheets/params/linenumbering.extension.xml +30 -0
  809. data/lib/stylesheets/params/linenumbering.separator.xml +30 -0
  810. data/lib/stylesheets/params/linenumbering.width.xml +29 -0
  811. data/lib/stylesheets/params/link.mailto.url.xml +29 -0
  812. data/lib/stylesheets/params/list.block.properties.xml +25 -0
  813. data/lib/stylesheets/params/list.block.spacing.xml +29 -0
  814. data/lib/stylesheets/params/list.item.spacing.xml +26 -0
  815. data/lib/stylesheets/params/make.clean.html.xml +51 -0
  816. data/lib/stylesheets/params/make.graphic.viewport.xml +35 -0
  817. data/lib/stylesheets/params/make.index.markup.xml +73 -0
  818. data/lib/stylesheets/params/make.single.year.ranges.xml +28 -0
  819. data/lib/stylesheets/params/make.valid.html.xml +35 -0
  820. data/lib/stylesheets/params/make.year.ranges.xml +32 -0
  821. data/lib/stylesheets/params/man.authors.section.enabled.xml +46 -0
  822. data/lib/stylesheets/params/man.base.url.for.relative.links.xml +76 -0
  823. data/lib/stylesheets/params/man.break.after.slash.xml +46 -0
  824. data/lib/stylesheets/params/man.charmap.enabled.xml +55 -0
  825. data/lib/stylesheets/params/man.charmap.subset.profile.english.xml +80 -0
  826. data/lib/stylesheets/params/man.charmap.subset.profile.xml +297 -0
  827. data/lib/stylesheets/params/man.charmap.uri.xml +42 -0
  828. data/lib/stylesheets/params/man.charmap.use.subset.xml +80 -0
  829. data/lib/stylesheets/params/man.copyright.section.enabled.xml +46 -0
  830. data/lib/stylesheets/params/man.endnotes.are.numbered.xml +106 -0
  831. data/lib/stylesheets/params/man.endnotes.list.enabled.xml +105 -0
  832. data/lib/stylesheets/params/man.endnotes.list.heading.xml +36 -0
  833. data/lib/stylesheets/params/man.font.funcprototype.xml +30 -0
  834. data/lib/stylesheets/params/man.font.funcsynopsisinfo.xml +30 -0
  835. data/lib/stylesheets/params/man.font.links.xml +64 -0
  836. data/lib/stylesheets/params/man.font.table.headings.xml +30 -0
  837. data/lib/stylesheets/params/man.font.table.title.xml +30 -0
  838. data/lib/stylesheets/params/man.funcsynopsis.style.xml +26 -0
  839. data/lib/stylesheets/params/man.hyphenate.computer.inlines.xml +53 -0
  840. data/lib/stylesheets/params/man.hyphenate.filenames.xml +47 -0
  841. data/lib/stylesheets/params/man.hyphenate.urls.xml +46 -0
  842. data/lib/stylesheets/params/man.hyphenate.xml +59 -0
  843. data/lib/stylesheets/params/man.indent.blurbs.xml +33 -0
  844. data/lib/stylesheets/params/man.indent.lists.xml +35 -0
  845. data/lib/stylesheets/params/man.indent.refsect.xml +70 -0
  846. data/lib/stylesheets/params/man.indent.verbatims.xml +33 -0
  847. data/lib/stylesheets/params/man.indent.width.xml +39 -0
  848. data/lib/stylesheets/params/man.justify.xml +52 -0
  849. data/lib/stylesheets/params/man.output.base.dir.xml +39 -0
  850. data/lib/stylesheets/params/man.output.better.ps.enabled.xml +61 -0
  851. data/lib/stylesheets/params/man.output.encoding.xml +53 -0
  852. data/lib/stylesheets/params/man.output.in.separate.dir.xml +32 -0
  853. data/lib/stylesheets/params/man.output.lang.in.name.enabled.xml +50 -0
  854. data/lib/stylesheets/params/man.output.manifest.enabled.xml +27 -0
  855. data/lib/stylesheets/params/man.output.manifest.filename.xml +29 -0
  856. data/lib/stylesheets/params/man.output.quietly.xml +37 -0
  857. data/lib/stylesheets/params/man.output.subdirs.enabled.xml +40 -0
  858. data/lib/stylesheets/params/man.segtitle.suppress.xml +28 -0
  859. data/lib/stylesheets/params/man.string.subst.map.local.post.xml +34 -0
  860. data/lib/stylesheets/params/man.string.subst.map.local.pre.xml +34 -0
  861. data/lib/stylesheets/params/man.string.subst.map.xml +162 -0
  862. data/lib/stylesheets/params/man.subheading.divider.enabled.xml +37 -0
  863. data/lib/stylesheets/params/man.subheading.divider.xml +37 -0
  864. data/lib/stylesheets/params/man.table.footnotes.divider.xml +29 -0
  865. data/lib/stylesheets/params/man.th.extra1.suppress.xml +32 -0
  866. data/lib/stylesheets/params/man.th.extra2.max.length.xml +43 -0
  867. data/lib/stylesheets/params/man.th.extra2.suppress.xml +44 -0
  868. data/lib/stylesheets/params/man.th.extra3.max.length.xml +42 -0
  869. data/lib/stylesheets/params/man.th.extra3.suppress.xml +34 -0
  870. data/lib/stylesheets/params/man.th.title.max.length.xml +63 -0
  871. data/lib/stylesheets/params/manifest.in.base.dir.xml +29 -0
  872. data/lib/stylesheets/params/manifest.xml +29 -0
  873. data/lib/stylesheets/params/manual.toc.xml +29 -0
  874. data/lib/stylesheets/params/margin.note.float.type.xml +77 -0
  875. data/lib/stylesheets/params/margin.note.properties.xml +54 -0
  876. data/lib/stylesheets/params/margin.note.title.properties.xml +32 -0
  877. data/lib/stylesheets/params/margin.note.width.xml +35 -0
  878. data/lib/stylesheets/params/marker.section.level.xml +50 -0
  879. data/lib/stylesheets/params/menuchoice.menu.separator.xml +42 -0
  880. data/lib/stylesheets/params/menuchoice.separator.xml +32 -0
  881. data/lib/stylesheets/params/minus.image.xml +29 -0
  882. data/lib/stylesheets/params/monospace.font.family.xml +29 -0
  883. data/lib/stylesheets/params/monospace.properties.xml +38 -0
  884. data/lib/stylesheets/params/monospace.verbatim.font.width.xml +40 -0
  885. data/lib/stylesheets/params/monospace.verbatim.properties.xml +27 -0
  886. data/lib/stylesheets/params/multiframe.bottom.bgcolor.xml +28 -0
  887. data/lib/stylesheets/params/multiframe.navigation.height.xml +28 -0
  888. data/lib/stylesheets/params/multiframe.top.bgcolor.xml +28 -0
  889. data/lib/stylesheets/params/multiframe.xml +31 -0
  890. data/lib/stylesheets/params/nav.separator.xml +28 -0
  891. data/lib/stylesheets/params/nav.table.summary.xml +27 -0
  892. data/lib/stylesheets/params/navbgcolor.xml +26 -0
  893. data/lib/stylesheets/params/navbodywidth.xml +26 -0
  894. data/lib/stylesheets/params/navig.graphics.extension.xml +28 -0
  895. data/lib/stylesheets/params/navig.graphics.path.xml +30 -0
  896. data/lib/stylesheets/params/navig.graphics.xml +31 -0
  897. data/lib/stylesheets/params/navig.showtitles.xml +32 -0
  898. data/lib/stylesheets/params/navtocwidth.xml +26 -0
  899. data/lib/stylesheets/params/next.image.xml +27 -0
  900. data/lib/stylesheets/params/no.home.image.xml +27 -0
  901. data/lib/stylesheets/params/no.next.image.xml +27 -0
  902. data/lib/stylesheets/params/no.prev.image.xml +27 -0
  903. data/lib/stylesheets/params/no.toc.image.xml +27 -0
  904. data/lib/stylesheets/params/no.up.image.xml +27 -0
  905. data/lib/stylesheets/params/nominal.image.depth.xml +27 -0
  906. data/lib/stylesheets/params/nominal.image.width.xml +43 -0
  907. data/lib/stylesheets/params/nominal.table.width.xml +30 -0
  908. data/lib/stylesheets/params/nongraphical.admonition.properties.xml +41 -0
  909. data/lib/stylesheets/params/normal.para.spacing.xml +26 -0
  910. data/lib/stylesheets/params/olink.base.uri.xml +35 -0
  911. data/lib/stylesheets/params/olink.debug.xml +36 -0
  912. data/lib/stylesheets/params/olink.doctitle.xml +146 -0
  913. data/lib/stylesheets/params/olink.fragid.xml +23 -0
  914. data/lib/stylesheets/params/olink.lang.fallback.sequence.xml +83 -0
  915. data/lib/stylesheets/params/olink.outline.ext.xml +28 -0
  916. data/lib/stylesheets/params/olink.properties.xml +33 -0
  917. data/lib/stylesheets/params/olink.pubid.xml +27 -0
  918. data/lib/stylesheets/params/olink.resolver.xml +23 -0
  919. data/lib/stylesheets/params/olink.sysid.xml +27 -0
  920. data/lib/stylesheets/params/orderedlist.label.properties.xml +26 -0
  921. data/lib/stylesheets/params/orderedlist.label.width.xml +28 -0
  922. data/lib/stylesheets/params/orderedlist.properties.xml +24 -0
  923. data/lib/stylesheets/params/othercredit.like.author.enabled.xml +31 -0
  924. data/lib/stylesheets/params/output-root.xml +28 -0
  925. data/lib/stylesheets/params/output.indent.xml +32 -0
  926. data/lib/stylesheets/params/overlay.js.xml +28 -0
  927. data/lib/stylesheets/params/overlay.logo.xml +28 -0
  928. data/lib/stylesheets/params/overlay.xml +32 -0
  929. data/lib/stylesheets/params/page.height.portrait.xml +69 -0
  930. data/lib/stylesheets/params/page.height.xml +37 -0
  931. data/lib/stylesheets/params/page.margin.bottom.xml +29 -0
  932. data/lib/stylesheets/params/page.margin.inner.xml +56 -0
  933. data/lib/stylesheets/params/page.margin.outer.xml +53 -0
  934. data/lib/stylesheets/params/page.margin.top.xml +28 -0
  935. data/lib/stylesheets/params/page.orientation.xml +32 -0
  936. data/lib/stylesheets/params/page.width.portrait.xml +67 -0
  937. data/lib/stylesheets/params/page.width.xml +36 -0
  938. data/lib/stylesheets/params/pages.template.xml +29 -0
  939. data/lib/stylesheets/params/paper.type.xml +73 -0
  940. data/lib/stylesheets/params/para.propagates.style.xml +29 -0
  941. data/lib/stylesheets/params/part.autolabel.xml +73 -0
  942. data/lib/stylesheets/params/passivetex.extensions.xml +37 -0
  943. data/lib/stylesheets/params/pgwide.properties.xml +52 -0
  944. data/lib/stylesheets/params/phrase.propagates.style.xml +29 -0
  945. data/lib/stylesheets/params/pixels.per.inch.xml +31 -0
  946. data/lib/stylesheets/params/plus.image.xml +29 -0
  947. data/lib/stylesheets/params/points.per.em.xml +29 -0
  948. data/lib/stylesheets/params/preface.autolabel.xml +71 -0
  949. data/lib/stylesheets/params/prefer.internal.olink.xml +78 -0
  950. data/lib/stylesheets/params/preferred.mediaobject.role.xml +40 -0
  951. data/lib/stylesheets/params/prev.image.xml +27 -0
  952. data/lib/stylesheets/params/procedure.properties.xml +29 -0
  953. data/lib/stylesheets/params/process.empty.source.toc.xml +39 -0
  954. data/lib/stylesheets/params/process.source.toc.xml +39 -0
  955. data/lib/stylesheets/params/profile.arch.xml +39 -0
  956. data/lib/stylesheets/params/profile.attribute.xml +34 -0
  957. data/lib/stylesheets/params/profile.audience.xml +38 -0
  958. data/lib/stylesheets/params/profile.condition.xml +38 -0
  959. data/lib/stylesheets/params/profile.conformance.xml +38 -0
  960. data/lib/stylesheets/params/profile.lang.xml +38 -0
  961. data/lib/stylesheets/params/profile.os.xml +38 -0
  962. data/lib/stylesheets/params/profile.revision.xml +38 -0
  963. data/lib/stylesheets/params/profile.revisionflag.xml +38 -0
  964. data/lib/stylesheets/params/profile.role.xml +54 -0
  965. data/lib/stylesheets/params/profile.security.xml +38 -0
  966. data/lib/stylesheets/params/profile.separator.xml +27 -0
  967. data/lib/stylesheets/params/profile.status.xml +38 -0
  968. data/lib/stylesheets/params/profile.userlevel.xml +38 -0
  969. data/lib/stylesheets/params/profile.value.xml +41 -0
  970. data/lib/stylesheets/params/profile.vendor.xml +38 -0
  971. data/lib/stylesheets/params/profile.wordsize.xml +38 -0
  972. data/lib/stylesheets/params/punct.honorific.xml +28 -0
  973. data/lib/stylesheets/params/qanda.defaultlabel.xml +86 -0
  974. data/lib/stylesheets/params/qanda.in.toc.xml +34 -0
  975. data/lib/stylesheets/params/qanda.inherit.numeration.xml +30 -0
  976. data/lib/stylesheets/params/qanda.nested.in.toc.xml +29 -0
  977. data/lib/stylesheets/params/qanda.title.level1.properties.xml +32 -0
  978. data/lib/stylesheets/params/qanda.title.level2.properties.xml +32 -0
  979. data/lib/stylesheets/params/qanda.title.level3.properties.xml +32 -0
  980. data/lib/stylesheets/params/qanda.title.level4.properties.xml +32 -0
  981. data/lib/stylesheets/params/qanda.title.level5.properties.xml +32 -0
  982. data/lib/stylesheets/params/qanda.title.level6.properties.xml +34 -0
  983. data/lib/stylesheets/params/qanda.title.properties.xml +37 -0
  984. data/lib/stylesheets/params/qandadiv.autolabel.xml +26 -0
  985. data/lib/stylesheets/params/rebuild-all.xml +33 -0
  986. data/lib/stylesheets/params/refclass.suppress.xml +28 -0
  987. data/lib/stylesheets/params/refentry.date.profile.enabled.xml +46 -0
  988. data/lib/stylesheets/params/refentry.date.profile.xml +38 -0
  989. data/lib/stylesheets/params/refentry.generate.name.xml +33 -0
  990. data/lib/stylesheets/params/refentry.generate.title.xml +33 -0
  991. data/lib/stylesheets/params/refentry.manual.fallback.profile.xml +48 -0
  992. data/lib/stylesheets/params/refentry.manual.profile.enabled.xml +47 -0
  993. data/lib/stylesheets/params/refentry.manual.profile.xml +72 -0
  994. data/lib/stylesheets/params/refentry.meta.get.quietly.xml +37 -0
  995. data/lib/stylesheets/params/refentry.pagebreak.xml +33 -0
  996. data/lib/stylesheets/params/refentry.separator.xml +29 -0
  997. data/lib/stylesheets/params/refentry.source.fallback.profile.xml +49 -0
  998. data/lib/stylesheets/params/refentry.source.name.profile.enabled.xml +48 -0
  999. data/lib/stylesheets/params/refentry.source.name.profile.xml +89 -0
  1000. data/lib/stylesheets/params/refentry.source.name.suppress.xml +42 -0
  1001. data/lib/stylesheets/params/refentry.title.properties.xml +59 -0
  1002. data/lib/stylesheets/params/refentry.version.profile.enabled.xml +47 -0
  1003. data/lib/stylesheets/params/refentry.version.profile.xml +41 -0
  1004. data/lib/stylesheets/params/refentry.version.suppress.xml +43 -0
  1005. data/lib/stylesheets/params/refentry.xref.manvolnum.xml +31 -0
  1006. data/lib/stylesheets/params/reference.autolabel.xml +67 -0
  1007. data/lib/stylesheets/params/region.after.extent.xml +29 -0
  1008. data/lib/stylesheets/params/region.before.extent.xml +29 -0
  1009. data/lib/stylesheets/params/revhistory.table.cell.properties.xml +28 -0
  1010. data/lib/stylesheets/params/revhistory.table.properties.xml +28 -0
  1011. data/lib/stylesheets/params/revhistory.title.properties.xml +28 -0
  1012. data/lib/stylesheets/params/root.filename.xml +29 -0
  1013. data/lib/stylesheets/params/root.properties.xml +46 -0
  1014. data/lib/stylesheets/params/rootid.xml +33 -0
  1015. data/lib/stylesheets/params/runinhead.default.title.end.punct.xml +27 -0
  1016. data/lib/stylesheets/params/runinhead.title.end.punct.xml +32 -0
  1017. data/lib/stylesheets/params/running.foot.properties.xml +34 -0
  1018. data/lib/stylesheets/params/sans.font.family.xml +29 -0
  1019. data/lib/stylesheets/params/saxon.callouts.xml +30 -0
  1020. data/lib/stylesheets/params/saxon.character.representation.xml +38 -0
  1021. data/lib/stylesheets/params/saxon.linenumbering.xml +32 -0
  1022. data/lib/stylesheets/params/saxon.tablecolumns.xml +30 -0
  1023. data/lib/stylesheets/params/script.dir.xml +33 -0
  1024. data/lib/stylesheets/params/section.autolabel.max.depth.xml +32 -0
  1025. data/lib/stylesheets/params/section.autolabel.xml +26 -0
  1026. data/lib/stylesheets/params/section.container.element.xml +62 -0
  1027. data/lib/stylesheets/params/section.label.includes.component.label.xml +27 -0
  1028. data/lib/stylesheets/params/section.level1.properties.xml +43 -0
  1029. data/lib/stylesheets/params/section.level2.properties.xml +43 -0
  1030. data/lib/stylesheets/params/section.level3.properties.xml +43 -0
  1031. data/lib/stylesheets/params/section.level4.properties.xml +43 -0
  1032. data/lib/stylesheets/params/section.level5.properties.xml +43 -0
  1033. data/lib/stylesheets/params/section.level6.properties.xml +43 -0
  1034. data/lib/stylesheets/params/section.properties.xml +35 -0
  1035. data/lib/stylesheets/params/section.title.level1.properties.xml +32 -0
  1036. data/lib/stylesheets/params/section.title.level2.properties.xml +33 -0
  1037. data/lib/stylesheets/params/section.title.level3.properties.xml +32 -0
  1038. data/lib/stylesheets/params/section.title.level4.properties.xml +32 -0
  1039. data/lib/stylesheets/params/section.title.level5.properties.xml +32 -0
  1040. data/lib/stylesheets/params/section.title.level6.properties.xml +33 -0
  1041. data/lib/stylesheets/params/section.title.properties.xml +39 -0
  1042. data/lib/stylesheets/params/segmentedlist.as.table.xml +28 -0
  1043. data/lib/stylesheets/params/sequential.links.xml +25 -0
  1044. data/lib/stylesheets/params/shade.verbatim.style.xml +36 -0
  1045. data/lib/stylesheets/params/shade.verbatim.xml +30 -0
  1046. data/lib/stylesheets/params/show.comments.xml +32 -0
  1047. data/lib/stylesheets/params/show.foil.number.xml +28 -0
  1048. data/lib/stylesheets/params/show.revisionflag.xml +42 -0
  1049. data/lib/stylesheets/params/showtoc.image.xml +29 -0
  1050. data/lib/stylesheets/params/side.float.properties.xml +50 -0
  1051. data/lib/stylesheets/params/sidebar.float.type.xml +90 -0
  1052. data/lib/stylesheets/params/sidebar.float.width.xml +35 -0
  1053. data/lib/stylesheets/params/sidebar.properties.xml +42 -0
  1054. data/lib/stylesheets/params/sidebar.title.properties.xml +32 -0
  1055. data/lib/stylesheets/params/simplesect.in.toc.xml +26 -0
  1056. data/lib/stylesheets/params/slide.font.family.xml +31 -0
  1057. data/lib/stylesheets/params/slide.title.font.family.xml +31 -0
  1058. data/lib/stylesheets/params/slides.js.xml +28 -0
  1059. data/lib/stylesheets/params/slides.properties.xml +31 -0
  1060. data/lib/stylesheets/params/spacing.paras.xml +30 -0
  1061. data/lib/stylesheets/params/speakernote.properties.xml +32 -0
  1062. data/lib/stylesheets/params/subscript.properties.xml +29 -0
  1063. data/lib/stylesheets/params/superscript.properties.xml +29 -0
  1064. data/lib/stylesheets/params/suppress.footer.navigation.xml +26 -0
  1065. data/lib/stylesheets/params/suppress.header.navigation.xml +27 -0
  1066. data/lib/stylesheets/params/suppress.homepage.title.xml +25 -0
  1067. data/lib/stylesheets/params/suppress.navigation.xml +28 -0
  1068. data/lib/stylesheets/params/symbol.font.family.xml +45 -0
  1069. data/lib/stylesheets/params/table.borders.with.css.xml +28 -0
  1070. data/lib/stylesheets/params/table.cell.border.color.xml +39 -0
  1071. data/lib/stylesheets/params/table.cell.border.style.xml +42 -0
  1072. data/lib/stylesheets/params/table.cell.border.thickness.xml +35 -0
  1073. data/lib/stylesheets/params/table.cell.padding.xml +32 -0
  1074. data/lib/stylesheets/params/table.entry.padding.xml +27 -0
  1075. data/lib/stylesheets/params/table.footnote.number.format.xml +33 -0
  1076. data/lib/stylesheets/params/table.footnote.number.symbols.xml +39 -0
  1077. data/lib/stylesheets/params/table.footnote.properties.xml +39 -0
  1078. data/lib/stylesheets/params/table.frame.border.color.xml +28 -0
  1079. data/lib/stylesheets/params/table.frame.border.style.xml +37 -0
  1080. data/lib/stylesheets/params/table.frame.border.thickness.xml +27 -0
  1081. data/lib/stylesheets/params/table.properties.xml +34 -0
  1082. data/lib/stylesheets/params/table.spacer.image.xml +26 -0
  1083. data/lib/stylesheets/params/table.table.properties.xml +36 -0
  1084. data/lib/stylesheets/params/tablecolumns.extension.xml +30 -0
  1085. data/lib/stylesheets/params/target.database.document.xml +37 -0
  1086. data/lib/stylesheets/params/targets.filename.xml +32 -0
  1087. data/lib/stylesheets/params/template.xml +27 -0
  1088. data/lib/stylesheets/params/tex.math.delims.xml +47 -0
  1089. data/lib/stylesheets/params/tex.math.file.xml +42 -0
  1090. data/lib/stylesheets/params/tex.math.in.alt.xml +76 -0
  1091. data/lib/stylesheets/params/text.home.xml +27 -0
  1092. data/lib/stylesheets/params/text.next.xml +27 -0
  1093. data/lib/stylesheets/params/text.prev.xml +27 -0
  1094. data/lib/stylesheets/params/text.toc.xml +27 -0
  1095. data/lib/stylesheets/params/text.up.xml +27 -0
  1096. data/lib/stylesheets/params/textbgcolor.xml +26 -0
  1097. data/lib/stylesheets/params/textdata.default.encoding.xml +32 -0
  1098. data/lib/stylesheets/params/textinsert.extension.xml +62 -0
  1099. data/lib/stylesheets/params/title.font.family.xml +33 -0
  1100. data/lib/stylesheets/params/title.margin.left.xml +65 -0
  1101. data/lib/stylesheets/params/titlefoil.html.xml +27 -0
  1102. data/lib/stylesheets/params/toc.bg.color.xml +27 -0
  1103. data/lib/stylesheets/params/toc.blank.graphic.xml +28 -0
  1104. data/lib/stylesheets/params/toc.blank.image.xml +27 -0
  1105. data/lib/stylesheets/params/toc.blank.text.xml +27 -0
  1106. data/lib/stylesheets/params/toc.hide.show.xml +33 -0
  1107. data/lib/stylesheets/params/toc.html.xml +27 -0
  1108. data/lib/stylesheets/params/toc.image.xml +27 -0
  1109. data/lib/stylesheets/params/toc.indent.width.xml +34 -0
  1110. data/lib/stylesheets/params/toc.line.properties.xml +44 -0
  1111. data/lib/stylesheets/params/toc.list.type.xml +30 -0
  1112. data/lib/stylesheets/params/toc.margin.properties.xml +33 -0
  1113. data/lib/stylesheets/params/toc.max.depth.xml +25 -0
  1114. data/lib/stylesheets/params/toc.pointer.graphic.xml +28 -0
  1115. data/lib/stylesheets/params/toc.pointer.image.xml +27 -0
  1116. data/lib/stylesheets/params/toc.pointer.text.xml +27 -0
  1117. data/lib/stylesheets/params/toc.row.height.xml +33 -0
  1118. data/lib/stylesheets/params/toc.section.depth.xml +28 -0
  1119. data/lib/stylesheets/params/toc.spacer.graphic.xml +28 -0
  1120. data/lib/stylesheets/params/toc.spacer.image.xml +27 -0
  1121. data/lib/stylesheets/params/toc.spacer.text.xml +27 -0
  1122. data/lib/stylesheets/params/toc.width.xml +28 -0
  1123. data/lib/stylesheets/params/ua.js.xml +28 -0
  1124. data/lib/stylesheets/params/ulink.footnotes.xml +34 -0
  1125. data/lib/stylesheets/params/ulink.hyphenate.chars.xml +37 -0
  1126. data/lib/stylesheets/params/ulink.hyphenate.xml +35 -0
  1127. data/lib/stylesheets/params/ulink.show.xml +37 -0
  1128. data/lib/stylesheets/params/ulink.target.xml +29 -0
  1129. data/lib/stylesheets/params/up.image.xml +27 -0
  1130. data/lib/stylesheets/params/use.embed.for.svg.xml +33 -0
  1131. data/lib/stylesheets/params/use.extensions.xml +31 -0
  1132. data/lib/stylesheets/params/use.id.as.filename.xml +30 -0
  1133. data/lib/stylesheets/params/use.id.function.xml +32 -0
  1134. data/lib/stylesheets/params/use.local.olink.style.xml +28 -0
  1135. data/lib/stylesheets/params/use.role.as.xrefstyle.xml +93 -0
  1136. data/lib/stylesheets/params/use.role.for.mediaobject.xml +56 -0
  1137. data/lib/stylesheets/params/use.svg.xml +30 -0
  1138. data/lib/stylesheets/params/variablelist.as.blocks.xml +62 -0
  1139. data/lib/stylesheets/params/variablelist.as.table.xml +54 -0
  1140. data/lib/stylesheets/params/variablelist.max.termlength.xml +46 -0
  1141. data/lib/stylesheets/params/variablelist.term.break.after.xml +39 -0
  1142. data/lib/stylesheets/params/variablelist.term.properties.xml +29 -0
  1143. data/lib/stylesheets/params/variablelist.term.separator.xml +40 -0
  1144. data/lib/stylesheets/params/verbatim.properties.xml +38 -0
  1145. data/lib/stylesheets/params/wordml.template.xml +29 -0
  1146. data/lib/stylesheets/params/writing.mode.xml +83 -0
  1147. data/lib/stylesheets/params/xbCollapsibleLists.js.xml +28 -0
  1148. data/lib/stylesheets/params/xbDOM.js.xml +28 -0
  1149. data/lib/stylesheets/params/xbLibrary.js.xml +28 -0
  1150. data/lib/stylesheets/params/xbStyle.js.xml +28 -0
  1151. data/lib/stylesheets/params/xep.extensions.xml +31 -0
  1152. data/lib/stylesheets/params/xep.index.item.properties.xml +36 -0
  1153. data/lib/stylesheets/params/xref.label-page.separator.xml +38 -0
  1154. data/lib/stylesheets/params/xref.label-title.separator.xml +36 -0
  1155. data/lib/stylesheets/params/xref.properties.xml +29 -0
  1156. data/lib/stylesheets/params/xref.title-page.separator.xml +36 -0
  1157. data/lib/stylesheets/params/xref.with.number.and.title.xml +30 -0
  1158. data/lib/stylesheets/profiling/profile-mode.xsl +239 -0
  1159. data/lib/stylesheets/profiling/profile.xsl +58 -0
  1160. data/lib/stylesheets/profiling/strip-attributes.xsl +27 -0
  1161. data/lib/stylesheets/profiling/xsl2profile.xsl +159 -0
  1162. data/lib/stylesheets/roundtrip/blocks-spec.xml +11 -0
  1163. data/lib/stylesheets/roundtrip/blocks2dbk.dtd +76 -0
  1164. data/lib/stylesheets/roundtrip/blocks2dbk.xsl +1734 -0
  1165. data/lib/stylesheets/roundtrip/dbk2ooo.xsl +178 -0
  1166. data/lib/stylesheets/roundtrip/dbk2pages.xsl +442 -0
  1167. data/lib/stylesheets/roundtrip/dbk2wordml.xsl +402 -0
  1168. data/lib/stylesheets/roundtrip/dbk2wp.xsl +1376 -0
  1169. data/lib/stylesheets/roundtrip/normalise-common.xsl +39 -0
  1170. data/lib/stylesheets/roundtrip/normalise2sections.xsl +1270 -0
  1171. data/lib/stylesheets/roundtrip/pages2normalise.xsl +352 -0
  1172. data/lib/stylesheets/roundtrip/param.xml +105 -0
  1173. data/lib/stylesheets/roundtrip/param.xsl +20 -0
  1174. data/lib/stylesheets/roundtrip/sections-spec.xml +38 -0
  1175. data/lib/stylesheets/roundtrip/sections2blocks.xsl +263 -0
  1176. data/lib/stylesheets/roundtrip/specifications.xml +1420 -0
  1177. data/lib/stylesheets/roundtrip/template-pages.xml +2 -0
  1178. data/lib/stylesheets/roundtrip/template.dot +0 -0
  1179. data/lib/stylesheets/roundtrip/template.xml +3 -0
  1180. data/lib/stylesheets/roundtrip/wordml2normalise.xsl +446 -0
  1181. data/lib/stylesheets/slides/browser/CTOCWidget.js +169 -0
  1182. data/lib/stylesheets/slides/browser/overlay.js +142 -0
  1183. data/lib/stylesheets/slides/browser/slides-default.css +9 -0
  1184. data/lib/stylesheets/slides/browser/slides-frames.css +73 -0
  1185. data/lib/stylesheets/slides/browser/slides-plain.css +1 -0
  1186. data/lib/stylesheets/slides/browser/slides-table.css +41 -0
  1187. data/lib/stylesheets/slides/browser/slides-w3c.css +1 -0
  1188. data/lib/stylesheets/slides/browser/slides.css +119 -0
  1189. data/lib/stylesheets/slides/browser/slides.js +120 -0
  1190. data/lib/stylesheets/slides/browser/ua.js +135 -0
  1191. data/lib/stylesheets/slides/browser/xbCollapsibleLists.js +537 -0
  1192. data/lib/stylesheets/slides/browser/xbDOM.js +374 -0
  1193. data/lib/stylesheets/slides/browser/xbDebug.js +311 -0
  1194. data/lib/stylesheets/slides/browser/xbLibrary.js +80 -0
  1195. data/lib/stylesheets/slides/browser/xbStyle-css.js +791 -0
  1196. data/lib/stylesheets/slides/browser/xbStyle-nn4.js +485 -0
  1197. data/lib/stylesheets/slides/browser/xbStyle-not-supported.js +77 -0
  1198. data/lib/stylesheets/slides/browser/xbStyle.js +295 -0
  1199. data/lib/stylesheets/slides/fo/param.xml +356 -0
  1200. data/lib/stylesheets/slides/fo/param.xsl +74 -0
  1201. data/lib/stylesheets/slides/fo/plain-titlepage.xml +79 -0
  1202. data/lib/stylesheets/slides/fo/plain-titlepage.xsl +187 -0
  1203. data/lib/stylesheets/slides/fo/plain.xsl +528 -0
  1204. data/lib/stylesheets/slides/graphics/active/arr-next.png +0 -0
  1205. data/lib/stylesheets/slides/graphics/active/arr-prev.png +0 -0
  1206. data/lib/stylesheets/slides/graphics/active/but-fforward.png +0 -0
  1207. data/lib/stylesheets/slides/graphics/active/but-info.png +0 -0
  1208. data/lib/stylesheets/slides/graphics/active/but-next.png +0 -0
  1209. data/lib/stylesheets/slides/graphics/active/but-prev.png +0 -0
  1210. data/lib/stylesheets/slides/graphics/active/but-rewind.png +0 -0
  1211. data/lib/stylesheets/slides/graphics/active/nav-home.png +0 -0
  1212. data/lib/stylesheets/slides/graphics/active/nav-next.png +0 -0
  1213. data/lib/stylesheets/slides/graphics/active/nav-prev.png +0 -0
  1214. data/lib/stylesheets/slides/graphics/active/nav-toc.png +0 -0
  1215. data/lib/stylesheets/slides/graphics/active/nav-up.png +0 -0
  1216. data/lib/stylesheets/slides/graphics/active/w3c-next.png +0 -0
  1217. data/lib/stylesheets/slides/graphics/active/w3c-prev.png +0 -0
  1218. data/lib/stylesheets/slides/graphics/active/w3c-toc.png +0 -0
  1219. data/lib/stylesheets/slides/graphics/arrow.gif +0 -0
  1220. data/lib/stylesheets/slides/graphics/blank.gif +0 -0
  1221. data/lib/stylesheets/slides/graphics/blank.png +0 -0
  1222. data/lib/stylesheets/slides/graphics/hidetoc.gif +0 -0
  1223. data/lib/stylesheets/slides/graphics/inactive/but-fforward.png +0 -0
  1224. data/lib/stylesheets/slides/graphics/inactive/but-info.png +0 -0
  1225. data/lib/stylesheets/slides/graphics/inactive/but-next.png +0 -0
  1226. data/lib/stylesheets/slides/graphics/inactive/but-prev.png +0 -0
  1227. data/lib/stylesheets/slides/graphics/inactive/but-rewind.png +0 -0
  1228. data/lib/stylesheets/slides/graphics/inactive/nav-home.png +0 -0
  1229. data/lib/stylesheets/slides/graphics/inactive/nav-next.png +0 -0
  1230. data/lib/stylesheets/slides/graphics/inactive/nav-prev.png +0 -0
  1231. data/lib/stylesheets/slides/graphics/inactive/nav-toc.png +0 -0
  1232. data/lib/stylesheets/slides/graphics/inactive/nav-up.png +0 -0
  1233. data/lib/stylesheets/slides/graphics/inactive/w3c-next.png +0 -0
  1234. data/lib/stylesheets/slides/graphics/inactive/w3c-prev.png +0 -0
  1235. data/lib/stylesheets/slides/graphics/inactive/w3c-toc.png +0 -0
  1236. data/lib/stylesheets/slides/graphics/plus.gif +0 -0
  1237. data/lib/stylesheets/slides/graphics/pointer.png +0 -0
  1238. data/lib/stylesheets/slides/graphics/showtoc.gif +0 -0
  1239. data/lib/stylesheets/slides/graphics/toc/bullet.png +0 -0
  1240. data/lib/stylesheets/slides/graphics/toc/closed.png +0 -0
  1241. data/lib/stylesheets/slides/graphics/toc/open.png +0 -0
  1242. data/lib/stylesheets/slides/html/css.xsl +46 -0
  1243. data/lib/stylesheets/slides/html/default.xsl +261 -0
  1244. data/lib/stylesheets/slides/html/flat.xsl +70 -0
  1245. data/lib/stylesheets/slides/html/frames.xsl +2016 -0
  1246. data/lib/stylesheets/slides/html/graphics.xsl +151 -0
  1247. data/lib/stylesheets/slides/html/jscript.xsl +127 -0
  1248. data/lib/stylesheets/slides/html/param.xml +1376 -0
  1249. data/lib/stylesheets/slides/html/param.xsl +68 -0
  1250. data/lib/stylesheets/slides/html/plain.xsl +472 -0
  1251. data/lib/stylesheets/slides/html/slides-common.xsl +1541 -0
  1252. data/lib/stylesheets/slides/html/tables.xsl +336 -0
  1253. data/lib/stylesheets/slides/html/vslides.xsl +667 -0
  1254. data/lib/stylesheets/slides/html/w3c.xsl +376 -0
  1255. data/lib/stylesheets/slides/htmlhelp/htmlhelp.xsl +89 -0
  1256. data/lib/stylesheets/slides/keynote/default.xsl +600 -0
  1257. data/lib/stylesheets/slides/keynote/xsltsl/cmp.xsl +348 -0
  1258. data/lib/stylesheets/slides/keynote/xsltsl/date-time.xsl +1524 -0
  1259. data/lib/stylesheets/slides/keynote/xsltsl/example.xsl +90 -0
  1260. data/lib/stylesheets/slides/keynote/xsltsl/markup.xsl +789 -0
  1261. data/lib/stylesheets/slides/keynote/xsltsl/math.xsl +704 -0
  1262. data/lib/stylesheets/slides/keynote/xsltsl/node.xsl +229 -0
  1263. data/lib/stylesheets/slides/keynote/xsltsl/stdlib.xsl +340 -0
  1264. data/lib/stylesheets/slides/keynote/xsltsl/string.xsl +1233 -0
  1265. data/lib/stylesheets/slides/keynote/xsltsl/svg.xsl +177 -0
  1266. data/lib/stylesheets/slides/keynote/xsltsl/uri.xsl +580 -0
  1267. data/lib/stylesheets/slides/svg/default.xsl +686 -0
  1268. data/lib/stylesheets/slides/xhtml/css.xsl +47 -0
  1269. data/lib/stylesheets/slides/xhtml/default.xsl +246 -0
  1270. data/lib/stylesheets/slides/xhtml/flat.xsl +71 -0
  1271. data/lib/stylesheets/slides/xhtml/frames.xsl +1982 -0
  1272. data/lib/stylesheets/slides/xhtml/graphics.xsl +152 -0
  1273. data/lib/stylesheets/slides/xhtml/jscript.xsl +128 -0
  1274. data/lib/stylesheets/slides/xhtml/param.xsl +70 -0
  1275. data/lib/stylesheets/slides/xhtml/plain.xsl +470 -0
  1276. data/lib/stylesheets/slides/xhtml/slides-common.xsl +1534 -0
  1277. data/lib/stylesheets/slides/xhtml/tables.xsl +334 -0
  1278. data/lib/stylesheets/slides/xhtml/vslides.xsl +652 -0
  1279. data/lib/stylesheets/slides/xhtml/w3c.xsl +358 -0
  1280. data/lib/stylesheets/template/titlepage.xml +478 -0
  1281. data/lib/stylesheets/template/titlepage.xsl +1355 -0
  1282. data/lib/stylesheets/tests/refentry.007.ns.xml +325 -0
  1283. data/lib/stylesheets/tests/refentry.007.xml +340 -0
  1284. data/lib/stylesheets/tools/bin/docbook-xsl-update +53 -0
  1285. data/lib/stylesheets/tools/make/Makefile.DocBook +698 -0
  1286. data/lib/stylesheets/tools/make/Makefile.combine +182 -0
  1287. data/lib/stylesheets/tools/make/Makefile.docParam +59 -0
  1288. data/lib/stylesheets/webhelp/LICENSE +1 -0
  1289. data/lib/stylesheets/webhelp/build.properties +43 -0
  1290. data/lib/stylesheets/webhelp/build.xml +112 -0
  1291. data/lib/stylesheets/webhelp/docs/common/css/positioning.css +109 -0
  1292. data/lib/stylesheets/webhelp/docs/common/images/header-bg.gif +0 -0
  1293. data/lib/stylesheets/webhelp/docs/common/images/highlight-blue.gif +0 -0
  1294. data/lib/stylesheets/webhelp/docs/common/images/highlight-yellow.gif +0 -0
  1295. data/lib/stylesheets/webhelp/docs/common/images/loading.gif +0 -0
  1296. data/lib/stylesheets/webhelp/docs/common/images/logo.png +0 -0
  1297. data/lib/stylesheets/webhelp/docs/common/images/showHideTreeIcons.png +0 -0
  1298. data/lib/stylesheets/webhelp/docs/common/jquery/jquery-1.4.2.min.js +154 -0
  1299. data/lib/stylesheets/webhelp/docs/common/jquery/jquery-ui-1.8.2.custom.min.js +321 -0
  1300. data/lib/stylesheets/webhelp/docs/common/jquery/jquery.cookie.js +93 -0
  1301. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-anim_basic_16x16.gif +0 -0
  1302. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  1303. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  1304. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  1305. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  1306. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  1307. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  1308. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  1309. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  1310. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_217bc0_256x240.png +0 -0
  1311. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_2e83ff_256x240.png +0 -0
  1312. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_469bdd_256x240.png +0 -0
  1313. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_6da8d5_256x240.png +0 -0
  1314. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
  1315. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
  1316. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/images/ui-icons_f9bd01_256x240.png +0 -0
  1317. data/lib/stylesheets/webhelp/docs/common/jquery/theme-redmond/jquery-ui-1.8.2.custom.css +398 -0
  1318. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/file.gif +0 -0
  1319. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/folder-closed.gif +0 -0
  1320. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/folder-closed2.gif +0 -0
  1321. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/folder.gif +0 -0
  1322. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/folder2.gif +0 -0
  1323. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/minus.gif +0 -0
  1324. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/plus.gif +0 -0
  1325. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-black-line.gif +0 -0
  1326. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-black.gif +0 -0
  1327. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-default-line.gif +0 -0
  1328. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-default.gif +0 -0
  1329. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-famfamfam-line.gif +0 -0
  1330. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-famfamfam.gif +0 -0
  1331. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-gray-line.gif +0 -0
  1332. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-gray.gif +0 -0
  1333. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-red-line.gif +0 -0
  1334. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/images/treeview-red.gif +0 -0
  1335. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/jquery.treeview.async.js +72 -0
  1336. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/jquery.treeview.css +85 -0
  1337. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/jquery.treeview.js +255 -0
  1338. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/jquery.treeview.min.js +16 -0
  1339. data/lib/stylesheets/webhelp/docs/common/jquery/treeview/jquery.treeview.pack.js +16 -0
  1340. data/lib/stylesheets/webhelp/docs/common/main.js +161 -0
  1341. data/lib/stylesheets/webhelp/docs/content/ch01.html +61 -0
  1342. data/lib/stylesheets/webhelp/docs/content/ch02.html +32 -0
  1343. data/lib/stylesheets/webhelp/docs/content/ch02s01.html +117 -0
  1344. data/lib/stylesheets/webhelp/docs/content/ch02s02.html +102 -0
  1345. data/lib/stylesheets/webhelp/docs/content/ch02s03.html +36 -0
  1346. data/lib/stylesheets/webhelp/docs/content/ch02s04.html +42 -0
  1347. data/lib/stylesheets/webhelp/docs/content/ch03.html +37 -0
  1348. data/lib/stylesheets/webhelp/docs/content/ch03s01.html +62 -0
  1349. data/lib/stylesheets/webhelp/docs/content/ch03s02.html +124 -0
  1350. data/lib/stylesheets/webhelp/docs/content/index.html +71 -0
  1351. data/lib/stylesheets/webhelp/docs/content/search/htmlFileInfoList.js +10 -0
  1352. data/lib/stylesheets/webhelp/docs/content/search/htmlFileList.js +11 -0
  1353. data/lib/stylesheets/webhelp/docs/content/search/index-1.js +224 -0
  1354. data/lib/stylesheets/webhelp/docs/content/search/index-2.js +223 -0
  1355. data/lib/stylesheets/webhelp/docs/content/search/index-3.js +221 -0
  1356. data/lib/stylesheets/webhelp/docs/content/search/nwSearchFnt.js +513 -0
  1357. data/lib/stylesheets/webhelp/docs/content/search/stemmers/en_stemmer.js +187 -0
  1358. data/lib/stylesheets/webhelp/docs/favicon.ico +0 -0
  1359. data/lib/stylesheets/webhelp/docs/index.html +13 -0
  1360. data/lib/stylesheets/webhelp/docsrc/readme.xml +891 -0
  1361. data/lib/stylesheets/webhelp/template/common/css/positioning.css +109 -0
  1362. data/lib/stylesheets/webhelp/template/common/images/header-bg.gif +0 -0
  1363. data/lib/stylesheets/webhelp/template/common/images/highlight-blue.gif +0 -0
  1364. data/lib/stylesheets/webhelp/template/common/images/highlight-yellow.gif +0 -0
  1365. data/lib/stylesheets/webhelp/template/common/images/loading.gif +0 -0
  1366. data/lib/stylesheets/webhelp/template/common/images/logo.png +0 -0
  1367. data/lib/stylesheets/webhelp/template/common/images/showHideTreeIcons.png +0 -0
  1368. data/lib/stylesheets/webhelp/template/common/jquery/jquery-1.4.2.min.js +154 -0
  1369. data/lib/stylesheets/webhelp/template/common/jquery/jquery-ui-1.8.2.custom.min.js +321 -0
  1370. data/lib/stylesheets/webhelp/template/common/jquery/jquery.cookie.js +93 -0
  1371. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-anim_basic_16x16.gif +0 -0
  1372. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  1373. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
  1374. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
  1375. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
  1376. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
  1377. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
  1378. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
  1379. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
  1380. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_217bc0_256x240.png +0 -0
  1381. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_2e83ff_256x240.png +0 -0
  1382. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_469bdd_256x240.png +0 -0
  1383. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_6da8d5_256x240.png +0 -0
  1384. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
  1385. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
  1386. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/images/ui-icons_f9bd01_256x240.png +0 -0
  1387. data/lib/stylesheets/webhelp/template/common/jquery/theme-redmond/jquery-ui-1.8.2.custom.css +398 -0
  1388. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/file.gif +0 -0
  1389. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/folder-closed.gif +0 -0
  1390. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/folder-closed2.gif +0 -0
  1391. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/folder.gif +0 -0
  1392. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/folder2.gif +0 -0
  1393. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/minus.gif +0 -0
  1394. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/plus.gif +0 -0
  1395. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-black-line.gif +0 -0
  1396. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-black.gif +0 -0
  1397. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-default-line.gif +0 -0
  1398. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-default.gif +0 -0
  1399. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-famfamfam-line.gif +0 -0
  1400. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-famfamfam.gif +0 -0
  1401. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-gray-line.gif +0 -0
  1402. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-gray.gif +0 -0
  1403. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-red-line.gif +0 -0
  1404. data/lib/stylesheets/webhelp/template/common/jquery/treeview/images/treeview-red.gif +0 -0
  1405. data/lib/stylesheets/webhelp/template/common/jquery/treeview/jquery.treeview.async.js +72 -0
  1406. data/lib/stylesheets/webhelp/template/common/jquery/treeview/jquery.treeview.css +85 -0
  1407. data/lib/stylesheets/webhelp/template/common/jquery/treeview/jquery.treeview.js +255 -0
  1408. data/lib/stylesheets/webhelp/template/common/jquery/treeview/jquery.treeview.min.js +16 -0
  1409. data/lib/stylesheets/webhelp/template/common/jquery/treeview/jquery.treeview.pack.js +16 -0
  1410. data/lib/stylesheets/webhelp/template/common/main.js +161 -0
  1411. data/lib/stylesheets/webhelp/template/content/search/default.props +1 -0
  1412. data/lib/stylesheets/webhelp/template/content/search/en-us.props +45 -0
  1413. data/lib/stylesheets/webhelp/template/content/search/es-es.props +179 -0
  1414. data/lib/stylesheets/webhelp/template/content/search/ja-jp.props +1 -0
  1415. data/lib/stylesheets/webhelp/template/content/search/nwSearchFnt.js +513 -0
  1416. data/lib/stylesheets/webhelp/template/content/search/punctuation.props +31 -0
  1417. data/lib/stylesheets/webhelp/template/content/search/stemmers/de_stemmer.js +247 -0
  1418. data/lib/stylesheets/webhelp/template/content/search/stemmers/en_stemmer.js +187 -0
  1419. data/lib/stylesheets/webhelp/template/content/search/stemmers/fr_stemmer.js +299 -0
  1420. data/lib/stylesheets/webhelp/template/favicon.ico +0 -0
  1421. data/lib/stylesheets/webhelp/xsl/webhelp.xsl +772 -0
  1422. data/lib/stylesheets/website/autolayout.xsl +258 -0
  1423. data/lib/stylesheets/website/chunk-common.xsl +227 -0
  1424. data/lib/stylesheets/website/chunk-tabular.xsl +12 -0
  1425. data/lib/stylesheets/website/chunk-website.xsl +12 -0
  1426. data/lib/stylesheets/website/head.xsl +316 -0
  1427. data/lib/stylesheets/website/makefile-dep.xsl +143 -0
  1428. data/lib/stylesheets/website/olink.xsl +297 -0
  1429. data/lib/stylesheets/website/param.xml +788 -0
  1430. data/lib/stylesheets/website/param.xsl +53 -0
  1431. data/lib/stylesheets/website/rss.xsl +143 -0
  1432. data/lib/stylesheets/website/tabular.xsl +213 -0
  1433. data/lib/stylesheets/website/toc-tabular.xsl +480 -0
  1434. data/lib/stylesheets/website/toc.xsl +286 -0
  1435. data/lib/stylesheets/website/website-common.xsl +821 -0
  1436. data/lib/stylesheets/website/website-targets.xsl +27 -0
  1437. data/lib/stylesheets/website/website.xsl +132 -0
  1438. data/lib/stylesheets/website/xbel.xsl +114 -0
  1439. data/lib/stylesheets/xhtml/admon.xsl +137 -0
  1440. data/lib/stylesheets/xhtml/annotations.xsl +160 -0
  1441. data/lib/stylesheets/xhtml/autoidx-kimber.xsl +140 -0
  1442. data/lib/stylesheets/xhtml/autoidx-kosek.xsl +110 -0
  1443. data/lib/stylesheets/xhtml/autoidx-ng.xsl +23 -0
  1444. data/lib/stylesheets/xhtml/autoidx.xsl +682 -0
  1445. data/lib/stylesheets/xhtml/autotoc.xsl +665 -0
  1446. data/lib/stylesheets/xhtml/biblio-iso690.xsl +1302 -0
  1447. data/lib/stylesheets/xhtml/biblio.xsl +1242 -0
  1448. data/lib/stylesheets/xhtml/block.xsl +537 -0
  1449. data/lib/stylesheets/xhtml/callout.xsl +189 -0
  1450. data/lib/stylesheets/xhtml/changebars.xsl +80 -0
  1451. data/lib/stylesheets/xhtml/chunk-changebars.xsl +97 -0
  1452. data/lib/stylesheets/xhtml/chunk-code.xsl +644 -0
  1453. data/lib/stylesheets/xhtml/chunk-common.xsl +1562 -0
  1454. data/lib/stylesheets/xhtml/chunk.xsl +53 -0
  1455. data/lib/stylesheets/xhtml/chunker.xsl +303 -0
  1456. data/lib/stylesheets/xhtml/chunkfast.xsl +70 -0
  1457. data/lib/stylesheets/xhtml/chunktoc.xsl +527 -0
  1458. data/lib/stylesheets/xhtml/component.xsl +397 -0
  1459. data/lib/stylesheets/xhtml/division.xsl +219 -0
  1460. data/lib/stylesheets/xhtml/docbook.css.xml +109 -0
  1461. data/lib/stylesheets/xhtml/docbook.xsl +435 -0
  1462. data/lib/stylesheets/xhtml/ebnf.xsl +329 -0
  1463. data/lib/stylesheets/xhtml/footnote.xsl +306 -0
  1464. data/lib/stylesheets/xhtml/formal.xsl +413 -0
  1465. data/lib/stylesheets/xhtml/glossary.xsl +565 -0
  1466. data/lib/stylesheets/xhtml/graphics.xsl +1437 -0
  1467. data/lib/stylesheets/xhtml/highlight.xsl +89 -0
  1468. data/lib/stylesheets/xhtml/html-rtf.xsl +321 -0
  1469. data/lib/stylesheets/xhtml/html.xsl +600 -0
  1470. data/lib/stylesheets/xhtml/htmltbl.xsl +104 -0
  1471. data/lib/stylesheets/xhtml/index.xsl +266 -0
  1472. data/lib/stylesheets/xhtml/info.xsl +46 -0
  1473. data/lib/stylesheets/xhtml/inline.xsl +1452 -0
  1474. data/lib/stylesheets/xhtml/keywords.xsl +38 -0
  1475. data/lib/stylesheets/xhtml/lists.xsl +1123 -0
  1476. data/lib/stylesheets/xhtml/maketoc.xsl +92 -0
  1477. data/lib/stylesheets/xhtml/manifest.xsl +23 -0
  1478. data/lib/stylesheets/xhtml/math.xsl +285 -0
  1479. data/lib/stylesheets/xhtml/oldchunker.xsl +177 -0
  1480. data/lib/stylesheets/xhtml/onechunk.xsl +37 -0
  1481. data/lib/stylesheets/xhtml/param.xsl +438 -0
  1482. data/lib/stylesheets/xhtml/pi.xsl +1204 -0
  1483. data/lib/stylesheets/xhtml/profile-chunk-code.xsl +616 -0
  1484. data/lib/stylesheets/xhtml/profile-chunk.xsl +53 -0
  1485. data/lib/stylesheets/xhtml/profile-docbook.xsl +407 -0
  1486. data/lib/stylesheets/xhtml/profile-onechunk.xsl +37 -0
  1487. data/lib/stylesheets/xhtml/qandaset.xsl +421 -0
  1488. data/lib/stylesheets/xhtml/refentry.xsl +301 -0
  1489. data/lib/stylesheets/xhtml/sections.xsl +543 -0
  1490. data/lib/stylesheets/xhtml/synop.xsl +1515 -0
  1491. data/lib/stylesheets/xhtml/table.xsl +1169 -0
  1492. data/lib/stylesheets/xhtml/task.xsl +75 -0
  1493. data/lib/stylesheets/xhtml/titlepage.templates.xsl +3818 -0
  1494. data/lib/stylesheets/xhtml/titlepage.xsl +1032 -0
  1495. data/lib/stylesheets/xhtml/toc.xsl +332 -0
  1496. data/lib/stylesheets/xhtml/verbatim.xsl +389 -0
  1497. data/lib/stylesheets/xhtml/xref.xsl +1317 -0
  1498. data/lib/stylesheets/xhtml-1_1/admon.xsl +135 -0
  1499. data/lib/stylesheets/xhtml-1_1/annotations.xsl +160 -0
  1500. data/lib/stylesheets/xhtml-1_1/autoidx-kimber.xsl +140 -0
  1501. data/lib/stylesheets/xhtml-1_1/autoidx-kosek.xsl +110 -0
  1502. data/lib/stylesheets/xhtml-1_1/autoidx-ng.xsl +23 -0
  1503. data/lib/stylesheets/xhtml-1_1/autoidx.xsl +682 -0
  1504. data/lib/stylesheets/xhtml-1_1/autotoc.xsl +665 -0
  1505. data/lib/stylesheets/xhtml-1_1/biblio-iso690.xsl +1302 -0
  1506. data/lib/stylesheets/xhtml-1_1/biblio.xsl +1242 -0
  1507. data/lib/stylesheets/xhtml-1_1/block.xsl +537 -0
  1508. data/lib/stylesheets/xhtml-1_1/callout.xsl +189 -0
  1509. data/lib/stylesheets/xhtml-1_1/changebars.xsl +80 -0
  1510. data/lib/stylesheets/xhtml-1_1/chunk-changebars.xsl +97 -0
  1511. data/lib/stylesheets/xhtml-1_1/chunk-code.xsl +644 -0
  1512. data/lib/stylesheets/xhtml-1_1/chunk-common.xsl +1562 -0
  1513. data/lib/stylesheets/xhtml-1_1/chunk.xsl +53 -0
  1514. data/lib/stylesheets/xhtml-1_1/chunker.xsl +303 -0
  1515. data/lib/stylesheets/xhtml-1_1/chunkfast.xsl +70 -0
  1516. data/lib/stylesheets/xhtml-1_1/chunktoc.xsl +527 -0
  1517. data/lib/stylesheets/xhtml-1_1/component.xsl +397 -0
  1518. data/lib/stylesheets/xhtml-1_1/division.xsl +219 -0
  1519. data/lib/stylesheets/xhtml-1_1/docbook.css.xml +109 -0
  1520. data/lib/stylesheets/xhtml-1_1/docbook.xsl +435 -0
  1521. data/lib/stylesheets/xhtml-1_1/ebnf.xsl +329 -0
  1522. data/lib/stylesheets/xhtml-1_1/footnote.xsl +306 -0
  1523. data/lib/stylesheets/xhtml-1_1/formal.xsl +413 -0
  1524. data/lib/stylesheets/xhtml-1_1/glossary.xsl +565 -0
  1525. data/lib/stylesheets/xhtml-1_1/graphics.xsl +1437 -0
  1526. data/lib/stylesheets/xhtml-1_1/highlight.xsl +89 -0
  1527. data/lib/stylesheets/xhtml-1_1/html-rtf.xsl +321 -0
  1528. data/lib/stylesheets/xhtml-1_1/html.xsl +600 -0
  1529. data/lib/stylesheets/xhtml-1_1/htmltbl.xsl +104 -0
  1530. data/lib/stylesheets/xhtml-1_1/index.xsl +266 -0
  1531. data/lib/stylesheets/xhtml-1_1/info.xsl +46 -0
  1532. data/lib/stylesheets/xhtml-1_1/inline.xsl +1452 -0
  1533. data/lib/stylesheets/xhtml-1_1/keywords.xsl +38 -0
  1534. data/lib/stylesheets/xhtml-1_1/lists.xsl +1090 -0
  1535. data/lib/stylesheets/xhtml-1_1/maketoc.xsl +92 -0
  1536. data/lib/stylesheets/xhtml-1_1/manifest.xsl +23 -0
  1537. data/lib/stylesheets/xhtml-1_1/math.xsl +285 -0
  1538. data/lib/stylesheets/xhtml-1_1/oldchunker.xsl +177 -0
  1539. data/lib/stylesheets/xhtml-1_1/onechunk.xsl +37 -0
  1540. data/lib/stylesheets/xhtml-1_1/param.xsl +438 -0
  1541. data/lib/stylesheets/xhtml-1_1/pi.xsl +1204 -0
  1542. data/lib/stylesheets/xhtml-1_1/profile-chunk-code.xsl +616 -0
  1543. data/lib/stylesheets/xhtml-1_1/profile-chunk.xsl +53 -0
  1544. data/lib/stylesheets/xhtml-1_1/profile-docbook.xsl +407 -0
  1545. data/lib/stylesheets/xhtml-1_1/profile-onechunk.xsl +37 -0
  1546. data/lib/stylesheets/xhtml-1_1/qandaset.xsl +421 -0
  1547. data/lib/stylesheets/xhtml-1_1/refentry.xsl +301 -0
  1548. data/lib/stylesheets/xhtml-1_1/sections.xsl +543 -0
  1549. data/lib/stylesheets/xhtml-1_1/synop.xsl +1515 -0
  1550. data/lib/stylesheets/xhtml-1_1/table.xsl +1169 -0
  1551. data/lib/stylesheets/xhtml-1_1/task.xsl +75 -0
  1552. data/lib/stylesheets/xhtml-1_1/titlepage.templates.xsl +3818 -0
  1553. data/lib/stylesheets/xhtml-1_1/titlepage.xsl +1032 -0
  1554. data/lib/stylesheets/xhtml-1_1/toc.xsl +332 -0
  1555. data/lib/stylesheets/xhtml-1_1/verbatim.xsl +389 -0
  1556. data/lib/stylesheets/xhtml-1_1/xref.xsl +1317 -0
  1557. metadata +1654 -0
@@ -0,0 +1,3818 @@
1
+ <?xml version="1.0"?>
2
+
3
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:d="http://docbook.org/ns/docbook"
4
+ xmlns:exsl="http://exslt.org/common" version="1.0" exclude-result-prefixes="exsl d">
5
+
6
+ <!-- This stylesheet was created by template/titlepage.xsl-->
7
+
8
+ <xsl:template name="article.titlepage.recto">
9
+ <xsl:choose>
10
+ <xsl:when test="d:articleinfo/d:title">
11
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:title"/>
12
+ </xsl:when>
13
+ <xsl:when test="d:artheader/d:title">
14
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:title"/>
15
+ </xsl:when>
16
+ <xsl:when test="d:info/d:title">
17
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:title"/>
18
+ </xsl:when>
19
+ <xsl:when test="d:title">
20
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:title"/>
21
+ </xsl:when>
22
+ </xsl:choose>
23
+
24
+ <xsl:choose>
25
+ <xsl:when test="d:articleinfo/d:subtitle">
26
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:subtitle"/>
27
+ </xsl:when>
28
+ <xsl:when test="d:artheader/d:subtitle">
29
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:subtitle"/>
30
+ </xsl:when>
31
+ <xsl:when test="d:info/d:subtitle">
32
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
33
+ </xsl:when>
34
+ <xsl:when test="d:subtitle">
35
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:subtitle"/>
36
+ </xsl:when>
37
+ </xsl:choose>
38
+
39
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:corpauthor"/>
40
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:corpauthor"/>
41
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
42
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:authorgroup"/>
43
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:authorgroup"/>
44
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
45
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:author"/>
46
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:author"/>
47
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:author"/>
48
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:othercredit"/>
49
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:othercredit"/>
50
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
51
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:releaseinfo"/>
52
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:releaseinfo"/>
53
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
54
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:copyright"/>
55
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:copyright"/>
56
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
57
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:legalnotice"/>
58
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:legalnotice"/>
59
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
60
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:pubdate"/>
61
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:pubdate"/>
62
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
63
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:revision"/>
64
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:revision"/>
65
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:revision"/>
66
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:revhistory"/>
67
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:revhistory"/>
68
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
69
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:articleinfo/d:abstract"/>
70
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:artheader/d:abstract"/>
71
+ <xsl:apply-templates mode="article.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
72
+ </xsl:template>
73
+
74
+ <xsl:template name="article.titlepage.verso">
75
+ </xsl:template>
76
+
77
+ <xsl:template name="article.titlepage.separator"><hr/>
78
+ </xsl:template>
79
+
80
+ <xsl:template name="article.titlepage.before.recto">
81
+ </xsl:template>
82
+
83
+ <xsl:template name="article.titlepage.before.verso">
84
+ </xsl:template>
85
+
86
+ <xsl:template name="article.titlepage">
87
+ <div class="titlepage">
88
+ <xsl:variable name="recto.content">
89
+ <xsl:call-template name="article.titlepage.before.recto"/>
90
+ <xsl:call-template name="article.titlepage.recto"/>
91
+ </xsl:variable>
92
+ <xsl:variable name="recto.elements.count">
93
+ <xsl:choose>
94
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
95
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
96
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
97
+ <xsl:otherwise>1</xsl:otherwise>
98
+ </xsl:choose>
99
+ </xsl:variable>
100
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
101
+ <div><xsl:copy-of select="$recto.content"/></div>
102
+ </xsl:if>
103
+ <xsl:variable name="verso.content">
104
+ <xsl:call-template name="article.titlepage.before.verso"/>
105
+ <xsl:call-template name="article.titlepage.verso"/>
106
+ </xsl:variable>
107
+ <xsl:variable name="verso.elements.count">
108
+ <xsl:choose>
109
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
110
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
111
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
112
+ <xsl:otherwise>1</xsl:otherwise>
113
+ </xsl:choose>
114
+ </xsl:variable>
115
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
116
+ <div><xsl:copy-of select="$verso.content"/></div>
117
+ </xsl:if>
118
+ <xsl:call-template name="article.titlepage.separator"/>
119
+ </div>
120
+ </xsl:template>
121
+
122
+ <xsl:template match="*" mode="article.titlepage.recto.mode">
123
+ <!-- if an element isn't found in this mode, -->
124
+ <!-- try the generic titlepage.mode -->
125
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
126
+ </xsl:template>
127
+
128
+ <xsl:template match="*" mode="article.titlepage.verso.mode">
129
+ <!-- if an element isn't found in this mode, -->
130
+ <!-- try the generic titlepage.mode -->
131
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
132
+ </xsl:template>
133
+
134
+ <xsl:template match="d:title" mode="article.titlepage.recto.auto.mode">
135
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
136
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
137
+ </div>
138
+ </xsl:template>
139
+
140
+ <xsl:template match="d:subtitle" mode="article.titlepage.recto.auto.mode">
141
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
142
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
143
+ </div>
144
+ </xsl:template>
145
+
146
+ <xsl:template match="d:corpauthor" mode="article.titlepage.recto.auto.mode">
147
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
148
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
149
+ </div>
150
+ </xsl:template>
151
+
152
+ <xsl:template match="d:authorgroup" mode="article.titlepage.recto.auto.mode">
153
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
154
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
155
+ </div>
156
+ </xsl:template>
157
+
158
+ <xsl:template match="d:author" mode="article.titlepage.recto.auto.mode">
159
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
160
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
161
+ </div>
162
+ </xsl:template>
163
+
164
+ <xsl:template match="d:othercredit" mode="article.titlepage.recto.auto.mode">
165
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
166
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
167
+ </div>
168
+ </xsl:template>
169
+
170
+ <xsl:template match="d:releaseinfo" mode="article.titlepage.recto.auto.mode">
171
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
172
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
173
+ </div>
174
+ </xsl:template>
175
+
176
+ <xsl:template match="d:copyright" mode="article.titlepage.recto.auto.mode">
177
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
178
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
179
+ </div>
180
+ </xsl:template>
181
+
182
+ <xsl:template match="d:legalnotice" mode="article.titlepage.recto.auto.mode">
183
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
184
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
185
+ </div>
186
+ </xsl:template>
187
+
188
+ <xsl:template match="d:pubdate" mode="article.titlepage.recto.auto.mode">
189
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
190
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
191
+ </div>
192
+ </xsl:template>
193
+
194
+ <xsl:template match="d:revision" mode="article.titlepage.recto.auto.mode">
195
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
196
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
197
+ </div>
198
+ </xsl:template>
199
+
200
+ <xsl:template match="d:revhistory" mode="article.titlepage.recto.auto.mode">
201
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
202
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
203
+ </div>
204
+ </xsl:template>
205
+
206
+ <xsl:template match="d:abstract" mode="article.titlepage.recto.auto.mode">
207
+ <div xsl:use-attribute-sets="article.titlepage.recto.style">
208
+ <xsl:apply-templates select="." mode="article.titlepage.recto.mode"/>
209
+ </div>
210
+ </xsl:template>
211
+
212
+ <xsl:template name="set.titlepage.recto">
213
+ <xsl:choose>
214
+ <xsl:when test="d:setinfo/d:title">
215
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:title"/>
216
+ </xsl:when>
217
+ <xsl:when test="d:info/d:title">
218
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:title"/>
219
+ </xsl:when>
220
+ <xsl:when test="d:title">
221
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:title"/>
222
+ </xsl:when>
223
+ </xsl:choose>
224
+
225
+ <xsl:choose>
226
+ <xsl:when test="d:setinfo/d:subtitle">
227
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:subtitle"/>
228
+ </xsl:when>
229
+ <xsl:when test="d:info/d:subtitle">
230
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
231
+ </xsl:when>
232
+ <xsl:when test="d:subtitle">
233
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:subtitle"/>
234
+ </xsl:when>
235
+ </xsl:choose>
236
+
237
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:corpauthor"/>
238
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
239
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:authorgroup"/>
240
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
241
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:author"/>
242
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:author"/>
243
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:othercredit"/>
244
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
245
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:releaseinfo"/>
246
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
247
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:copyright"/>
248
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
249
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:legalnotice"/>
250
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
251
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:pubdate"/>
252
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
253
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:revision"/>
254
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:revision"/>
255
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:revhistory"/>
256
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
257
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:setinfo/d:abstract"/>
258
+ <xsl:apply-templates mode="set.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
259
+ </xsl:template>
260
+
261
+ <xsl:template name="set.titlepage.verso">
262
+ </xsl:template>
263
+
264
+ <xsl:template name="set.titlepage.separator"><hr/>
265
+ </xsl:template>
266
+
267
+ <xsl:template name="set.titlepage.before.recto">
268
+ </xsl:template>
269
+
270
+ <xsl:template name="set.titlepage.before.verso">
271
+ </xsl:template>
272
+
273
+ <xsl:template name="set.titlepage">
274
+ <div class="titlepage">
275
+ <xsl:variable name="recto.content">
276
+ <xsl:call-template name="set.titlepage.before.recto"/>
277
+ <xsl:call-template name="set.titlepage.recto"/>
278
+ </xsl:variable>
279
+ <xsl:variable name="recto.elements.count">
280
+ <xsl:choose>
281
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
282
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
283
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
284
+ <xsl:otherwise>1</xsl:otherwise>
285
+ </xsl:choose>
286
+ </xsl:variable>
287
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
288
+ <div><xsl:copy-of select="$recto.content"/></div>
289
+ </xsl:if>
290
+ <xsl:variable name="verso.content">
291
+ <xsl:call-template name="set.titlepage.before.verso"/>
292
+ <xsl:call-template name="set.titlepage.verso"/>
293
+ </xsl:variable>
294
+ <xsl:variable name="verso.elements.count">
295
+ <xsl:choose>
296
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
297
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
298
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
299
+ <xsl:otherwise>1</xsl:otherwise>
300
+ </xsl:choose>
301
+ </xsl:variable>
302
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
303
+ <div><xsl:copy-of select="$verso.content"/></div>
304
+ </xsl:if>
305
+ <xsl:call-template name="set.titlepage.separator"/>
306
+ </div>
307
+ </xsl:template>
308
+
309
+ <xsl:template match="*" mode="set.titlepage.recto.mode">
310
+ <!-- if an element isn't found in this mode, -->
311
+ <!-- try the generic titlepage.mode -->
312
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
313
+ </xsl:template>
314
+
315
+ <xsl:template match="*" mode="set.titlepage.verso.mode">
316
+ <!-- if an element isn't found in this mode, -->
317
+ <!-- try the generic titlepage.mode -->
318
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
319
+ </xsl:template>
320
+
321
+ <xsl:template match="d:title" mode="set.titlepage.recto.auto.mode">
322
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
323
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
324
+ </div>
325
+ </xsl:template>
326
+
327
+ <xsl:template match="d:subtitle" mode="set.titlepage.recto.auto.mode">
328
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
329
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
330
+ </div>
331
+ </xsl:template>
332
+
333
+ <xsl:template match="d:corpauthor" mode="set.titlepage.recto.auto.mode">
334
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
335
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
336
+ </div>
337
+ </xsl:template>
338
+
339
+ <xsl:template match="d:authorgroup" mode="set.titlepage.recto.auto.mode">
340
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
341
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
342
+ </div>
343
+ </xsl:template>
344
+
345
+ <xsl:template match="d:author" mode="set.titlepage.recto.auto.mode">
346
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
347
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
348
+ </div>
349
+ </xsl:template>
350
+
351
+ <xsl:template match="d:othercredit" mode="set.titlepage.recto.auto.mode">
352
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
353
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
354
+ </div>
355
+ </xsl:template>
356
+
357
+ <xsl:template match="d:releaseinfo" mode="set.titlepage.recto.auto.mode">
358
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
359
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
360
+ </div>
361
+ </xsl:template>
362
+
363
+ <xsl:template match="d:copyright" mode="set.titlepage.recto.auto.mode">
364
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
365
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
366
+ </div>
367
+ </xsl:template>
368
+
369
+ <xsl:template match="d:legalnotice" mode="set.titlepage.recto.auto.mode">
370
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
371
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
372
+ </div>
373
+ </xsl:template>
374
+
375
+ <xsl:template match="d:pubdate" mode="set.titlepage.recto.auto.mode">
376
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
377
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
378
+ </div>
379
+ </xsl:template>
380
+
381
+ <xsl:template match="d:revision" mode="set.titlepage.recto.auto.mode">
382
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
383
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
384
+ </div>
385
+ </xsl:template>
386
+
387
+ <xsl:template match="d:revhistory" mode="set.titlepage.recto.auto.mode">
388
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
389
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
390
+ </div>
391
+ </xsl:template>
392
+
393
+ <xsl:template match="d:abstract" mode="set.titlepage.recto.auto.mode">
394
+ <div xsl:use-attribute-sets="set.titlepage.recto.style">
395
+ <xsl:apply-templates select="." mode="set.titlepage.recto.mode"/>
396
+ </div>
397
+ </xsl:template>
398
+
399
+ <xsl:template name="book.titlepage.recto">
400
+ <xsl:choose>
401
+ <xsl:when test="d:bookinfo/d:title">
402
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:title"/>
403
+ </xsl:when>
404
+ <xsl:when test="d:info/d:title">
405
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:title"/>
406
+ </xsl:when>
407
+ <xsl:when test="d:title">
408
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:title"/>
409
+ </xsl:when>
410
+ </xsl:choose>
411
+
412
+ <xsl:choose>
413
+ <xsl:when test="d:bookinfo/d:subtitle">
414
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:subtitle"/>
415
+ </xsl:when>
416
+ <xsl:when test="d:info/d:subtitle">
417
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
418
+ </xsl:when>
419
+ <xsl:when test="d:subtitle">
420
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:subtitle"/>
421
+ </xsl:when>
422
+ </xsl:choose>
423
+
424
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:corpauthor"/>
425
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
426
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:authorgroup"/>
427
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
428
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:author"/>
429
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:author"/>
430
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:othercredit"/>
431
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
432
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:releaseinfo"/>
433
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
434
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:copyright"/>
435
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
436
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:legalnotice"/>
437
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
438
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:pubdate"/>
439
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
440
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:revision"/>
441
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:revision"/>
442
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:revhistory"/>
443
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
444
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:abstract"/>
445
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
446
+ </xsl:template>
447
+
448
+ <xsl:template name="book.titlepage.verso">
449
+ </xsl:template>
450
+
451
+ <xsl:template name="book.titlepage.separator"><hr/>
452
+ </xsl:template>
453
+
454
+ <xsl:template name="book.titlepage.before.recto">
455
+ </xsl:template>
456
+
457
+ <xsl:template name="book.titlepage.before.verso">
458
+ </xsl:template>
459
+
460
+ <xsl:template name="book.titlepage">
461
+ <div class="titlepage">
462
+ <xsl:variable name="recto.content">
463
+ <xsl:call-template name="book.titlepage.before.recto"/>
464
+ <xsl:call-template name="book.titlepage.recto"/>
465
+ </xsl:variable>
466
+ <xsl:variable name="recto.elements.count">
467
+ <xsl:choose>
468
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
469
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
470
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
471
+ <xsl:otherwise>1</xsl:otherwise>
472
+ </xsl:choose>
473
+ </xsl:variable>
474
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
475
+ <div><xsl:copy-of select="$recto.content"/></div>
476
+ </xsl:if>
477
+ <xsl:variable name="verso.content">
478
+ <xsl:call-template name="book.titlepage.before.verso"/>
479
+ <xsl:call-template name="book.titlepage.verso"/>
480
+ </xsl:variable>
481
+ <xsl:variable name="verso.elements.count">
482
+ <xsl:choose>
483
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
484
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
485
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
486
+ <xsl:otherwise>1</xsl:otherwise>
487
+ </xsl:choose>
488
+ </xsl:variable>
489
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
490
+ <div><xsl:copy-of select="$verso.content"/></div>
491
+ </xsl:if>
492
+ <xsl:call-template name="book.titlepage.separator"/>
493
+ </div>
494
+ </xsl:template>
495
+
496
+ <xsl:template match="*" mode="book.titlepage.recto.mode">
497
+ <!-- if an element isn't found in this mode, -->
498
+ <!-- try the generic titlepage.mode -->
499
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
500
+ </xsl:template>
501
+
502
+ <xsl:template match="*" mode="book.titlepage.verso.mode">
503
+ <!-- if an element isn't found in this mode, -->
504
+ <!-- try the generic titlepage.mode -->
505
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
506
+ </xsl:template>
507
+
508
+ <xsl:template match="d:title" mode="book.titlepage.recto.auto.mode">
509
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
510
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
511
+ </div>
512
+ </xsl:template>
513
+
514
+ <xsl:template match="d:subtitle" mode="book.titlepage.recto.auto.mode">
515
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
516
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
517
+ </div>
518
+ </xsl:template>
519
+
520
+ <xsl:template match="d:corpauthor" mode="book.titlepage.recto.auto.mode">
521
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
522
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
523
+ </div>
524
+ </xsl:template>
525
+
526
+ <xsl:template match="d:authorgroup" mode="book.titlepage.recto.auto.mode">
527
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
528
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
529
+ </div>
530
+ </xsl:template>
531
+
532
+ <xsl:template match="d:author" mode="book.titlepage.recto.auto.mode">
533
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
534
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
535
+ </div>
536
+ </xsl:template>
537
+
538
+ <xsl:template match="d:othercredit" mode="book.titlepage.recto.auto.mode">
539
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
540
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
541
+ </div>
542
+ </xsl:template>
543
+
544
+ <xsl:template match="d:releaseinfo" mode="book.titlepage.recto.auto.mode">
545
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
546
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
547
+ </div>
548
+ </xsl:template>
549
+
550
+ <xsl:template match="d:copyright" mode="book.titlepage.recto.auto.mode">
551
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
552
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
553
+ </div>
554
+ </xsl:template>
555
+
556
+ <xsl:template match="d:legalnotice" mode="book.titlepage.recto.auto.mode">
557
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
558
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
559
+ </div>
560
+ </xsl:template>
561
+
562
+ <xsl:template match="d:pubdate" mode="book.titlepage.recto.auto.mode">
563
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
564
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
565
+ </div>
566
+ </xsl:template>
567
+
568
+ <xsl:template match="d:revision" mode="book.titlepage.recto.auto.mode">
569
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
570
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
571
+ </div>
572
+ </xsl:template>
573
+
574
+ <xsl:template match="d:revhistory" mode="book.titlepage.recto.auto.mode">
575
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
576
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
577
+ </div>
578
+ </xsl:template>
579
+
580
+ <xsl:template match="d:abstract" mode="book.titlepage.recto.auto.mode">
581
+ <div xsl:use-attribute-sets="book.titlepage.recto.style">
582
+ <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
583
+ </div>
584
+ </xsl:template>
585
+
586
+ <xsl:template name="part.titlepage.recto">
587
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
588
+ <xsl:call-template name="division.title">
589
+ <xsl:with-param name="node" select="ancestor-or-self::d:part[1]"/>
590
+ </xsl:call-template></div>
591
+ <xsl:choose>
592
+ <xsl:when test="d:partinfo/d:subtitle">
593
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:subtitle"/>
594
+ </xsl:when>
595
+ <xsl:when test="d:docinfo/d:subtitle">
596
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
597
+ </xsl:when>
598
+ <xsl:when test="d:info/d:subtitle">
599
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
600
+ </xsl:when>
601
+ <xsl:when test="d:subtitle">
602
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:subtitle"/>
603
+ </xsl:when>
604
+ </xsl:choose>
605
+
606
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:corpauthor"/>
607
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
608
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
609
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:authorgroup"/>
610
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
611
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
612
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:author"/>
613
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
614
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:author"/>
615
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:othercredit"/>
616
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
617
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
618
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:releaseinfo"/>
619
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
620
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
621
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:copyright"/>
622
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
623
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
624
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:legalnotice"/>
625
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
626
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
627
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:pubdate"/>
628
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
629
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
630
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:revision"/>
631
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
632
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:revision"/>
633
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:revhistory"/>
634
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
635
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
636
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:partinfo/d:abstract"/>
637
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
638
+ <xsl:apply-templates mode="part.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
639
+ </xsl:template>
640
+
641
+ <xsl:template name="part.titlepage.verso">
642
+ </xsl:template>
643
+
644
+ <xsl:template name="part.titlepage.separator">
645
+ </xsl:template>
646
+
647
+ <xsl:template name="part.titlepage.before.recto">
648
+ </xsl:template>
649
+
650
+ <xsl:template name="part.titlepage.before.verso">
651
+ </xsl:template>
652
+
653
+ <xsl:template name="part.titlepage">
654
+ <div class="titlepage">
655
+ <xsl:variable name="recto.content">
656
+ <xsl:call-template name="part.titlepage.before.recto"/>
657
+ <xsl:call-template name="part.titlepage.recto"/>
658
+ </xsl:variable>
659
+ <xsl:variable name="recto.elements.count">
660
+ <xsl:choose>
661
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
662
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
663
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
664
+ <xsl:otherwise>1</xsl:otherwise>
665
+ </xsl:choose>
666
+ </xsl:variable>
667
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
668
+ <div><xsl:copy-of select="$recto.content"/></div>
669
+ </xsl:if>
670
+ <xsl:variable name="verso.content">
671
+ <xsl:call-template name="part.titlepage.before.verso"/>
672
+ <xsl:call-template name="part.titlepage.verso"/>
673
+ </xsl:variable>
674
+ <xsl:variable name="verso.elements.count">
675
+ <xsl:choose>
676
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
677
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
678
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
679
+ <xsl:otherwise>1</xsl:otherwise>
680
+ </xsl:choose>
681
+ </xsl:variable>
682
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
683
+ <div><xsl:copy-of select="$verso.content"/></div>
684
+ </xsl:if>
685
+ <xsl:call-template name="part.titlepage.separator"/>
686
+ </div>
687
+ </xsl:template>
688
+
689
+ <xsl:template match="*" mode="part.titlepage.recto.mode">
690
+ <!-- if an element isn't found in this mode, -->
691
+ <!-- try the generic titlepage.mode -->
692
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
693
+ </xsl:template>
694
+
695
+ <xsl:template match="*" mode="part.titlepage.verso.mode">
696
+ <!-- if an element isn't found in this mode, -->
697
+ <!-- try the generic titlepage.mode -->
698
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
699
+ </xsl:template>
700
+
701
+ <xsl:template match="d:subtitle" mode="part.titlepage.recto.auto.mode">
702
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
703
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
704
+ </div>
705
+ </xsl:template>
706
+
707
+ <xsl:template match="d:corpauthor" mode="part.titlepage.recto.auto.mode">
708
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
709
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
710
+ </div>
711
+ </xsl:template>
712
+
713
+ <xsl:template match="d:authorgroup" mode="part.titlepage.recto.auto.mode">
714
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
715
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
716
+ </div>
717
+ </xsl:template>
718
+
719
+ <xsl:template match="d:author" mode="part.titlepage.recto.auto.mode">
720
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
721
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
722
+ </div>
723
+ </xsl:template>
724
+
725
+ <xsl:template match="d:othercredit" mode="part.titlepage.recto.auto.mode">
726
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
727
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
728
+ </div>
729
+ </xsl:template>
730
+
731
+ <xsl:template match="d:releaseinfo" mode="part.titlepage.recto.auto.mode">
732
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
733
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
734
+ </div>
735
+ </xsl:template>
736
+
737
+ <xsl:template match="d:copyright" mode="part.titlepage.recto.auto.mode">
738
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
739
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
740
+ </div>
741
+ </xsl:template>
742
+
743
+ <xsl:template match="d:legalnotice" mode="part.titlepage.recto.auto.mode">
744
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
745
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
746
+ </div>
747
+ </xsl:template>
748
+
749
+ <xsl:template match="d:pubdate" mode="part.titlepage.recto.auto.mode">
750
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
751
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
752
+ </div>
753
+ </xsl:template>
754
+
755
+ <xsl:template match="d:revision" mode="part.titlepage.recto.auto.mode">
756
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
757
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
758
+ </div>
759
+ </xsl:template>
760
+
761
+ <xsl:template match="d:revhistory" mode="part.titlepage.recto.auto.mode">
762
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
763
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
764
+ </div>
765
+ </xsl:template>
766
+
767
+ <xsl:template match="d:abstract" mode="part.titlepage.recto.auto.mode">
768
+ <div xsl:use-attribute-sets="part.titlepage.recto.style">
769
+ <xsl:apply-templates select="." mode="part.titlepage.recto.mode"/>
770
+ </div>
771
+ </xsl:template>
772
+
773
+ <xsl:template name="partintro.titlepage.recto">
774
+ <xsl:choose>
775
+ <xsl:when test="d:partintroinfo/d:title">
776
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:title"/>
777
+ </xsl:when>
778
+ <xsl:when test="d:docinfo/d:title">
779
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
780
+ </xsl:when>
781
+ <xsl:when test="d:info/d:title">
782
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:title"/>
783
+ </xsl:when>
784
+ <xsl:when test="d:title">
785
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:title"/>
786
+ </xsl:when>
787
+ </xsl:choose>
788
+
789
+ <xsl:choose>
790
+ <xsl:when test="d:partintroinfo/d:subtitle">
791
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:subtitle"/>
792
+ </xsl:when>
793
+ <xsl:when test="d:docinfo/d:subtitle">
794
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
795
+ </xsl:when>
796
+ <xsl:when test="d:info/d:subtitle">
797
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
798
+ </xsl:when>
799
+ <xsl:when test="d:subtitle">
800
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:subtitle"/>
801
+ </xsl:when>
802
+ </xsl:choose>
803
+
804
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:corpauthor"/>
805
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
806
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
807
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:authorgroup"/>
808
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
809
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
810
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:author"/>
811
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
812
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:author"/>
813
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:othercredit"/>
814
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
815
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
816
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:releaseinfo"/>
817
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
818
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
819
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:copyright"/>
820
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
821
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
822
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:legalnotice"/>
823
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
824
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
825
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:pubdate"/>
826
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
827
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
828
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:revision"/>
829
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
830
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:revision"/>
831
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:revhistory"/>
832
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
833
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
834
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:partintroinfo/d:abstract"/>
835
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
836
+ <xsl:apply-templates mode="partintro.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
837
+ </xsl:template>
838
+
839
+ <xsl:template name="partintro.titlepage.verso">
840
+ </xsl:template>
841
+
842
+ <xsl:template name="partintro.titlepage.separator">
843
+ </xsl:template>
844
+
845
+ <xsl:template name="partintro.titlepage.before.recto">
846
+ </xsl:template>
847
+
848
+ <xsl:template name="partintro.titlepage.before.verso">
849
+ </xsl:template>
850
+
851
+ <xsl:template name="partintro.titlepage">
852
+ <div>
853
+ <xsl:variable name="recto.content">
854
+ <xsl:call-template name="partintro.titlepage.before.recto"/>
855
+ <xsl:call-template name="partintro.titlepage.recto"/>
856
+ </xsl:variable>
857
+ <xsl:variable name="recto.elements.count">
858
+ <xsl:choose>
859
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
860
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
861
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
862
+ <xsl:otherwise>1</xsl:otherwise>
863
+ </xsl:choose>
864
+ </xsl:variable>
865
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
866
+ <div><xsl:copy-of select="$recto.content"/></div>
867
+ </xsl:if>
868
+ <xsl:variable name="verso.content">
869
+ <xsl:call-template name="partintro.titlepage.before.verso"/>
870
+ <xsl:call-template name="partintro.titlepage.verso"/>
871
+ </xsl:variable>
872
+ <xsl:variable name="verso.elements.count">
873
+ <xsl:choose>
874
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
875
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
876
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
877
+ <xsl:otherwise>1</xsl:otherwise>
878
+ </xsl:choose>
879
+ </xsl:variable>
880
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
881
+ <div><xsl:copy-of select="$verso.content"/></div>
882
+ </xsl:if>
883
+ <xsl:call-template name="partintro.titlepage.separator"/>
884
+ </div>
885
+ </xsl:template>
886
+
887
+ <xsl:template match="*" mode="partintro.titlepage.recto.mode">
888
+ <!-- if an element isn't found in this mode, -->
889
+ <!-- try the generic titlepage.mode -->
890
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
891
+ </xsl:template>
892
+
893
+ <xsl:template match="*" mode="partintro.titlepage.verso.mode">
894
+ <!-- if an element isn't found in this mode, -->
895
+ <!-- try the generic titlepage.mode -->
896
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
897
+ </xsl:template>
898
+
899
+ <xsl:template match="d:title" mode="partintro.titlepage.recto.auto.mode">
900
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
901
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
902
+ </div>
903
+ </xsl:template>
904
+
905
+ <xsl:template match="d:subtitle" mode="partintro.titlepage.recto.auto.mode">
906
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
907
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
908
+ </div>
909
+ </xsl:template>
910
+
911
+ <xsl:template match="d:corpauthor" mode="partintro.titlepage.recto.auto.mode">
912
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
913
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
914
+ </div>
915
+ </xsl:template>
916
+
917
+ <xsl:template match="d:authorgroup" mode="partintro.titlepage.recto.auto.mode">
918
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
919
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
920
+ </div>
921
+ </xsl:template>
922
+
923
+ <xsl:template match="d:author" mode="partintro.titlepage.recto.auto.mode">
924
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
925
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
926
+ </div>
927
+ </xsl:template>
928
+
929
+ <xsl:template match="d:othercredit" mode="partintro.titlepage.recto.auto.mode">
930
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
931
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
932
+ </div>
933
+ </xsl:template>
934
+
935
+ <xsl:template match="d:releaseinfo" mode="partintro.titlepage.recto.auto.mode">
936
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
937
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
938
+ </div>
939
+ </xsl:template>
940
+
941
+ <xsl:template match="d:copyright" mode="partintro.titlepage.recto.auto.mode">
942
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
943
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
944
+ </div>
945
+ </xsl:template>
946
+
947
+ <xsl:template match="d:legalnotice" mode="partintro.titlepage.recto.auto.mode">
948
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
949
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
950
+ </div>
951
+ </xsl:template>
952
+
953
+ <xsl:template match="d:pubdate" mode="partintro.titlepage.recto.auto.mode">
954
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
955
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
956
+ </div>
957
+ </xsl:template>
958
+
959
+ <xsl:template match="d:revision" mode="partintro.titlepage.recto.auto.mode">
960
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
961
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
962
+ </div>
963
+ </xsl:template>
964
+
965
+ <xsl:template match="d:revhistory" mode="partintro.titlepage.recto.auto.mode">
966
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
967
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
968
+ </div>
969
+ </xsl:template>
970
+
971
+ <xsl:template match="d:abstract" mode="partintro.titlepage.recto.auto.mode">
972
+ <div xsl:use-attribute-sets="partintro.titlepage.recto.style">
973
+ <xsl:apply-templates select="." mode="partintro.titlepage.recto.mode"/>
974
+ </div>
975
+ </xsl:template>
976
+
977
+ <xsl:template name="reference.titlepage.recto">
978
+ <xsl:choose>
979
+ <xsl:when test="d:referenceinfo/d:title">
980
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:title"/>
981
+ </xsl:when>
982
+ <xsl:when test="d:docinfo/d:title">
983
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
984
+ </xsl:when>
985
+ <xsl:when test="d:info/d:title">
986
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:title"/>
987
+ </xsl:when>
988
+ <xsl:when test="d:title">
989
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:title"/>
990
+ </xsl:when>
991
+ </xsl:choose>
992
+
993
+ <xsl:choose>
994
+ <xsl:when test="d:referenceinfo/d:subtitle">
995
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:subtitle"/>
996
+ </xsl:when>
997
+ <xsl:when test="d:docinfo/d:subtitle">
998
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
999
+ </xsl:when>
1000
+ <xsl:when test="d:info/d:subtitle">
1001
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1002
+ </xsl:when>
1003
+ <xsl:when test="d:subtitle">
1004
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:subtitle"/>
1005
+ </xsl:when>
1006
+ </xsl:choose>
1007
+
1008
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:corpauthor"/>
1009
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
1010
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
1011
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:authorgroup"/>
1012
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
1013
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
1014
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:author"/>
1015
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
1016
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:author"/>
1017
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:othercredit"/>
1018
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
1019
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
1020
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:releaseinfo"/>
1021
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
1022
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
1023
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:copyright"/>
1024
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
1025
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
1026
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:legalnotice"/>
1027
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
1028
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
1029
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:pubdate"/>
1030
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
1031
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
1032
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:revision"/>
1033
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
1034
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:revision"/>
1035
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:revhistory"/>
1036
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
1037
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
1038
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:referenceinfo/d:abstract"/>
1039
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
1040
+ <xsl:apply-templates mode="reference.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
1041
+ </xsl:template>
1042
+
1043
+ <xsl:template name="reference.titlepage.verso">
1044
+ </xsl:template>
1045
+
1046
+ <xsl:template name="reference.titlepage.separator"><hr/>
1047
+ </xsl:template>
1048
+
1049
+ <xsl:template name="reference.titlepage.before.recto">
1050
+ </xsl:template>
1051
+
1052
+ <xsl:template name="reference.titlepage.before.verso">
1053
+ </xsl:template>
1054
+
1055
+ <xsl:template name="reference.titlepage">
1056
+ <div class="titlepage">
1057
+ <xsl:variable name="recto.content">
1058
+ <xsl:call-template name="reference.titlepage.before.recto"/>
1059
+ <xsl:call-template name="reference.titlepage.recto"/>
1060
+ </xsl:variable>
1061
+ <xsl:variable name="recto.elements.count">
1062
+ <xsl:choose>
1063
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1064
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1065
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1066
+ <xsl:otherwise>1</xsl:otherwise>
1067
+ </xsl:choose>
1068
+ </xsl:variable>
1069
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1070
+ <div><xsl:copy-of select="$recto.content"/></div>
1071
+ </xsl:if>
1072
+ <xsl:variable name="verso.content">
1073
+ <xsl:call-template name="reference.titlepage.before.verso"/>
1074
+ <xsl:call-template name="reference.titlepage.verso"/>
1075
+ </xsl:variable>
1076
+ <xsl:variable name="verso.elements.count">
1077
+ <xsl:choose>
1078
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1079
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1080
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1081
+ <xsl:otherwise>1</xsl:otherwise>
1082
+ </xsl:choose>
1083
+ </xsl:variable>
1084
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1085
+ <div><xsl:copy-of select="$verso.content"/></div>
1086
+ </xsl:if>
1087
+ <xsl:call-template name="reference.titlepage.separator"/>
1088
+ </div>
1089
+ </xsl:template>
1090
+
1091
+ <xsl:template match="*" mode="reference.titlepage.recto.mode">
1092
+ <!-- if an element isn't found in this mode, -->
1093
+ <!-- try the generic titlepage.mode -->
1094
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1095
+ </xsl:template>
1096
+
1097
+ <xsl:template match="*" mode="reference.titlepage.verso.mode">
1098
+ <!-- if an element isn't found in this mode, -->
1099
+ <!-- try the generic titlepage.mode -->
1100
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1101
+ </xsl:template>
1102
+
1103
+ <xsl:template match="d:title" mode="reference.titlepage.recto.auto.mode">
1104
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1105
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1106
+ </div>
1107
+ </xsl:template>
1108
+
1109
+ <xsl:template match="d:subtitle" mode="reference.titlepage.recto.auto.mode">
1110
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1111
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1112
+ </div>
1113
+ </xsl:template>
1114
+
1115
+ <xsl:template match="d:corpauthor" mode="reference.titlepage.recto.auto.mode">
1116
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1117
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1118
+ </div>
1119
+ </xsl:template>
1120
+
1121
+ <xsl:template match="d:authorgroup" mode="reference.titlepage.recto.auto.mode">
1122
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1123
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1124
+ </div>
1125
+ </xsl:template>
1126
+
1127
+ <xsl:template match="d:author" mode="reference.titlepage.recto.auto.mode">
1128
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1129
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1130
+ </div>
1131
+ </xsl:template>
1132
+
1133
+ <xsl:template match="d:othercredit" mode="reference.titlepage.recto.auto.mode">
1134
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1135
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1136
+ </div>
1137
+ </xsl:template>
1138
+
1139
+ <xsl:template match="d:releaseinfo" mode="reference.titlepage.recto.auto.mode">
1140
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1141
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1142
+ </div>
1143
+ </xsl:template>
1144
+
1145
+ <xsl:template match="d:copyright" mode="reference.titlepage.recto.auto.mode">
1146
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1147
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1148
+ </div>
1149
+ </xsl:template>
1150
+
1151
+ <xsl:template match="d:legalnotice" mode="reference.titlepage.recto.auto.mode">
1152
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1153
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1154
+ </div>
1155
+ </xsl:template>
1156
+
1157
+ <xsl:template match="d:pubdate" mode="reference.titlepage.recto.auto.mode">
1158
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1159
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1160
+ </div>
1161
+ </xsl:template>
1162
+
1163
+ <xsl:template match="d:revision" mode="reference.titlepage.recto.auto.mode">
1164
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1165
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1166
+ </div>
1167
+ </xsl:template>
1168
+
1169
+ <xsl:template match="d:revhistory" mode="reference.titlepage.recto.auto.mode">
1170
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1171
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1172
+ </div>
1173
+ </xsl:template>
1174
+
1175
+ <xsl:template match="d:abstract" mode="reference.titlepage.recto.auto.mode">
1176
+ <div xsl:use-attribute-sets="reference.titlepage.recto.style">
1177
+ <xsl:apply-templates select="." mode="reference.titlepage.recto.mode"/>
1178
+ </div>
1179
+ </xsl:template>
1180
+
1181
+ <xsl:template name="refentry.titlepage.recto">
1182
+ </xsl:template>
1183
+
1184
+ <xsl:template name="refentry.titlepage.verso">
1185
+ </xsl:template>
1186
+
1187
+ <xsl:template name="refentry.titlepage.separator">
1188
+ </xsl:template>
1189
+
1190
+ <xsl:template name="refentry.titlepage.before.recto">
1191
+ </xsl:template>
1192
+
1193
+ <xsl:template name="refentry.titlepage.before.verso">
1194
+ </xsl:template>
1195
+
1196
+ <xsl:template name="refentry.titlepage">
1197
+ <div class="titlepage">
1198
+ <xsl:variable name="recto.content">
1199
+ <xsl:call-template name="refentry.titlepage.before.recto"/>
1200
+ <xsl:call-template name="refentry.titlepage.recto"/>
1201
+ </xsl:variable>
1202
+ <xsl:variable name="recto.elements.count">
1203
+ <xsl:choose>
1204
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1205
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1206
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1207
+ <xsl:otherwise>1</xsl:otherwise>
1208
+ </xsl:choose>
1209
+ </xsl:variable>
1210
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1211
+ <div><xsl:copy-of select="$recto.content"/></div>
1212
+ </xsl:if>
1213
+ <xsl:variable name="verso.content">
1214
+ <xsl:call-template name="refentry.titlepage.before.verso"/>
1215
+ <xsl:call-template name="refentry.titlepage.verso"/>
1216
+ </xsl:variable>
1217
+ <xsl:variable name="verso.elements.count">
1218
+ <xsl:choose>
1219
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1220
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1221
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1222
+ <xsl:otherwise>1</xsl:otherwise>
1223
+ </xsl:choose>
1224
+ </xsl:variable>
1225
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1226
+ <div><xsl:copy-of select="$verso.content"/></div>
1227
+ </xsl:if>
1228
+ <xsl:call-template name="refentry.titlepage.separator"/>
1229
+ </div>
1230
+ </xsl:template>
1231
+
1232
+ <xsl:template match="*" mode="refentry.titlepage.recto.mode">
1233
+ <!-- if an element isn't found in this mode, -->
1234
+ <!-- try the generic titlepage.mode -->
1235
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1236
+ </xsl:template>
1237
+
1238
+ <xsl:template match="*" mode="refentry.titlepage.verso.mode">
1239
+ <!-- if an element isn't found in this mode, -->
1240
+ <!-- try the generic titlepage.mode -->
1241
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1242
+ </xsl:template>
1243
+
1244
+ <xsl:template name="dedication.titlepage.recto">
1245
+ <div xsl:use-attribute-sets="dedication.titlepage.recto.style">
1246
+ <xsl:call-template name="component.title">
1247
+ <xsl:with-param name="node" select="ancestor-or-self::d:dedication[1]"/>
1248
+ </xsl:call-template></div>
1249
+ <xsl:choose>
1250
+ <xsl:when test="d:dedicationinfo/d:subtitle">
1251
+ <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:dedicationinfo/d:subtitle"/>
1252
+ </xsl:when>
1253
+ <xsl:when test="d:docinfo/d:subtitle">
1254
+ <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1255
+ </xsl:when>
1256
+ <xsl:when test="d:info/d:subtitle">
1257
+ <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1258
+ </xsl:when>
1259
+ <xsl:when test="d:subtitle">
1260
+ <xsl:apply-templates mode="dedication.titlepage.recto.auto.mode" select="d:subtitle"/>
1261
+ </xsl:when>
1262
+ </xsl:choose>
1263
+
1264
+ </xsl:template>
1265
+
1266
+ <xsl:template name="dedication.titlepage.verso">
1267
+ </xsl:template>
1268
+
1269
+ <xsl:template name="dedication.titlepage.separator">
1270
+ </xsl:template>
1271
+
1272
+ <xsl:template name="dedication.titlepage.before.recto">
1273
+ </xsl:template>
1274
+
1275
+ <xsl:template name="dedication.titlepage.before.verso">
1276
+ </xsl:template>
1277
+
1278
+ <xsl:template name="dedication.titlepage">
1279
+ <div class="titlepage">
1280
+ <xsl:variable name="recto.content">
1281
+ <xsl:call-template name="dedication.titlepage.before.recto"/>
1282
+ <xsl:call-template name="dedication.titlepage.recto"/>
1283
+ </xsl:variable>
1284
+ <xsl:variable name="recto.elements.count">
1285
+ <xsl:choose>
1286
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1287
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1288
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1289
+ <xsl:otherwise>1</xsl:otherwise>
1290
+ </xsl:choose>
1291
+ </xsl:variable>
1292
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1293
+ <div><xsl:copy-of select="$recto.content"/></div>
1294
+ </xsl:if>
1295
+ <xsl:variable name="verso.content">
1296
+ <xsl:call-template name="dedication.titlepage.before.verso"/>
1297
+ <xsl:call-template name="dedication.titlepage.verso"/>
1298
+ </xsl:variable>
1299
+ <xsl:variable name="verso.elements.count">
1300
+ <xsl:choose>
1301
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1302
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1303
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1304
+ <xsl:otherwise>1</xsl:otherwise>
1305
+ </xsl:choose>
1306
+ </xsl:variable>
1307
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1308
+ <div><xsl:copy-of select="$verso.content"/></div>
1309
+ </xsl:if>
1310
+ <xsl:call-template name="dedication.titlepage.separator"/>
1311
+ </div>
1312
+ </xsl:template>
1313
+
1314
+ <xsl:template match="*" mode="dedication.titlepage.recto.mode">
1315
+ <!-- if an element isn't found in this mode, -->
1316
+ <!-- try the generic titlepage.mode -->
1317
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1318
+ </xsl:template>
1319
+
1320
+ <xsl:template match="*" mode="dedication.titlepage.verso.mode">
1321
+ <!-- if an element isn't found in this mode, -->
1322
+ <!-- try the generic titlepage.mode -->
1323
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1324
+ </xsl:template>
1325
+
1326
+ <xsl:template match="d:subtitle" mode="dedication.titlepage.recto.auto.mode">
1327
+ <div xsl:use-attribute-sets="dedication.titlepage.recto.style">
1328
+ <xsl:apply-templates select="." mode="dedication.titlepage.recto.mode"/>
1329
+ </div>
1330
+ </xsl:template>
1331
+
1332
+ <xsl:template name="acknowledgements.titlepage.recto">
1333
+ <div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style">
1334
+ <xsl:call-template name="component.title">
1335
+ <xsl:with-param name="node" select="ancestor-or-self::d:acknowledgements[1]"/>
1336
+ </xsl:call-template></div>
1337
+ <xsl:choose>
1338
+ <xsl:when test="d:acknowledgementsinfo/d:subtitle">
1339
+ <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:acknowledgementsinfo/d:subtitle"/>
1340
+ </xsl:when>
1341
+ <xsl:when test="d:docinfo/d:subtitle">
1342
+ <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1343
+ </xsl:when>
1344
+ <xsl:when test="d:info/d:subtitle">
1345
+ <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1346
+ </xsl:when>
1347
+ <xsl:when test="d:subtitle">
1348
+ <xsl:apply-templates mode="acknowledgements.titlepage.recto.auto.mode" select="d:subtitle"/>
1349
+ </xsl:when>
1350
+ </xsl:choose>
1351
+
1352
+ </xsl:template>
1353
+
1354
+ <xsl:template name="acknowledgements.titlepage.verso">
1355
+ </xsl:template>
1356
+
1357
+ <xsl:template name="acknowledgements.titlepage.separator">
1358
+ </xsl:template>
1359
+
1360
+ <xsl:template name="acknowledgements.titlepage.before.recto">
1361
+ </xsl:template>
1362
+
1363
+ <xsl:template name="acknowledgements.titlepage.before.verso">
1364
+ </xsl:template>
1365
+
1366
+ <xsl:template name="acknowledgements.titlepage">
1367
+ <div class="titlepage">
1368
+ <xsl:variable name="recto.content">
1369
+ <xsl:call-template name="acknowledgements.titlepage.before.recto"/>
1370
+ <xsl:call-template name="acknowledgements.titlepage.recto"/>
1371
+ </xsl:variable>
1372
+ <xsl:variable name="recto.elements.count">
1373
+ <xsl:choose>
1374
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1375
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1376
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1377
+ <xsl:otherwise>1</xsl:otherwise>
1378
+ </xsl:choose>
1379
+ </xsl:variable>
1380
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1381
+ <div><xsl:copy-of select="$recto.content"/></div>
1382
+ </xsl:if>
1383
+ <xsl:variable name="verso.content">
1384
+ <xsl:call-template name="acknowledgements.titlepage.before.verso"/>
1385
+ <xsl:call-template name="acknowledgements.titlepage.verso"/>
1386
+ </xsl:variable>
1387
+ <xsl:variable name="verso.elements.count">
1388
+ <xsl:choose>
1389
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1390
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1391
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1392
+ <xsl:otherwise>1</xsl:otherwise>
1393
+ </xsl:choose>
1394
+ </xsl:variable>
1395
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1396
+ <div><xsl:copy-of select="$verso.content"/></div>
1397
+ </xsl:if>
1398
+ <xsl:call-template name="acknowledgements.titlepage.separator"/>
1399
+ </div>
1400
+ </xsl:template>
1401
+
1402
+ <xsl:template match="*" mode="acknowledgements.titlepage.recto.mode">
1403
+ <!-- if an element isn't found in this mode, -->
1404
+ <!-- try the generic titlepage.mode -->
1405
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1406
+ </xsl:template>
1407
+
1408
+ <xsl:template match="*" mode="acknowledgements.titlepage.verso.mode">
1409
+ <!-- if an element isn't found in this mode, -->
1410
+ <!-- try the generic titlepage.mode -->
1411
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1412
+ </xsl:template>
1413
+
1414
+ <xsl:template match="d:subtitle" mode="acknowledgements.titlepage.recto.auto.mode">
1415
+ <div xsl:use-attribute-sets="acknowledgements.titlepage.recto.style">
1416
+ <xsl:apply-templates select="." mode="acknowledgements.titlepage.recto.mode"/>
1417
+ </div>
1418
+ </xsl:template>
1419
+
1420
+ <xsl:template name="preface.titlepage.recto">
1421
+ <xsl:choose>
1422
+ <xsl:when test="d:prefaceinfo/d:title">
1423
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:title"/>
1424
+ </xsl:when>
1425
+ <xsl:when test="d:docinfo/d:title">
1426
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1427
+ </xsl:when>
1428
+ <xsl:when test="d:info/d:title">
1429
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:title"/>
1430
+ </xsl:when>
1431
+ <xsl:when test="d:title">
1432
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:title"/>
1433
+ </xsl:when>
1434
+ </xsl:choose>
1435
+
1436
+ <xsl:choose>
1437
+ <xsl:when test="d:prefaceinfo/d:subtitle">
1438
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:subtitle"/>
1439
+ </xsl:when>
1440
+ <xsl:when test="d:docinfo/d:subtitle">
1441
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1442
+ </xsl:when>
1443
+ <xsl:when test="d:info/d:subtitle">
1444
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1445
+ </xsl:when>
1446
+ <xsl:when test="d:subtitle">
1447
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:subtitle"/>
1448
+ </xsl:when>
1449
+ </xsl:choose>
1450
+
1451
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:corpauthor"/>
1452
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
1453
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
1454
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:authorgroup"/>
1455
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
1456
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
1457
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:author"/>
1458
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
1459
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:author"/>
1460
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:othercredit"/>
1461
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
1462
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
1463
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:releaseinfo"/>
1464
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
1465
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
1466
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:copyright"/>
1467
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
1468
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
1469
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:legalnotice"/>
1470
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
1471
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
1472
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:pubdate"/>
1473
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
1474
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
1475
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:revision"/>
1476
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
1477
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:revision"/>
1478
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:revhistory"/>
1479
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
1480
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
1481
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:prefaceinfo/d:abstract"/>
1482
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
1483
+ <xsl:apply-templates mode="preface.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
1484
+ </xsl:template>
1485
+
1486
+ <xsl:template name="preface.titlepage.verso">
1487
+ </xsl:template>
1488
+
1489
+ <xsl:template name="preface.titlepage.separator">
1490
+ </xsl:template>
1491
+
1492
+ <xsl:template name="preface.titlepage.before.recto">
1493
+ </xsl:template>
1494
+
1495
+ <xsl:template name="preface.titlepage.before.verso">
1496
+ </xsl:template>
1497
+
1498
+ <xsl:template name="preface.titlepage">
1499
+ <div class="titlepage">
1500
+ <xsl:variable name="recto.content">
1501
+ <xsl:call-template name="preface.titlepage.before.recto"/>
1502
+ <xsl:call-template name="preface.titlepage.recto"/>
1503
+ </xsl:variable>
1504
+ <xsl:variable name="recto.elements.count">
1505
+ <xsl:choose>
1506
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1507
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1508
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1509
+ <xsl:otherwise>1</xsl:otherwise>
1510
+ </xsl:choose>
1511
+ </xsl:variable>
1512
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1513
+ <div><xsl:copy-of select="$recto.content"/></div>
1514
+ </xsl:if>
1515
+ <xsl:variable name="verso.content">
1516
+ <xsl:call-template name="preface.titlepage.before.verso"/>
1517
+ <xsl:call-template name="preface.titlepage.verso"/>
1518
+ </xsl:variable>
1519
+ <xsl:variable name="verso.elements.count">
1520
+ <xsl:choose>
1521
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1522
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1523
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1524
+ <xsl:otherwise>1</xsl:otherwise>
1525
+ </xsl:choose>
1526
+ </xsl:variable>
1527
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1528
+ <div><xsl:copy-of select="$verso.content"/></div>
1529
+ </xsl:if>
1530
+ <xsl:call-template name="preface.titlepage.separator"/>
1531
+ </div>
1532
+ </xsl:template>
1533
+
1534
+ <xsl:template match="*" mode="preface.titlepage.recto.mode">
1535
+ <!-- if an element isn't found in this mode, -->
1536
+ <!-- try the generic titlepage.mode -->
1537
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1538
+ </xsl:template>
1539
+
1540
+ <xsl:template match="*" mode="preface.titlepage.verso.mode">
1541
+ <!-- if an element isn't found in this mode, -->
1542
+ <!-- try the generic titlepage.mode -->
1543
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1544
+ </xsl:template>
1545
+
1546
+ <xsl:template match="d:title" mode="preface.titlepage.recto.auto.mode">
1547
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1548
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1549
+ </div>
1550
+ </xsl:template>
1551
+
1552
+ <xsl:template match="d:subtitle" mode="preface.titlepage.recto.auto.mode">
1553
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1554
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1555
+ </div>
1556
+ </xsl:template>
1557
+
1558
+ <xsl:template match="d:corpauthor" mode="preface.titlepage.recto.auto.mode">
1559
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1560
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1561
+ </div>
1562
+ </xsl:template>
1563
+
1564
+ <xsl:template match="d:authorgroup" mode="preface.titlepage.recto.auto.mode">
1565
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1566
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1567
+ </div>
1568
+ </xsl:template>
1569
+
1570
+ <xsl:template match="d:author" mode="preface.titlepage.recto.auto.mode">
1571
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1572
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1573
+ </div>
1574
+ </xsl:template>
1575
+
1576
+ <xsl:template match="d:othercredit" mode="preface.titlepage.recto.auto.mode">
1577
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1578
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1579
+ </div>
1580
+ </xsl:template>
1581
+
1582
+ <xsl:template match="d:releaseinfo" mode="preface.titlepage.recto.auto.mode">
1583
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1584
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1585
+ </div>
1586
+ </xsl:template>
1587
+
1588
+ <xsl:template match="d:copyright" mode="preface.titlepage.recto.auto.mode">
1589
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1590
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1591
+ </div>
1592
+ </xsl:template>
1593
+
1594
+ <xsl:template match="d:legalnotice" mode="preface.titlepage.recto.auto.mode">
1595
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1596
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1597
+ </div>
1598
+ </xsl:template>
1599
+
1600
+ <xsl:template match="d:pubdate" mode="preface.titlepage.recto.auto.mode">
1601
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1602
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1603
+ </div>
1604
+ </xsl:template>
1605
+
1606
+ <xsl:template match="d:revision" mode="preface.titlepage.recto.auto.mode">
1607
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1608
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1609
+ </div>
1610
+ </xsl:template>
1611
+
1612
+ <xsl:template match="d:revhistory" mode="preface.titlepage.recto.auto.mode">
1613
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1614
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1615
+ </div>
1616
+ </xsl:template>
1617
+
1618
+ <xsl:template match="d:abstract" mode="preface.titlepage.recto.auto.mode">
1619
+ <div xsl:use-attribute-sets="preface.titlepage.recto.style">
1620
+ <xsl:apply-templates select="." mode="preface.titlepage.recto.mode"/>
1621
+ </div>
1622
+ </xsl:template>
1623
+
1624
+ <xsl:template name="chapter.titlepage.recto">
1625
+ <xsl:choose>
1626
+ <xsl:when test="d:chapterinfo/d:title">
1627
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:title"/>
1628
+ </xsl:when>
1629
+ <xsl:when test="d:docinfo/d:title">
1630
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1631
+ </xsl:when>
1632
+ <xsl:when test="d:info/d:title">
1633
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:title"/>
1634
+ </xsl:when>
1635
+ <xsl:when test="d:title">
1636
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:title"/>
1637
+ </xsl:when>
1638
+ </xsl:choose>
1639
+
1640
+ <xsl:choose>
1641
+ <xsl:when test="d:chapterinfo/d:subtitle">
1642
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:subtitle"/>
1643
+ </xsl:when>
1644
+ <xsl:when test="d:docinfo/d:subtitle">
1645
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1646
+ </xsl:when>
1647
+ <xsl:when test="d:info/d:subtitle">
1648
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1649
+ </xsl:when>
1650
+ <xsl:when test="d:subtitle">
1651
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:subtitle"/>
1652
+ </xsl:when>
1653
+ </xsl:choose>
1654
+
1655
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:corpauthor"/>
1656
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
1657
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
1658
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:authorgroup"/>
1659
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
1660
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
1661
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:author"/>
1662
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
1663
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:author"/>
1664
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:othercredit"/>
1665
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
1666
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
1667
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:releaseinfo"/>
1668
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
1669
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
1670
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:copyright"/>
1671
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
1672
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
1673
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:legalnotice"/>
1674
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
1675
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
1676
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:pubdate"/>
1677
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
1678
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
1679
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:revision"/>
1680
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
1681
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:revision"/>
1682
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:revhistory"/>
1683
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
1684
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
1685
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:chapterinfo/d:abstract"/>
1686
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
1687
+ <xsl:apply-templates mode="chapter.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
1688
+ </xsl:template>
1689
+
1690
+ <xsl:template name="chapter.titlepage.verso">
1691
+ </xsl:template>
1692
+
1693
+ <xsl:template name="chapter.titlepage.separator">
1694
+ </xsl:template>
1695
+
1696
+ <xsl:template name="chapter.titlepage.before.recto">
1697
+ </xsl:template>
1698
+
1699
+ <xsl:template name="chapter.titlepage.before.verso">
1700
+ </xsl:template>
1701
+
1702
+ <xsl:template name="chapter.titlepage">
1703
+ <div class="titlepage">
1704
+ <xsl:variable name="recto.content">
1705
+ <xsl:call-template name="chapter.titlepage.before.recto"/>
1706
+ <xsl:call-template name="chapter.titlepage.recto"/>
1707
+ </xsl:variable>
1708
+ <xsl:variable name="recto.elements.count">
1709
+ <xsl:choose>
1710
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1711
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1712
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1713
+ <xsl:otherwise>1</xsl:otherwise>
1714
+ </xsl:choose>
1715
+ </xsl:variable>
1716
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1717
+ <div><xsl:copy-of select="$recto.content"/></div>
1718
+ </xsl:if>
1719
+ <xsl:variable name="verso.content">
1720
+ <xsl:call-template name="chapter.titlepage.before.verso"/>
1721
+ <xsl:call-template name="chapter.titlepage.verso"/>
1722
+ </xsl:variable>
1723
+ <xsl:variable name="verso.elements.count">
1724
+ <xsl:choose>
1725
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1726
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1727
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1728
+ <xsl:otherwise>1</xsl:otherwise>
1729
+ </xsl:choose>
1730
+ </xsl:variable>
1731
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1732
+ <div><xsl:copy-of select="$verso.content"/></div>
1733
+ </xsl:if>
1734
+ <xsl:call-template name="chapter.titlepage.separator"/>
1735
+ </div>
1736
+ </xsl:template>
1737
+
1738
+ <xsl:template match="*" mode="chapter.titlepage.recto.mode">
1739
+ <!-- if an element isn't found in this mode, -->
1740
+ <!-- try the generic titlepage.mode -->
1741
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1742
+ </xsl:template>
1743
+
1744
+ <xsl:template match="*" mode="chapter.titlepage.verso.mode">
1745
+ <!-- if an element isn't found in this mode, -->
1746
+ <!-- try the generic titlepage.mode -->
1747
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1748
+ </xsl:template>
1749
+
1750
+ <xsl:template match="d:title" mode="chapter.titlepage.recto.auto.mode">
1751
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1752
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1753
+ </div>
1754
+ </xsl:template>
1755
+
1756
+ <xsl:template match="d:subtitle" mode="chapter.titlepage.recto.auto.mode">
1757
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1758
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1759
+ </div>
1760
+ </xsl:template>
1761
+
1762
+ <xsl:template match="d:corpauthor" mode="chapter.titlepage.recto.auto.mode">
1763
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1764
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1765
+ </div>
1766
+ </xsl:template>
1767
+
1768
+ <xsl:template match="d:authorgroup" mode="chapter.titlepage.recto.auto.mode">
1769
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1770
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1771
+ </div>
1772
+ </xsl:template>
1773
+
1774
+ <xsl:template match="d:author" mode="chapter.titlepage.recto.auto.mode">
1775
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1776
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1777
+ </div>
1778
+ </xsl:template>
1779
+
1780
+ <xsl:template match="d:othercredit" mode="chapter.titlepage.recto.auto.mode">
1781
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1782
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1783
+ </div>
1784
+ </xsl:template>
1785
+
1786
+ <xsl:template match="d:releaseinfo" mode="chapter.titlepage.recto.auto.mode">
1787
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1788
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1789
+ </div>
1790
+ </xsl:template>
1791
+
1792
+ <xsl:template match="d:copyright" mode="chapter.titlepage.recto.auto.mode">
1793
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1794
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1795
+ </div>
1796
+ </xsl:template>
1797
+
1798
+ <xsl:template match="d:legalnotice" mode="chapter.titlepage.recto.auto.mode">
1799
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1800
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1801
+ </div>
1802
+ </xsl:template>
1803
+
1804
+ <xsl:template match="d:pubdate" mode="chapter.titlepage.recto.auto.mode">
1805
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1806
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1807
+ </div>
1808
+ </xsl:template>
1809
+
1810
+ <xsl:template match="d:revision" mode="chapter.titlepage.recto.auto.mode">
1811
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1812
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1813
+ </div>
1814
+ </xsl:template>
1815
+
1816
+ <xsl:template match="d:revhistory" mode="chapter.titlepage.recto.auto.mode">
1817
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1818
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1819
+ </div>
1820
+ </xsl:template>
1821
+
1822
+ <xsl:template match="d:abstract" mode="chapter.titlepage.recto.auto.mode">
1823
+ <div xsl:use-attribute-sets="chapter.titlepage.recto.style">
1824
+ <xsl:apply-templates select="." mode="chapter.titlepage.recto.mode"/>
1825
+ </div>
1826
+ </xsl:template>
1827
+
1828
+ <xsl:template name="appendix.titlepage.recto">
1829
+ <xsl:choose>
1830
+ <xsl:when test="d:appendixinfo/d:title">
1831
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:title"/>
1832
+ </xsl:when>
1833
+ <xsl:when test="d:docinfo/d:title">
1834
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
1835
+ </xsl:when>
1836
+ <xsl:when test="d:info/d:title">
1837
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:title"/>
1838
+ </xsl:when>
1839
+ <xsl:when test="d:title">
1840
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:title"/>
1841
+ </xsl:when>
1842
+ </xsl:choose>
1843
+
1844
+ <xsl:choose>
1845
+ <xsl:when test="d:appendixinfo/d:subtitle">
1846
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:subtitle"/>
1847
+ </xsl:when>
1848
+ <xsl:when test="d:docinfo/d:subtitle">
1849
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
1850
+ </xsl:when>
1851
+ <xsl:when test="d:info/d:subtitle">
1852
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
1853
+ </xsl:when>
1854
+ <xsl:when test="d:subtitle">
1855
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:subtitle"/>
1856
+ </xsl:when>
1857
+ </xsl:choose>
1858
+
1859
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:corpauthor"/>
1860
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
1861
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
1862
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:authorgroup"/>
1863
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
1864
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
1865
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:author"/>
1866
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
1867
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:author"/>
1868
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:othercredit"/>
1869
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
1870
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
1871
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:releaseinfo"/>
1872
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
1873
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
1874
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:copyright"/>
1875
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
1876
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
1877
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:legalnotice"/>
1878
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
1879
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
1880
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:pubdate"/>
1881
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
1882
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
1883
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:revision"/>
1884
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
1885
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:revision"/>
1886
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:revhistory"/>
1887
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
1888
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
1889
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:appendixinfo/d:abstract"/>
1890
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
1891
+ <xsl:apply-templates mode="appendix.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
1892
+ </xsl:template>
1893
+
1894
+ <xsl:template name="appendix.titlepage.verso">
1895
+ </xsl:template>
1896
+
1897
+ <xsl:template name="appendix.titlepage.separator">
1898
+ </xsl:template>
1899
+
1900
+ <xsl:template name="appendix.titlepage.before.recto">
1901
+ </xsl:template>
1902
+
1903
+ <xsl:template name="appendix.titlepage.before.verso">
1904
+ </xsl:template>
1905
+
1906
+ <xsl:template name="appendix.titlepage">
1907
+ <div class="titlepage">
1908
+ <xsl:variable name="recto.content">
1909
+ <xsl:call-template name="appendix.titlepage.before.recto"/>
1910
+ <xsl:call-template name="appendix.titlepage.recto"/>
1911
+ </xsl:variable>
1912
+ <xsl:variable name="recto.elements.count">
1913
+ <xsl:choose>
1914
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1915
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1916
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
1917
+ <xsl:otherwise>1</xsl:otherwise>
1918
+ </xsl:choose>
1919
+ </xsl:variable>
1920
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
1921
+ <div><xsl:copy-of select="$recto.content"/></div>
1922
+ </xsl:if>
1923
+ <xsl:variable name="verso.content">
1924
+ <xsl:call-template name="appendix.titlepage.before.verso"/>
1925
+ <xsl:call-template name="appendix.titlepage.verso"/>
1926
+ </xsl:variable>
1927
+ <xsl:variable name="verso.elements.count">
1928
+ <xsl:choose>
1929
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1930
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
1931
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
1932
+ <xsl:otherwise>1</xsl:otherwise>
1933
+ </xsl:choose>
1934
+ </xsl:variable>
1935
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
1936
+ <div><xsl:copy-of select="$verso.content"/></div>
1937
+ </xsl:if>
1938
+ <xsl:call-template name="appendix.titlepage.separator"/>
1939
+ </div>
1940
+ </xsl:template>
1941
+
1942
+ <xsl:template match="*" mode="appendix.titlepage.recto.mode">
1943
+ <!-- if an element isn't found in this mode, -->
1944
+ <!-- try the generic titlepage.mode -->
1945
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1946
+ </xsl:template>
1947
+
1948
+ <xsl:template match="*" mode="appendix.titlepage.verso.mode">
1949
+ <!-- if an element isn't found in this mode, -->
1950
+ <!-- try the generic titlepage.mode -->
1951
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
1952
+ </xsl:template>
1953
+
1954
+ <xsl:template match="d:title" mode="appendix.titlepage.recto.auto.mode">
1955
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1956
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1957
+ </div>
1958
+ </xsl:template>
1959
+
1960
+ <xsl:template match="d:subtitle" mode="appendix.titlepage.recto.auto.mode">
1961
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1962
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1963
+ </div>
1964
+ </xsl:template>
1965
+
1966
+ <xsl:template match="d:corpauthor" mode="appendix.titlepage.recto.auto.mode">
1967
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1968
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1969
+ </div>
1970
+ </xsl:template>
1971
+
1972
+ <xsl:template match="d:authorgroup" mode="appendix.titlepage.recto.auto.mode">
1973
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1974
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1975
+ </div>
1976
+ </xsl:template>
1977
+
1978
+ <xsl:template match="d:author" mode="appendix.titlepage.recto.auto.mode">
1979
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1980
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1981
+ </div>
1982
+ </xsl:template>
1983
+
1984
+ <xsl:template match="d:othercredit" mode="appendix.titlepage.recto.auto.mode">
1985
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1986
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1987
+ </div>
1988
+ </xsl:template>
1989
+
1990
+ <xsl:template match="d:releaseinfo" mode="appendix.titlepage.recto.auto.mode">
1991
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1992
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1993
+ </div>
1994
+ </xsl:template>
1995
+
1996
+ <xsl:template match="d:copyright" mode="appendix.titlepage.recto.auto.mode">
1997
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
1998
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
1999
+ </div>
2000
+ </xsl:template>
2001
+
2002
+ <xsl:template match="d:legalnotice" mode="appendix.titlepage.recto.auto.mode">
2003
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2004
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2005
+ </div>
2006
+ </xsl:template>
2007
+
2008
+ <xsl:template match="d:pubdate" mode="appendix.titlepage.recto.auto.mode">
2009
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2010
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2011
+ </div>
2012
+ </xsl:template>
2013
+
2014
+ <xsl:template match="d:revision" mode="appendix.titlepage.recto.auto.mode">
2015
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2016
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2017
+ </div>
2018
+ </xsl:template>
2019
+
2020
+ <xsl:template match="d:revhistory" mode="appendix.titlepage.recto.auto.mode">
2021
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2022
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2023
+ </div>
2024
+ </xsl:template>
2025
+
2026
+ <xsl:template match="d:abstract" mode="appendix.titlepage.recto.auto.mode">
2027
+ <div xsl:use-attribute-sets="appendix.titlepage.recto.style">
2028
+ <xsl:apply-templates select="." mode="appendix.titlepage.recto.mode"/>
2029
+ </div>
2030
+ </xsl:template>
2031
+
2032
+ <xsl:template name="section.titlepage.recto">
2033
+ <xsl:choose>
2034
+ <xsl:when test="d:sectioninfo/d:title">
2035
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:title"/>
2036
+ </xsl:when>
2037
+ <xsl:when test="d:info/d:title">
2038
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:title"/>
2039
+ </xsl:when>
2040
+ <xsl:when test="d:title">
2041
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:title"/>
2042
+ </xsl:when>
2043
+ </xsl:choose>
2044
+
2045
+ <xsl:choose>
2046
+ <xsl:when test="d:sectioninfo/d:subtitle">
2047
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:subtitle"/>
2048
+ </xsl:when>
2049
+ <xsl:when test="d:info/d:subtitle">
2050
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2051
+ </xsl:when>
2052
+ <xsl:when test="d:subtitle">
2053
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:subtitle"/>
2054
+ </xsl:when>
2055
+ </xsl:choose>
2056
+
2057
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:corpauthor"/>
2058
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2059
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:authorgroup"/>
2060
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2061
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:author"/>
2062
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:author"/>
2063
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:othercredit"/>
2064
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2065
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:releaseinfo"/>
2066
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2067
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:copyright"/>
2068
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2069
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:legalnotice"/>
2070
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2071
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:pubdate"/>
2072
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2073
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:revision"/>
2074
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2075
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:revhistory"/>
2076
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2077
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:sectioninfo/d:abstract"/>
2078
+ <xsl:apply-templates mode="section.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2079
+ </xsl:template>
2080
+
2081
+ <xsl:template name="section.titlepage.verso">
2082
+ </xsl:template>
2083
+
2084
+ <xsl:template name="section.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2085
+ </xsl:template>
2086
+
2087
+ <xsl:template name="section.titlepage.before.recto">
2088
+ </xsl:template>
2089
+
2090
+ <xsl:template name="section.titlepage.before.verso">
2091
+ </xsl:template>
2092
+
2093
+ <xsl:template name="section.titlepage">
2094
+ <div class="titlepage">
2095
+ <xsl:variable name="recto.content">
2096
+ <xsl:call-template name="section.titlepage.before.recto"/>
2097
+ <xsl:call-template name="section.titlepage.recto"/>
2098
+ </xsl:variable>
2099
+ <xsl:variable name="recto.elements.count">
2100
+ <xsl:choose>
2101
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2102
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2103
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2104
+ <xsl:otherwise>1</xsl:otherwise>
2105
+ </xsl:choose>
2106
+ </xsl:variable>
2107
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2108
+ <div><xsl:copy-of select="$recto.content"/></div>
2109
+ </xsl:if>
2110
+ <xsl:variable name="verso.content">
2111
+ <xsl:call-template name="section.titlepage.before.verso"/>
2112
+ <xsl:call-template name="section.titlepage.verso"/>
2113
+ </xsl:variable>
2114
+ <xsl:variable name="verso.elements.count">
2115
+ <xsl:choose>
2116
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2117
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2118
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2119
+ <xsl:otherwise>1</xsl:otherwise>
2120
+ </xsl:choose>
2121
+ </xsl:variable>
2122
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2123
+ <div><xsl:copy-of select="$verso.content"/></div>
2124
+ </xsl:if>
2125
+ <xsl:call-template name="section.titlepage.separator"/>
2126
+ </div>
2127
+ </xsl:template>
2128
+
2129
+ <xsl:template match="*" mode="section.titlepage.recto.mode">
2130
+ <!-- if an element isn't found in this mode, -->
2131
+ <!-- try the generic titlepage.mode -->
2132
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
2133
+ </xsl:template>
2134
+
2135
+ <xsl:template match="*" mode="section.titlepage.verso.mode">
2136
+ <!-- if an element isn't found in this mode, -->
2137
+ <!-- try the generic titlepage.mode -->
2138
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
2139
+ </xsl:template>
2140
+
2141
+ <xsl:template match="d:title" mode="section.titlepage.recto.auto.mode">
2142
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2143
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2144
+ </div>
2145
+ </xsl:template>
2146
+
2147
+ <xsl:template match="d:subtitle" mode="section.titlepage.recto.auto.mode">
2148
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2149
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2150
+ </div>
2151
+ </xsl:template>
2152
+
2153
+ <xsl:template match="d:corpauthor" mode="section.titlepage.recto.auto.mode">
2154
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2155
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2156
+ </div>
2157
+ </xsl:template>
2158
+
2159
+ <xsl:template match="d:authorgroup" mode="section.titlepage.recto.auto.mode">
2160
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2161
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2162
+ </div>
2163
+ </xsl:template>
2164
+
2165
+ <xsl:template match="d:author" mode="section.titlepage.recto.auto.mode">
2166
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2167
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2168
+ </div>
2169
+ </xsl:template>
2170
+
2171
+ <xsl:template match="d:othercredit" mode="section.titlepage.recto.auto.mode">
2172
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2173
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2174
+ </div>
2175
+ </xsl:template>
2176
+
2177
+ <xsl:template match="d:releaseinfo" mode="section.titlepage.recto.auto.mode">
2178
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2179
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2180
+ </div>
2181
+ </xsl:template>
2182
+
2183
+ <xsl:template match="d:copyright" mode="section.titlepage.recto.auto.mode">
2184
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2185
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2186
+ </div>
2187
+ </xsl:template>
2188
+
2189
+ <xsl:template match="d:legalnotice" mode="section.titlepage.recto.auto.mode">
2190
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2191
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2192
+ </div>
2193
+ </xsl:template>
2194
+
2195
+ <xsl:template match="d:pubdate" mode="section.titlepage.recto.auto.mode">
2196
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2197
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2198
+ </div>
2199
+ </xsl:template>
2200
+
2201
+ <xsl:template match="d:revision" mode="section.titlepage.recto.auto.mode">
2202
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2203
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2204
+ </div>
2205
+ </xsl:template>
2206
+
2207
+ <xsl:template match="d:revhistory" mode="section.titlepage.recto.auto.mode">
2208
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2209
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2210
+ </div>
2211
+ </xsl:template>
2212
+
2213
+ <xsl:template match="d:abstract" mode="section.titlepage.recto.auto.mode">
2214
+ <div xsl:use-attribute-sets="section.titlepage.recto.style">
2215
+ <xsl:apply-templates select="." mode="section.titlepage.recto.mode"/>
2216
+ </div>
2217
+ </xsl:template>
2218
+
2219
+ <xsl:template name="sect1.titlepage.recto">
2220
+ <xsl:choose>
2221
+ <xsl:when test="d:sect1info/d:title">
2222
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:title"/>
2223
+ </xsl:when>
2224
+ <xsl:when test="d:info/d:title">
2225
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:title"/>
2226
+ </xsl:when>
2227
+ <xsl:when test="d:title">
2228
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:title"/>
2229
+ </xsl:when>
2230
+ </xsl:choose>
2231
+
2232
+ <xsl:choose>
2233
+ <xsl:when test="d:sect1info/d:subtitle">
2234
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:subtitle"/>
2235
+ </xsl:when>
2236
+ <xsl:when test="d:info/d:subtitle">
2237
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2238
+ </xsl:when>
2239
+ <xsl:when test="d:subtitle">
2240
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:subtitle"/>
2241
+ </xsl:when>
2242
+ </xsl:choose>
2243
+
2244
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:corpauthor"/>
2245
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2246
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:authorgroup"/>
2247
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2248
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:author"/>
2249
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:author"/>
2250
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:othercredit"/>
2251
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2252
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:releaseinfo"/>
2253
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2254
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:copyright"/>
2255
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2256
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:legalnotice"/>
2257
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2258
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:pubdate"/>
2259
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2260
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:revision"/>
2261
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2262
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:revhistory"/>
2263
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2264
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:sect1info/d:abstract"/>
2265
+ <xsl:apply-templates mode="sect1.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2266
+ </xsl:template>
2267
+
2268
+ <xsl:template name="sect1.titlepage.verso">
2269
+ </xsl:template>
2270
+
2271
+ <xsl:template name="sect1.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2272
+ </xsl:template>
2273
+
2274
+ <xsl:template name="sect1.titlepage.before.recto">
2275
+ </xsl:template>
2276
+
2277
+ <xsl:template name="sect1.titlepage.before.verso">
2278
+ </xsl:template>
2279
+
2280
+ <xsl:template name="sect1.titlepage">
2281
+ <div class="titlepage">
2282
+ <xsl:variable name="recto.content">
2283
+ <xsl:call-template name="sect1.titlepage.before.recto"/>
2284
+ <xsl:call-template name="sect1.titlepage.recto"/>
2285
+ </xsl:variable>
2286
+ <xsl:variable name="recto.elements.count">
2287
+ <xsl:choose>
2288
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2289
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2290
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2291
+ <xsl:otherwise>1</xsl:otherwise>
2292
+ </xsl:choose>
2293
+ </xsl:variable>
2294
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2295
+ <div><xsl:copy-of select="$recto.content"/></div>
2296
+ </xsl:if>
2297
+ <xsl:variable name="verso.content">
2298
+ <xsl:call-template name="sect1.titlepage.before.verso"/>
2299
+ <xsl:call-template name="sect1.titlepage.verso"/>
2300
+ </xsl:variable>
2301
+ <xsl:variable name="verso.elements.count">
2302
+ <xsl:choose>
2303
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2304
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2305
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2306
+ <xsl:otherwise>1</xsl:otherwise>
2307
+ </xsl:choose>
2308
+ </xsl:variable>
2309
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2310
+ <div><xsl:copy-of select="$verso.content"/></div>
2311
+ </xsl:if>
2312
+ <xsl:call-template name="sect1.titlepage.separator"/>
2313
+ </div>
2314
+ </xsl:template>
2315
+
2316
+ <xsl:template match="*" mode="sect1.titlepage.recto.mode">
2317
+ <!-- if an element isn't found in this mode, -->
2318
+ <!-- try the generic titlepage.mode -->
2319
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
2320
+ </xsl:template>
2321
+
2322
+ <xsl:template match="*" mode="sect1.titlepage.verso.mode">
2323
+ <!-- if an element isn't found in this mode, -->
2324
+ <!-- try the generic titlepage.mode -->
2325
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
2326
+ </xsl:template>
2327
+
2328
+ <xsl:template match="d:title" mode="sect1.titlepage.recto.auto.mode">
2329
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2330
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2331
+ </div>
2332
+ </xsl:template>
2333
+
2334
+ <xsl:template match="d:subtitle" mode="sect1.titlepage.recto.auto.mode">
2335
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2336
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2337
+ </div>
2338
+ </xsl:template>
2339
+
2340
+ <xsl:template match="d:corpauthor" mode="sect1.titlepage.recto.auto.mode">
2341
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2342
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2343
+ </div>
2344
+ </xsl:template>
2345
+
2346
+ <xsl:template match="d:authorgroup" mode="sect1.titlepage.recto.auto.mode">
2347
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2348
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2349
+ </div>
2350
+ </xsl:template>
2351
+
2352
+ <xsl:template match="d:author" mode="sect1.titlepage.recto.auto.mode">
2353
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2354
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2355
+ </div>
2356
+ </xsl:template>
2357
+
2358
+ <xsl:template match="d:othercredit" mode="sect1.titlepage.recto.auto.mode">
2359
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2360
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2361
+ </div>
2362
+ </xsl:template>
2363
+
2364
+ <xsl:template match="d:releaseinfo" mode="sect1.titlepage.recto.auto.mode">
2365
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2366
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2367
+ </div>
2368
+ </xsl:template>
2369
+
2370
+ <xsl:template match="d:copyright" mode="sect1.titlepage.recto.auto.mode">
2371
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2372
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2373
+ </div>
2374
+ </xsl:template>
2375
+
2376
+ <xsl:template match="d:legalnotice" mode="sect1.titlepage.recto.auto.mode">
2377
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2378
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2379
+ </div>
2380
+ </xsl:template>
2381
+
2382
+ <xsl:template match="d:pubdate" mode="sect1.titlepage.recto.auto.mode">
2383
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2384
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2385
+ </div>
2386
+ </xsl:template>
2387
+
2388
+ <xsl:template match="d:revision" mode="sect1.titlepage.recto.auto.mode">
2389
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2390
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2391
+ </div>
2392
+ </xsl:template>
2393
+
2394
+ <xsl:template match="d:revhistory" mode="sect1.titlepage.recto.auto.mode">
2395
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2396
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2397
+ </div>
2398
+ </xsl:template>
2399
+
2400
+ <xsl:template match="d:abstract" mode="sect1.titlepage.recto.auto.mode">
2401
+ <div xsl:use-attribute-sets="sect1.titlepage.recto.style">
2402
+ <xsl:apply-templates select="." mode="sect1.titlepage.recto.mode"/>
2403
+ </div>
2404
+ </xsl:template>
2405
+
2406
+ <xsl:template name="sect2.titlepage.recto">
2407
+ <xsl:choose>
2408
+ <xsl:when test="d:sect2info/d:title">
2409
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:title"/>
2410
+ </xsl:when>
2411
+ <xsl:when test="d:info/d:title">
2412
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:title"/>
2413
+ </xsl:when>
2414
+ <xsl:when test="d:title">
2415
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:title"/>
2416
+ </xsl:when>
2417
+ </xsl:choose>
2418
+
2419
+ <xsl:choose>
2420
+ <xsl:when test="d:sect2info/d:subtitle">
2421
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:subtitle"/>
2422
+ </xsl:when>
2423
+ <xsl:when test="d:info/d:subtitle">
2424
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2425
+ </xsl:when>
2426
+ <xsl:when test="d:subtitle">
2427
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:subtitle"/>
2428
+ </xsl:when>
2429
+ </xsl:choose>
2430
+
2431
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:corpauthor"/>
2432
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2433
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:authorgroup"/>
2434
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2435
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:author"/>
2436
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:author"/>
2437
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:othercredit"/>
2438
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2439
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:releaseinfo"/>
2440
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2441
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:copyright"/>
2442
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2443
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:legalnotice"/>
2444
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2445
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:pubdate"/>
2446
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2447
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:revision"/>
2448
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2449
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:revhistory"/>
2450
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2451
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:sect2info/d:abstract"/>
2452
+ <xsl:apply-templates mode="sect2.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2453
+ </xsl:template>
2454
+
2455
+ <xsl:template name="sect2.titlepage.verso">
2456
+ </xsl:template>
2457
+
2458
+ <xsl:template name="sect2.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2459
+ </xsl:template>
2460
+
2461
+ <xsl:template name="sect2.titlepage.before.recto">
2462
+ </xsl:template>
2463
+
2464
+ <xsl:template name="sect2.titlepage.before.verso">
2465
+ </xsl:template>
2466
+
2467
+ <xsl:template name="sect2.titlepage">
2468
+ <div class="titlepage">
2469
+ <xsl:variable name="recto.content">
2470
+ <xsl:call-template name="sect2.titlepage.before.recto"/>
2471
+ <xsl:call-template name="sect2.titlepage.recto"/>
2472
+ </xsl:variable>
2473
+ <xsl:variable name="recto.elements.count">
2474
+ <xsl:choose>
2475
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2476
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2477
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2478
+ <xsl:otherwise>1</xsl:otherwise>
2479
+ </xsl:choose>
2480
+ </xsl:variable>
2481
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2482
+ <div><xsl:copy-of select="$recto.content"/></div>
2483
+ </xsl:if>
2484
+ <xsl:variable name="verso.content">
2485
+ <xsl:call-template name="sect2.titlepage.before.verso"/>
2486
+ <xsl:call-template name="sect2.titlepage.verso"/>
2487
+ </xsl:variable>
2488
+ <xsl:variable name="verso.elements.count">
2489
+ <xsl:choose>
2490
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2491
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2492
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2493
+ <xsl:otherwise>1</xsl:otherwise>
2494
+ </xsl:choose>
2495
+ </xsl:variable>
2496
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2497
+ <div><xsl:copy-of select="$verso.content"/></div>
2498
+ </xsl:if>
2499
+ <xsl:call-template name="sect2.titlepage.separator"/>
2500
+ </div>
2501
+ </xsl:template>
2502
+
2503
+ <xsl:template match="*" mode="sect2.titlepage.recto.mode">
2504
+ <!-- if an element isn't found in this mode, -->
2505
+ <!-- try the generic titlepage.mode -->
2506
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
2507
+ </xsl:template>
2508
+
2509
+ <xsl:template match="*" mode="sect2.titlepage.verso.mode">
2510
+ <!-- if an element isn't found in this mode, -->
2511
+ <!-- try the generic titlepage.mode -->
2512
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
2513
+ </xsl:template>
2514
+
2515
+ <xsl:template match="d:title" mode="sect2.titlepage.recto.auto.mode">
2516
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2517
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2518
+ </div>
2519
+ </xsl:template>
2520
+
2521
+ <xsl:template match="d:subtitle" mode="sect2.titlepage.recto.auto.mode">
2522
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2523
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2524
+ </div>
2525
+ </xsl:template>
2526
+
2527
+ <xsl:template match="d:corpauthor" mode="sect2.titlepage.recto.auto.mode">
2528
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2529
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2530
+ </div>
2531
+ </xsl:template>
2532
+
2533
+ <xsl:template match="d:authorgroup" mode="sect2.titlepage.recto.auto.mode">
2534
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2535
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2536
+ </div>
2537
+ </xsl:template>
2538
+
2539
+ <xsl:template match="d:author" mode="sect2.titlepage.recto.auto.mode">
2540
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2541
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2542
+ </div>
2543
+ </xsl:template>
2544
+
2545
+ <xsl:template match="d:othercredit" mode="sect2.titlepage.recto.auto.mode">
2546
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2547
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2548
+ </div>
2549
+ </xsl:template>
2550
+
2551
+ <xsl:template match="d:releaseinfo" mode="sect2.titlepage.recto.auto.mode">
2552
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2553
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2554
+ </div>
2555
+ </xsl:template>
2556
+
2557
+ <xsl:template match="d:copyright" mode="sect2.titlepage.recto.auto.mode">
2558
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2559
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2560
+ </div>
2561
+ </xsl:template>
2562
+
2563
+ <xsl:template match="d:legalnotice" mode="sect2.titlepage.recto.auto.mode">
2564
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2565
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2566
+ </div>
2567
+ </xsl:template>
2568
+
2569
+ <xsl:template match="d:pubdate" mode="sect2.titlepage.recto.auto.mode">
2570
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2571
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2572
+ </div>
2573
+ </xsl:template>
2574
+
2575
+ <xsl:template match="d:revision" mode="sect2.titlepage.recto.auto.mode">
2576
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2577
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2578
+ </div>
2579
+ </xsl:template>
2580
+
2581
+ <xsl:template match="d:revhistory" mode="sect2.titlepage.recto.auto.mode">
2582
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2583
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2584
+ </div>
2585
+ </xsl:template>
2586
+
2587
+ <xsl:template match="d:abstract" mode="sect2.titlepage.recto.auto.mode">
2588
+ <div xsl:use-attribute-sets="sect2.titlepage.recto.style">
2589
+ <xsl:apply-templates select="." mode="sect2.titlepage.recto.mode"/>
2590
+ </div>
2591
+ </xsl:template>
2592
+
2593
+ <xsl:template name="sect3.titlepage.recto">
2594
+ <xsl:choose>
2595
+ <xsl:when test="d:sect3info/d:title">
2596
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:title"/>
2597
+ </xsl:when>
2598
+ <xsl:when test="d:info/d:title">
2599
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:title"/>
2600
+ </xsl:when>
2601
+ <xsl:when test="d:title">
2602
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:title"/>
2603
+ </xsl:when>
2604
+ </xsl:choose>
2605
+
2606
+ <xsl:choose>
2607
+ <xsl:when test="d:sect3info/d:subtitle">
2608
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:subtitle"/>
2609
+ </xsl:when>
2610
+ <xsl:when test="d:info/d:subtitle">
2611
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2612
+ </xsl:when>
2613
+ <xsl:when test="d:subtitle">
2614
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:subtitle"/>
2615
+ </xsl:when>
2616
+ </xsl:choose>
2617
+
2618
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:corpauthor"/>
2619
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2620
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:authorgroup"/>
2621
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2622
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:author"/>
2623
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:author"/>
2624
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:othercredit"/>
2625
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2626
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:releaseinfo"/>
2627
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2628
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:copyright"/>
2629
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2630
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:legalnotice"/>
2631
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2632
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:pubdate"/>
2633
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2634
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:revision"/>
2635
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2636
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:revhistory"/>
2637
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2638
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:sect3info/d:abstract"/>
2639
+ <xsl:apply-templates mode="sect3.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2640
+ </xsl:template>
2641
+
2642
+ <xsl:template name="sect3.titlepage.verso">
2643
+ </xsl:template>
2644
+
2645
+ <xsl:template name="sect3.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2646
+ </xsl:template>
2647
+
2648
+ <xsl:template name="sect3.titlepage.before.recto">
2649
+ </xsl:template>
2650
+
2651
+ <xsl:template name="sect3.titlepage.before.verso">
2652
+ </xsl:template>
2653
+
2654
+ <xsl:template name="sect3.titlepage">
2655
+ <div class="titlepage">
2656
+ <xsl:variable name="recto.content">
2657
+ <xsl:call-template name="sect3.titlepage.before.recto"/>
2658
+ <xsl:call-template name="sect3.titlepage.recto"/>
2659
+ </xsl:variable>
2660
+ <xsl:variable name="recto.elements.count">
2661
+ <xsl:choose>
2662
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2663
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2664
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2665
+ <xsl:otherwise>1</xsl:otherwise>
2666
+ </xsl:choose>
2667
+ </xsl:variable>
2668
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2669
+ <div><xsl:copy-of select="$recto.content"/></div>
2670
+ </xsl:if>
2671
+ <xsl:variable name="verso.content">
2672
+ <xsl:call-template name="sect3.titlepage.before.verso"/>
2673
+ <xsl:call-template name="sect3.titlepage.verso"/>
2674
+ </xsl:variable>
2675
+ <xsl:variable name="verso.elements.count">
2676
+ <xsl:choose>
2677
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2678
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2679
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2680
+ <xsl:otherwise>1</xsl:otherwise>
2681
+ </xsl:choose>
2682
+ </xsl:variable>
2683
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2684
+ <div><xsl:copy-of select="$verso.content"/></div>
2685
+ </xsl:if>
2686
+ <xsl:call-template name="sect3.titlepage.separator"/>
2687
+ </div>
2688
+ </xsl:template>
2689
+
2690
+ <xsl:template match="*" mode="sect3.titlepage.recto.mode">
2691
+ <!-- if an element isn't found in this mode, -->
2692
+ <!-- try the generic titlepage.mode -->
2693
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
2694
+ </xsl:template>
2695
+
2696
+ <xsl:template match="*" mode="sect3.titlepage.verso.mode">
2697
+ <!-- if an element isn't found in this mode, -->
2698
+ <!-- try the generic titlepage.mode -->
2699
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
2700
+ </xsl:template>
2701
+
2702
+ <xsl:template match="d:title" mode="sect3.titlepage.recto.auto.mode">
2703
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2704
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2705
+ </div>
2706
+ </xsl:template>
2707
+
2708
+ <xsl:template match="d:subtitle" mode="sect3.titlepage.recto.auto.mode">
2709
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2710
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2711
+ </div>
2712
+ </xsl:template>
2713
+
2714
+ <xsl:template match="d:corpauthor" mode="sect3.titlepage.recto.auto.mode">
2715
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2716
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2717
+ </div>
2718
+ </xsl:template>
2719
+
2720
+ <xsl:template match="d:authorgroup" mode="sect3.titlepage.recto.auto.mode">
2721
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2722
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2723
+ </div>
2724
+ </xsl:template>
2725
+
2726
+ <xsl:template match="d:author" mode="sect3.titlepage.recto.auto.mode">
2727
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2728
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2729
+ </div>
2730
+ </xsl:template>
2731
+
2732
+ <xsl:template match="d:othercredit" mode="sect3.titlepage.recto.auto.mode">
2733
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2734
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2735
+ </div>
2736
+ </xsl:template>
2737
+
2738
+ <xsl:template match="d:releaseinfo" mode="sect3.titlepage.recto.auto.mode">
2739
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2740
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2741
+ </div>
2742
+ </xsl:template>
2743
+
2744
+ <xsl:template match="d:copyright" mode="sect3.titlepage.recto.auto.mode">
2745
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2746
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2747
+ </div>
2748
+ </xsl:template>
2749
+
2750
+ <xsl:template match="d:legalnotice" mode="sect3.titlepage.recto.auto.mode">
2751
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2752
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2753
+ </div>
2754
+ </xsl:template>
2755
+
2756
+ <xsl:template match="d:pubdate" mode="sect3.titlepage.recto.auto.mode">
2757
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2758
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2759
+ </div>
2760
+ </xsl:template>
2761
+
2762
+ <xsl:template match="d:revision" mode="sect3.titlepage.recto.auto.mode">
2763
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2764
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2765
+ </div>
2766
+ </xsl:template>
2767
+
2768
+ <xsl:template match="d:revhistory" mode="sect3.titlepage.recto.auto.mode">
2769
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2770
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2771
+ </div>
2772
+ </xsl:template>
2773
+
2774
+ <xsl:template match="d:abstract" mode="sect3.titlepage.recto.auto.mode">
2775
+ <div xsl:use-attribute-sets="sect3.titlepage.recto.style">
2776
+ <xsl:apply-templates select="." mode="sect3.titlepage.recto.mode"/>
2777
+ </div>
2778
+ </xsl:template>
2779
+
2780
+ <xsl:template name="sect4.titlepage.recto">
2781
+ <xsl:choose>
2782
+ <xsl:when test="d:sect4info/d:title">
2783
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:title"/>
2784
+ </xsl:when>
2785
+ <xsl:when test="d:info/d:title">
2786
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:title"/>
2787
+ </xsl:when>
2788
+ <xsl:when test="d:title">
2789
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:title"/>
2790
+ </xsl:when>
2791
+ </xsl:choose>
2792
+
2793
+ <xsl:choose>
2794
+ <xsl:when test="d:sect4info/d:subtitle">
2795
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:subtitle"/>
2796
+ </xsl:when>
2797
+ <xsl:when test="d:info/d:subtitle">
2798
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2799
+ </xsl:when>
2800
+ <xsl:when test="d:subtitle">
2801
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:subtitle"/>
2802
+ </xsl:when>
2803
+ </xsl:choose>
2804
+
2805
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:corpauthor"/>
2806
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2807
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:authorgroup"/>
2808
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2809
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:author"/>
2810
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:author"/>
2811
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:othercredit"/>
2812
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
2813
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:releaseinfo"/>
2814
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
2815
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:copyright"/>
2816
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
2817
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:legalnotice"/>
2818
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
2819
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:pubdate"/>
2820
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
2821
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:revision"/>
2822
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:revision"/>
2823
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:revhistory"/>
2824
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
2825
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:sect4info/d:abstract"/>
2826
+ <xsl:apply-templates mode="sect4.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
2827
+ </xsl:template>
2828
+
2829
+ <xsl:template name="sect4.titlepage.verso">
2830
+ </xsl:template>
2831
+
2832
+ <xsl:template name="sect4.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
2833
+ </xsl:template>
2834
+
2835
+ <xsl:template name="sect4.titlepage.before.recto">
2836
+ </xsl:template>
2837
+
2838
+ <xsl:template name="sect4.titlepage.before.verso">
2839
+ </xsl:template>
2840
+
2841
+ <xsl:template name="sect4.titlepage">
2842
+ <div class="titlepage">
2843
+ <xsl:variable name="recto.content">
2844
+ <xsl:call-template name="sect4.titlepage.before.recto"/>
2845
+ <xsl:call-template name="sect4.titlepage.recto"/>
2846
+ </xsl:variable>
2847
+ <xsl:variable name="recto.elements.count">
2848
+ <xsl:choose>
2849
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2850
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2851
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
2852
+ <xsl:otherwise>1</xsl:otherwise>
2853
+ </xsl:choose>
2854
+ </xsl:variable>
2855
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
2856
+ <div><xsl:copy-of select="$recto.content"/></div>
2857
+ </xsl:if>
2858
+ <xsl:variable name="verso.content">
2859
+ <xsl:call-template name="sect4.titlepage.before.verso"/>
2860
+ <xsl:call-template name="sect4.titlepage.verso"/>
2861
+ </xsl:variable>
2862
+ <xsl:variable name="verso.elements.count">
2863
+ <xsl:choose>
2864
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2865
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
2866
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
2867
+ <xsl:otherwise>1</xsl:otherwise>
2868
+ </xsl:choose>
2869
+ </xsl:variable>
2870
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
2871
+ <div><xsl:copy-of select="$verso.content"/></div>
2872
+ </xsl:if>
2873
+ <xsl:call-template name="sect4.titlepage.separator"/>
2874
+ </div>
2875
+ </xsl:template>
2876
+
2877
+ <xsl:template match="*" mode="sect4.titlepage.recto.mode">
2878
+ <!-- if an element isn't found in this mode, -->
2879
+ <!-- try the generic titlepage.mode -->
2880
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
2881
+ </xsl:template>
2882
+
2883
+ <xsl:template match="*" mode="sect4.titlepage.verso.mode">
2884
+ <!-- if an element isn't found in this mode, -->
2885
+ <!-- try the generic titlepage.mode -->
2886
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
2887
+ </xsl:template>
2888
+
2889
+ <xsl:template match="d:title" mode="sect4.titlepage.recto.auto.mode">
2890
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2891
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2892
+ </div>
2893
+ </xsl:template>
2894
+
2895
+ <xsl:template match="d:subtitle" mode="sect4.titlepage.recto.auto.mode">
2896
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2897
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2898
+ </div>
2899
+ </xsl:template>
2900
+
2901
+ <xsl:template match="d:corpauthor" mode="sect4.titlepage.recto.auto.mode">
2902
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2903
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2904
+ </div>
2905
+ </xsl:template>
2906
+
2907
+ <xsl:template match="d:authorgroup" mode="sect4.titlepage.recto.auto.mode">
2908
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2909
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2910
+ </div>
2911
+ </xsl:template>
2912
+
2913
+ <xsl:template match="d:author" mode="sect4.titlepage.recto.auto.mode">
2914
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2915
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2916
+ </div>
2917
+ </xsl:template>
2918
+
2919
+ <xsl:template match="d:othercredit" mode="sect4.titlepage.recto.auto.mode">
2920
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2921
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2922
+ </div>
2923
+ </xsl:template>
2924
+
2925
+ <xsl:template match="d:releaseinfo" mode="sect4.titlepage.recto.auto.mode">
2926
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2927
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2928
+ </div>
2929
+ </xsl:template>
2930
+
2931
+ <xsl:template match="d:copyright" mode="sect4.titlepage.recto.auto.mode">
2932
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2933
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2934
+ </div>
2935
+ </xsl:template>
2936
+
2937
+ <xsl:template match="d:legalnotice" mode="sect4.titlepage.recto.auto.mode">
2938
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2939
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2940
+ </div>
2941
+ </xsl:template>
2942
+
2943
+ <xsl:template match="d:pubdate" mode="sect4.titlepage.recto.auto.mode">
2944
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2945
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2946
+ </div>
2947
+ </xsl:template>
2948
+
2949
+ <xsl:template match="d:revision" mode="sect4.titlepage.recto.auto.mode">
2950
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2951
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2952
+ </div>
2953
+ </xsl:template>
2954
+
2955
+ <xsl:template match="d:revhistory" mode="sect4.titlepage.recto.auto.mode">
2956
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2957
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2958
+ </div>
2959
+ </xsl:template>
2960
+
2961
+ <xsl:template match="d:abstract" mode="sect4.titlepage.recto.auto.mode">
2962
+ <div xsl:use-attribute-sets="sect4.titlepage.recto.style">
2963
+ <xsl:apply-templates select="." mode="sect4.titlepage.recto.mode"/>
2964
+ </div>
2965
+ </xsl:template>
2966
+
2967
+ <xsl:template name="sect5.titlepage.recto">
2968
+ <xsl:choose>
2969
+ <xsl:when test="d:sect5info/d:title">
2970
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:title"/>
2971
+ </xsl:when>
2972
+ <xsl:when test="d:info/d:title">
2973
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:title"/>
2974
+ </xsl:when>
2975
+ <xsl:when test="d:title">
2976
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:title"/>
2977
+ </xsl:when>
2978
+ </xsl:choose>
2979
+
2980
+ <xsl:choose>
2981
+ <xsl:when test="d:sect5info/d:subtitle">
2982
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:subtitle"/>
2983
+ </xsl:when>
2984
+ <xsl:when test="d:info/d:subtitle">
2985
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
2986
+ </xsl:when>
2987
+ <xsl:when test="d:subtitle">
2988
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:subtitle"/>
2989
+ </xsl:when>
2990
+ </xsl:choose>
2991
+
2992
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:corpauthor"/>
2993
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
2994
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:authorgroup"/>
2995
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
2996
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:author"/>
2997
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:author"/>
2998
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:othercredit"/>
2999
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3000
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:releaseinfo"/>
3001
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3002
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:copyright"/>
3003
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3004
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:legalnotice"/>
3005
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3006
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:pubdate"/>
3007
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3008
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:revision"/>
3009
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3010
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:revhistory"/>
3011
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3012
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:sect5info/d:abstract"/>
3013
+ <xsl:apply-templates mode="sect5.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3014
+ </xsl:template>
3015
+
3016
+ <xsl:template name="sect5.titlepage.verso">
3017
+ </xsl:template>
3018
+
3019
+ <xsl:template name="sect5.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
3020
+ </xsl:template>
3021
+
3022
+ <xsl:template name="sect5.titlepage.before.recto">
3023
+ </xsl:template>
3024
+
3025
+ <xsl:template name="sect5.titlepage.before.verso">
3026
+ </xsl:template>
3027
+
3028
+ <xsl:template name="sect5.titlepage">
3029
+ <div class="titlepage">
3030
+ <xsl:variable name="recto.content">
3031
+ <xsl:call-template name="sect5.titlepage.before.recto"/>
3032
+ <xsl:call-template name="sect5.titlepage.recto"/>
3033
+ </xsl:variable>
3034
+ <xsl:variable name="recto.elements.count">
3035
+ <xsl:choose>
3036
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3037
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3038
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3039
+ <xsl:otherwise>1</xsl:otherwise>
3040
+ </xsl:choose>
3041
+ </xsl:variable>
3042
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3043
+ <div><xsl:copy-of select="$recto.content"/></div>
3044
+ </xsl:if>
3045
+ <xsl:variable name="verso.content">
3046
+ <xsl:call-template name="sect5.titlepage.before.verso"/>
3047
+ <xsl:call-template name="sect5.titlepage.verso"/>
3048
+ </xsl:variable>
3049
+ <xsl:variable name="verso.elements.count">
3050
+ <xsl:choose>
3051
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3052
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3053
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3054
+ <xsl:otherwise>1</xsl:otherwise>
3055
+ </xsl:choose>
3056
+ </xsl:variable>
3057
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3058
+ <div><xsl:copy-of select="$verso.content"/></div>
3059
+ </xsl:if>
3060
+ <xsl:call-template name="sect5.titlepage.separator"/>
3061
+ </div>
3062
+ </xsl:template>
3063
+
3064
+ <xsl:template match="*" mode="sect5.titlepage.recto.mode">
3065
+ <!-- if an element isn't found in this mode, -->
3066
+ <!-- try the generic titlepage.mode -->
3067
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3068
+ </xsl:template>
3069
+
3070
+ <xsl:template match="*" mode="sect5.titlepage.verso.mode">
3071
+ <!-- if an element isn't found in this mode, -->
3072
+ <!-- try the generic titlepage.mode -->
3073
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3074
+ </xsl:template>
3075
+
3076
+ <xsl:template match="d:title" mode="sect5.titlepage.recto.auto.mode">
3077
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3078
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3079
+ </div>
3080
+ </xsl:template>
3081
+
3082
+ <xsl:template match="d:subtitle" mode="sect5.titlepage.recto.auto.mode">
3083
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3084
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3085
+ </div>
3086
+ </xsl:template>
3087
+
3088
+ <xsl:template match="d:corpauthor" mode="sect5.titlepage.recto.auto.mode">
3089
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3090
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3091
+ </div>
3092
+ </xsl:template>
3093
+
3094
+ <xsl:template match="d:authorgroup" mode="sect5.titlepage.recto.auto.mode">
3095
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3096
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3097
+ </div>
3098
+ </xsl:template>
3099
+
3100
+ <xsl:template match="d:author" mode="sect5.titlepage.recto.auto.mode">
3101
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3102
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3103
+ </div>
3104
+ </xsl:template>
3105
+
3106
+ <xsl:template match="d:othercredit" mode="sect5.titlepage.recto.auto.mode">
3107
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3108
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3109
+ </div>
3110
+ </xsl:template>
3111
+
3112
+ <xsl:template match="d:releaseinfo" mode="sect5.titlepage.recto.auto.mode">
3113
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3114
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3115
+ </div>
3116
+ </xsl:template>
3117
+
3118
+ <xsl:template match="d:copyright" mode="sect5.titlepage.recto.auto.mode">
3119
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3120
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3121
+ </div>
3122
+ </xsl:template>
3123
+
3124
+ <xsl:template match="d:legalnotice" mode="sect5.titlepage.recto.auto.mode">
3125
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3126
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3127
+ </div>
3128
+ </xsl:template>
3129
+
3130
+ <xsl:template match="d:pubdate" mode="sect5.titlepage.recto.auto.mode">
3131
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3132
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3133
+ </div>
3134
+ </xsl:template>
3135
+
3136
+ <xsl:template match="d:revision" mode="sect5.titlepage.recto.auto.mode">
3137
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3138
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3139
+ </div>
3140
+ </xsl:template>
3141
+
3142
+ <xsl:template match="d:revhistory" mode="sect5.titlepage.recto.auto.mode">
3143
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3144
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3145
+ </div>
3146
+ </xsl:template>
3147
+
3148
+ <xsl:template match="d:abstract" mode="sect5.titlepage.recto.auto.mode">
3149
+ <div xsl:use-attribute-sets="sect5.titlepage.recto.style">
3150
+ <xsl:apply-templates select="." mode="sect5.titlepage.recto.mode"/>
3151
+ </div>
3152
+ </xsl:template>
3153
+
3154
+ <xsl:template name="simplesect.titlepage.recto">
3155
+ <xsl:choose>
3156
+ <xsl:when test="d:simplesectinfo/d:title">
3157
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:title"/>
3158
+ </xsl:when>
3159
+ <xsl:when test="d:docinfo/d:title">
3160
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
3161
+ </xsl:when>
3162
+ <xsl:when test="d:info/d:title">
3163
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:title"/>
3164
+ </xsl:when>
3165
+ <xsl:when test="d:title">
3166
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:title"/>
3167
+ </xsl:when>
3168
+ </xsl:choose>
3169
+
3170
+ <xsl:choose>
3171
+ <xsl:when test="d:simplesectinfo/d:subtitle">
3172
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:subtitle"/>
3173
+ </xsl:when>
3174
+ <xsl:when test="d:docinfo/d:subtitle">
3175
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3176
+ </xsl:when>
3177
+ <xsl:when test="d:info/d:subtitle">
3178
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3179
+ </xsl:when>
3180
+ <xsl:when test="d:subtitle">
3181
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:subtitle"/>
3182
+ </xsl:when>
3183
+ </xsl:choose>
3184
+
3185
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:corpauthor"/>
3186
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:corpauthor"/>
3187
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:corpauthor"/>
3188
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:authorgroup"/>
3189
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:authorgroup"/>
3190
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:authorgroup"/>
3191
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:author"/>
3192
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:author"/>
3193
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:author"/>
3194
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:othercredit"/>
3195
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:othercredit"/>
3196
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:othercredit"/>
3197
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:releaseinfo"/>
3198
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:releaseinfo"/>
3199
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:releaseinfo"/>
3200
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:copyright"/>
3201
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:copyright"/>
3202
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:copyright"/>
3203
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:legalnotice"/>
3204
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:legalnotice"/>
3205
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:legalnotice"/>
3206
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:pubdate"/>
3207
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:pubdate"/>
3208
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:pubdate"/>
3209
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:revision"/>
3210
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:revision"/>
3211
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:revision"/>
3212
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:revhistory"/>
3213
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:revhistory"/>
3214
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:revhistory"/>
3215
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:simplesectinfo/d:abstract"/>
3216
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:docinfo/d:abstract"/>
3217
+ <xsl:apply-templates mode="simplesect.titlepage.recto.auto.mode" select="d:info/d:abstract"/>
3218
+ </xsl:template>
3219
+
3220
+ <xsl:template name="simplesect.titlepage.verso">
3221
+ </xsl:template>
3222
+
3223
+ <xsl:template name="simplesect.titlepage.separator"><xsl:if test="count(parent::*)='0'"><hr/></xsl:if>
3224
+ </xsl:template>
3225
+
3226
+ <xsl:template name="simplesect.titlepage.before.recto">
3227
+ </xsl:template>
3228
+
3229
+ <xsl:template name="simplesect.titlepage.before.verso">
3230
+ </xsl:template>
3231
+
3232
+ <xsl:template name="simplesect.titlepage">
3233
+ <div class="titlepage">
3234
+ <xsl:variable name="recto.content">
3235
+ <xsl:call-template name="simplesect.titlepage.before.recto"/>
3236
+ <xsl:call-template name="simplesect.titlepage.recto"/>
3237
+ </xsl:variable>
3238
+ <xsl:variable name="recto.elements.count">
3239
+ <xsl:choose>
3240
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3241
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3242
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3243
+ <xsl:otherwise>1</xsl:otherwise>
3244
+ </xsl:choose>
3245
+ </xsl:variable>
3246
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3247
+ <div><xsl:copy-of select="$recto.content"/></div>
3248
+ </xsl:if>
3249
+ <xsl:variable name="verso.content">
3250
+ <xsl:call-template name="simplesect.titlepage.before.verso"/>
3251
+ <xsl:call-template name="simplesect.titlepage.verso"/>
3252
+ </xsl:variable>
3253
+ <xsl:variable name="verso.elements.count">
3254
+ <xsl:choose>
3255
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3256
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3257
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3258
+ <xsl:otherwise>1</xsl:otherwise>
3259
+ </xsl:choose>
3260
+ </xsl:variable>
3261
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3262
+ <div><xsl:copy-of select="$verso.content"/></div>
3263
+ </xsl:if>
3264
+ <xsl:call-template name="simplesect.titlepage.separator"/>
3265
+ </div>
3266
+ </xsl:template>
3267
+
3268
+ <xsl:template match="*" mode="simplesect.titlepage.recto.mode">
3269
+ <!-- if an element isn't found in this mode, -->
3270
+ <!-- try the generic titlepage.mode -->
3271
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3272
+ </xsl:template>
3273
+
3274
+ <xsl:template match="*" mode="simplesect.titlepage.verso.mode">
3275
+ <!-- if an element isn't found in this mode, -->
3276
+ <!-- try the generic titlepage.mode -->
3277
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3278
+ </xsl:template>
3279
+
3280
+ <xsl:template match="d:title" mode="simplesect.titlepage.recto.auto.mode">
3281
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3282
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3283
+ </div>
3284
+ </xsl:template>
3285
+
3286
+ <xsl:template match="d:subtitle" mode="simplesect.titlepage.recto.auto.mode">
3287
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3288
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3289
+ </div>
3290
+ </xsl:template>
3291
+
3292
+ <xsl:template match="d:corpauthor" mode="simplesect.titlepage.recto.auto.mode">
3293
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3294
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3295
+ </div>
3296
+ </xsl:template>
3297
+
3298
+ <xsl:template match="d:authorgroup" mode="simplesect.titlepage.recto.auto.mode">
3299
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3300
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3301
+ </div>
3302
+ </xsl:template>
3303
+
3304
+ <xsl:template match="d:author" mode="simplesect.titlepage.recto.auto.mode">
3305
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3306
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3307
+ </div>
3308
+ </xsl:template>
3309
+
3310
+ <xsl:template match="d:othercredit" mode="simplesect.titlepage.recto.auto.mode">
3311
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3312
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3313
+ </div>
3314
+ </xsl:template>
3315
+
3316
+ <xsl:template match="d:releaseinfo" mode="simplesect.titlepage.recto.auto.mode">
3317
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3318
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3319
+ </div>
3320
+ </xsl:template>
3321
+
3322
+ <xsl:template match="d:copyright" mode="simplesect.titlepage.recto.auto.mode">
3323
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3324
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3325
+ </div>
3326
+ </xsl:template>
3327
+
3328
+ <xsl:template match="d:legalnotice" mode="simplesect.titlepage.recto.auto.mode">
3329
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3330
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3331
+ </div>
3332
+ </xsl:template>
3333
+
3334
+ <xsl:template match="d:pubdate" mode="simplesect.titlepage.recto.auto.mode">
3335
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3336
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3337
+ </div>
3338
+ </xsl:template>
3339
+
3340
+ <xsl:template match="d:revision" mode="simplesect.titlepage.recto.auto.mode">
3341
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3342
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3343
+ </div>
3344
+ </xsl:template>
3345
+
3346
+ <xsl:template match="d:revhistory" mode="simplesect.titlepage.recto.auto.mode">
3347
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3348
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3349
+ </div>
3350
+ </xsl:template>
3351
+
3352
+ <xsl:template match="d:abstract" mode="simplesect.titlepage.recto.auto.mode">
3353
+ <div xsl:use-attribute-sets="simplesect.titlepage.recto.style">
3354
+ <xsl:apply-templates select="." mode="simplesect.titlepage.recto.mode"/>
3355
+ </div>
3356
+ </xsl:template>
3357
+
3358
+ <xsl:template name="bibliography.titlepage.recto">
3359
+ <div xsl:use-attribute-sets="bibliography.titlepage.recto.style">
3360
+ <xsl:call-template name="component.title">
3361
+ <xsl:with-param name="node" select="ancestor-or-self::d:bibliography[1]"/>
3362
+ </xsl:call-template></div>
3363
+ <xsl:choose>
3364
+ <xsl:when test="d:bibliographyinfo/d:subtitle">
3365
+ <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:bibliographyinfo/d:subtitle"/>
3366
+ </xsl:when>
3367
+ <xsl:when test="d:docinfo/d:subtitle">
3368
+ <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3369
+ </xsl:when>
3370
+ <xsl:when test="d:info/d:subtitle">
3371
+ <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3372
+ </xsl:when>
3373
+ <xsl:when test="d:subtitle">
3374
+ <xsl:apply-templates mode="bibliography.titlepage.recto.auto.mode" select="d:subtitle"/>
3375
+ </xsl:when>
3376
+ </xsl:choose>
3377
+
3378
+ </xsl:template>
3379
+
3380
+ <xsl:template name="bibliography.titlepage.verso">
3381
+ </xsl:template>
3382
+
3383
+ <xsl:template name="bibliography.titlepage.separator">
3384
+ </xsl:template>
3385
+
3386
+ <xsl:template name="bibliography.titlepage.before.recto">
3387
+ </xsl:template>
3388
+
3389
+ <xsl:template name="bibliography.titlepage.before.verso">
3390
+ </xsl:template>
3391
+
3392
+ <xsl:template name="bibliography.titlepage">
3393
+ <div class="titlepage">
3394
+ <xsl:variable name="recto.content">
3395
+ <xsl:call-template name="bibliography.titlepage.before.recto"/>
3396
+ <xsl:call-template name="bibliography.titlepage.recto"/>
3397
+ </xsl:variable>
3398
+ <xsl:variable name="recto.elements.count">
3399
+ <xsl:choose>
3400
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3401
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3402
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3403
+ <xsl:otherwise>1</xsl:otherwise>
3404
+ </xsl:choose>
3405
+ </xsl:variable>
3406
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3407
+ <div><xsl:copy-of select="$recto.content"/></div>
3408
+ </xsl:if>
3409
+ <xsl:variable name="verso.content">
3410
+ <xsl:call-template name="bibliography.titlepage.before.verso"/>
3411
+ <xsl:call-template name="bibliography.titlepage.verso"/>
3412
+ </xsl:variable>
3413
+ <xsl:variable name="verso.elements.count">
3414
+ <xsl:choose>
3415
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3416
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3417
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3418
+ <xsl:otherwise>1</xsl:otherwise>
3419
+ </xsl:choose>
3420
+ </xsl:variable>
3421
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3422
+ <div><xsl:copy-of select="$verso.content"/></div>
3423
+ </xsl:if>
3424
+ <xsl:call-template name="bibliography.titlepage.separator"/>
3425
+ </div>
3426
+ </xsl:template>
3427
+
3428
+ <xsl:template match="*" mode="bibliography.titlepage.recto.mode">
3429
+ <!-- if an element isn't found in this mode, -->
3430
+ <!-- try the generic titlepage.mode -->
3431
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3432
+ </xsl:template>
3433
+
3434
+ <xsl:template match="*" mode="bibliography.titlepage.verso.mode">
3435
+ <!-- if an element isn't found in this mode, -->
3436
+ <!-- try the generic titlepage.mode -->
3437
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3438
+ </xsl:template>
3439
+
3440
+ <xsl:template match="d:subtitle" mode="bibliography.titlepage.recto.auto.mode">
3441
+ <div xsl:use-attribute-sets="bibliography.titlepage.recto.style">
3442
+ <xsl:apply-templates select="." mode="bibliography.titlepage.recto.mode"/>
3443
+ </div>
3444
+ </xsl:template>
3445
+
3446
+ <xsl:template name="glossary.titlepage.recto">
3447
+ <div xsl:use-attribute-sets="glossary.titlepage.recto.style">
3448
+ <xsl:call-template name="component.title">
3449
+ <xsl:with-param name="node" select="ancestor-or-self::d:glossary[1]"/>
3450
+ </xsl:call-template></div>
3451
+ <xsl:choose>
3452
+ <xsl:when test="d:glossaryinfo/d:subtitle">
3453
+ <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:glossaryinfo/d:subtitle"/>
3454
+ </xsl:when>
3455
+ <xsl:when test="d:docinfo/d:subtitle">
3456
+ <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3457
+ </xsl:when>
3458
+ <xsl:when test="d:info/d:subtitle">
3459
+ <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3460
+ </xsl:when>
3461
+ <xsl:when test="d:subtitle">
3462
+ <xsl:apply-templates mode="glossary.titlepage.recto.auto.mode" select="d:subtitle"/>
3463
+ </xsl:when>
3464
+ </xsl:choose>
3465
+
3466
+ </xsl:template>
3467
+
3468
+ <xsl:template name="glossary.titlepage.verso">
3469
+ </xsl:template>
3470
+
3471
+ <xsl:template name="glossary.titlepage.separator">
3472
+ </xsl:template>
3473
+
3474
+ <xsl:template name="glossary.titlepage.before.recto">
3475
+ </xsl:template>
3476
+
3477
+ <xsl:template name="glossary.titlepage.before.verso">
3478
+ </xsl:template>
3479
+
3480
+ <xsl:template name="glossary.titlepage">
3481
+ <div class="titlepage">
3482
+ <xsl:variable name="recto.content">
3483
+ <xsl:call-template name="glossary.titlepage.before.recto"/>
3484
+ <xsl:call-template name="glossary.titlepage.recto"/>
3485
+ </xsl:variable>
3486
+ <xsl:variable name="recto.elements.count">
3487
+ <xsl:choose>
3488
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3489
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3490
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3491
+ <xsl:otherwise>1</xsl:otherwise>
3492
+ </xsl:choose>
3493
+ </xsl:variable>
3494
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3495
+ <div><xsl:copy-of select="$recto.content"/></div>
3496
+ </xsl:if>
3497
+ <xsl:variable name="verso.content">
3498
+ <xsl:call-template name="glossary.titlepage.before.verso"/>
3499
+ <xsl:call-template name="glossary.titlepage.verso"/>
3500
+ </xsl:variable>
3501
+ <xsl:variable name="verso.elements.count">
3502
+ <xsl:choose>
3503
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3504
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3505
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3506
+ <xsl:otherwise>1</xsl:otherwise>
3507
+ </xsl:choose>
3508
+ </xsl:variable>
3509
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3510
+ <div><xsl:copy-of select="$verso.content"/></div>
3511
+ </xsl:if>
3512
+ <xsl:call-template name="glossary.titlepage.separator"/>
3513
+ </div>
3514
+ </xsl:template>
3515
+
3516
+ <xsl:template match="*" mode="glossary.titlepage.recto.mode">
3517
+ <!-- if an element isn't found in this mode, -->
3518
+ <!-- try the generic titlepage.mode -->
3519
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3520
+ </xsl:template>
3521
+
3522
+ <xsl:template match="*" mode="glossary.titlepage.verso.mode">
3523
+ <!-- if an element isn't found in this mode, -->
3524
+ <!-- try the generic titlepage.mode -->
3525
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3526
+ </xsl:template>
3527
+
3528
+ <xsl:template match="d:subtitle" mode="glossary.titlepage.recto.auto.mode">
3529
+ <div xsl:use-attribute-sets="glossary.titlepage.recto.style">
3530
+ <xsl:apply-templates select="." mode="glossary.titlepage.recto.mode"/>
3531
+ </div>
3532
+ </xsl:template>
3533
+
3534
+ <xsl:template name="index.titlepage.recto">
3535
+ <div xsl:use-attribute-sets="index.titlepage.recto.style">
3536
+ <xsl:call-template name="component.title">
3537
+ <xsl:with-param name="node" select="ancestor-or-self::d:index[1]"/>
3538
+ </xsl:call-template></div>
3539
+ <xsl:choose>
3540
+ <xsl:when test="d:indexinfo/d:subtitle">
3541
+ <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:indexinfo/d:subtitle"/>
3542
+ </xsl:when>
3543
+ <xsl:when test="d:docinfo/d:subtitle">
3544
+ <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3545
+ </xsl:when>
3546
+ <xsl:when test="d:info/d:subtitle">
3547
+ <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3548
+ </xsl:when>
3549
+ <xsl:when test="d:subtitle">
3550
+ <xsl:apply-templates mode="index.titlepage.recto.auto.mode" select="d:subtitle"/>
3551
+ </xsl:when>
3552
+ </xsl:choose>
3553
+
3554
+ </xsl:template>
3555
+
3556
+ <xsl:template name="index.titlepage.verso">
3557
+ </xsl:template>
3558
+
3559
+ <xsl:template name="index.titlepage.separator">
3560
+ </xsl:template>
3561
+
3562
+ <xsl:template name="index.titlepage.before.recto">
3563
+ </xsl:template>
3564
+
3565
+ <xsl:template name="index.titlepage.before.verso">
3566
+ </xsl:template>
3567
+
3568
+ <xsl:template name="index.titlepage">
3569
+ <div class="titlepage">
3570
+ <xsl:variable name="recto.content">
3571
+ <xsl:call-template name="index.titlepage.before.recto"/>
3572
+ <xsl:call-template name="index.titlepage.recto"/>
3573
+ </xsl:variable>
3574
+ <xsl:variable name="recto.elements.count">
3575
+ <xsl:choose>
3576
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3577
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3578
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3579
+ <xsl:otherwise>1</xsl:otherwise>
3580
+ </xsl:choose>
3581
+ </xsl:variable>
3582
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3583
+ <div><xsl:copy-of select="$recto.content"/></div>
3584
+ </xsl:if>
3585
+ <xsl:variable name="verso.content">
3586
+ <xsl:call-template name="index.titlepage.before.verso"/>
3587
+ <xsl:call-template name="index.titlepage.verso"/>
3588
+ </xsl:variable>
3589
+ <xsl:variable name="verso.elements.count">
3590
+ <xsl:choose>
3591
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3592
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3593
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3594
+ <xsl:otherwise>1</xsl:otherwise>
3595
+ </xsl:choose>
3596
+ </xsl:variable>
3597
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3598
+ <div><xsl:copy-of select="$verso.content"/></div>
3599
+ </xsl:if>
3600
+ <xsl:call-template name="index.titlepage.separator"/>
3601
+ </div>
3602
+ </xsl:template>
3603
+
3604
+ <xsl:template match="*" mode="index.titlepage.recto.mode">
3605
+ <!-- if an element isn't found in this mode, -->
3606
+ <!-- try the generic titlepage.mode -->
3607
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3608
+ </xsl:template>
3609
+
3610
+ <xsl:template match="*" mode="index.titlepage.verso.mode">
3611
+ <!-- if an element isn't found in this mode, -->
3612
+ <!-- try the generic titlepage.mode -->
3613
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3614
+ </xsl:template>
3615
+
3616
+ <xsl:template match="d:subtitle" mode="index.titlepage.recto.auto.mode">
3617
+ <div xsl:use-attribute-sets="index.titlepage.recto.style">
3618
+ <xsl:apply-templates select="." mode="index.titlepage.recto.mode"/>
3619
+ </div>
3620
+ </xsl:template>
3621
+
3622
+ <xsl:template name="setindex.titlepage.recto">
3623
+ <div xsl:use-attribute-sets="setindex.titlepage.recto.style">
3624
+ <xsl:call-template name="component.title">
3625
+ <xsl:with-param name="node" select="ancestor-or-self::d:setindex[1]"/>
3626
+ </xsl:call-template></div>
3627
+ <xsl:choose>
3628
+ <xsl:when test="d:setindexinfo/d:subtitle">
3629
+ <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:setindexinfo/d:subtitle"/>
3630
+ </xsl:when>
3631
+ <xsl:when test="d:docinfo/d:subtitle">
3632
+ <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3633
+ </xsl:when>
3634
+ <xsl:when test="d:info/d:subtitle">
3635
+ <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3636
+ </xsl:when>
3637
+ <xsl:when test="d:subtitle">
3638
+ <xsl:apply-templates mode="setindex.titlepage.recto.auto.mode" select="d:subtitle"/>
3639
+ </xsl:when>
3640
+ </xsl:choose>
3641
+
3642
+ </xsl:template>
3643
+
3644
+ <xsl:template name="setindex.titlepage.verso">
3645
+ </xsl:template>
3646
+
3647
+ <xsl:template name="setindex.titlepage.separator">
3648
+ </xsl:template>
3649
+
3650
+ <xsl:template name="setindex.titlepage.before.recto">
3651
+ </xsl:template>
3652
+
3653
+ <xsl:template name="setindex.titlepage.before.verso">
3654
+ </xsl:template>
3655
+
3656
+ <xsl:template name="setindex.titlepage">
3657
+ <div class="titlepage">
3658
+ <xsl:variable name="recto.content">
3659
+ <xsl:call-template name="setindex.titlepage.before.recto"/>
3660
+ <xsl:call-template name="setindex.titlepage.recto"/>
3661
+ </xsl:variable>
3662
+ <xsl:variable name="recto.elements.count">
3663
+ <xsl:choose>
3664
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3665
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3666
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3667
+ <xsl:otherwise>1</xsl:otherwise>
3668
+ </xsl:choose>
3669
+ </xsl:variable>
3670
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3671
+ <div><xsl:copy-of select="$recto.content"/></div>
3672
+ </xsl:if>
3673
+ <xsl:variable name="verso.content">
3674
+ <xsl:call-template name="setindex.titlepage.before.verso"/>
3675
+ <xsl:call-template name="setindex.titlepage.verso"/>
3676
+ </xsl:variable>
3677
+ <xsl:variable name="verso.elements.count">
3678
+ <xsl:choose>
3679
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3680
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3681
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3682
+ <xsl:otherwise>1</xsl:otherwise>
3683
+ </xsl:choose>
3684
+ </xsl:variable>
3685
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3686
+ <div><xsl:copy-of select="$verso.content"/></div>
3687
+ </xsl:if>
3688
+ <xsl:call-template name="setindex.titlepage.separator"/>
3689
+ </div>
3690
+ </xsl:template>
3691
+
3692
+ <xsl:template match="*" mode="setindex.titlepage.recto.mode">
3693
+ <!-- if an element isn't found in this mode, -->
3694
+ <!-- try the generic titlepage.mode -->
3695
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3696
+ </xsl:template>
3697
+
3698
+ <xsl:template match="*" mode="setindex.titlepage.verso.mode">
3699
+ <!-- if an element isn't found in this mode, -->
3700
+ <!-- try the generic titlepage.mode -->
3701
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3702
+ </xsl:template>
3703
+
3704
+ <xsl:template match="d:subtitle" mode="setindex.titlepage.recto.auto.mode">
3705
+ <div xsl:use-attribute-sets="setindex.titlepage.recto.style">
3706
+ <xsl:apply-templates select="." mode="setindex.titlepage.recto.mode"/>
3707
+ </div>
3708
+ </xsl:template>
3709
+
3710
+ <xsl:template name="sidebar.titlepage.recto">
3711
+ <xsl:choose>
3712
+ <xsl:when test="d:sidebarinfo/d:title">
3713
+ <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:sidebarinfo/d:title"/>
3714
+ </xsl:when>
3715
+ <xsl:when test="d:docinfo/d:title">
3716
+ <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:docinfo/d:title"/>
3717
+ </xsl:when>
3718
+ <xsl:when test="d:info/d:title">
3719
+ <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:info/d:title"/>
3720
+ </xsl:when>
3721
+ <xsl:when test="d:title">
3722
+ <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:title"/>
3723
+ </xsl:when>
3724
+ </xsl:choose>
3725
+
3726
+ <xsl:choose>
3727
+ <xsl:when test="d:sidebarinfo/d:subtitle">
3728
+ <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:sidebarinfo/d:subtitle"/>
3729
+ </xsl:when>
3730
+ <xsl:when test="d:docinfo/d:subtitle">
3731
+ <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:docinfo/d:subtitle"/>
3732
+ </xsl:when>
3733
+ <xsl:when test="d:info/d:subtitle">
3734
+ <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:info/d:subtitle"/>
3735
+ </xsl:when>
3736
+ <xsl:when test="d:subtitle">
3737
+ <xsl:apply-templates mode="sidebar.titlepage.recto.auto.mode" select="d:subtitle"/>
3738
+ </xsl:when>
3739
+ </xsl:choose>
3740
+
3741
+ </xsl:template>
3742
+
3743
+ <xsl:template name="sidebar.titlepage.verso">
3744
+ </xsl:template>
3745
+
3746
+ <xsl:template name="sidebar.titlepage.separator">
3747
+ </xsl:template>
3748
+
3749
+ <xsl:template name="sidebar.titlepage.before.recto">
3750
+ </xsl:template>
3751
+
3752
+ <xsl:template name="sidebar.titlepage.before.verso">
3753
+ </xsl:template>
3754
+
3755
+ <xsl:template name="sidebar.titlepage">
3756
+ <div class="titlepage">
3757
+ <xsl:variable name="recto.content">
3758
+ <xsl:call-template name="sidebar.titlepage.before.recto"/>
3759
+ <xsl:call-template name="sidebar.titlepage.recto"/>
3760
+ </xsl:variable>
3761
+ <xsl:variable name="recto.elements.count">
3762
+ <xsl:choose>
3763
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3764
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3765
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
3766
+ <xsl:otherwise>1</xsl:otherwise>
3767
+ </xsl:choose>
3768
+ </xsl:variable>
3769
+ <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
3770
+ <div><xsl:copy-of select="$recto.content"/></div>
3771
+ </xsl:if>
3772
+ <xsl:variable name="verso.content">
3773
+ <xsl:call-template name="sidebar.titlepage.before.verso"/>
3774
+ <xsl:call-template name="sidebar.titlepage.verso"/>
3775
+ </xsl:variable>
3776
+ <xsl:variable name="verso.elements.count">
3777
+ <xsl:choose>
3778
+ <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3779
+ <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
3780
+ <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
3781
+ <xsl:otherwise>1</xsl:otherwise>
3782
+ </xsl:choose>
3783
+ </xsl:variable>
3784
+ <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
3785
+ <div><xsl:copy-of select="$verso.content"/></div>
3786
+ </xsl:if>
3787
+ <xsl:call-template name="sidebar.titlepage.separator"/>
3788
+ </div>
3789
+ </xsl:template>
3790
+
3791
+ <xsl:template match="*" mode="sidebar.titlepage.recto.mode">
3792
+ <!-- if an element isn't found in this mode, -->
3793
+ <!-- try the generic titlepage.mode -->
3794
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3795
+ </xsl:template>
3796
+
3797
+ <xsl:template match="*" mode="sidebar.titlepage.verso.mode">
3798
+ <!-- if an element isn't found in this mode, -->
3799
+ <!-- try the generic titlepage.mode -->
3800
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
3801
+ </xsl:template>
3802
+
3803
+ <xsl:template match="d:title" mode="sidebar.titlepage.recto.auto.mode">
3804
+ <div xsl:use-attribute-sets="sidebar.titlepage.recto.style">
3805
+ <xsl:call-template name="formal.object.heading">
3806
+ <xsl:with-param name="object" select="ancestor-or-self::d:sidebar[1]"/>
3807
+ </xsl:call-template>
3808
+ </div>
3809
+ </xsl:template>
3810
+
3811
+ <xsl:template match="d:subtitle" mode="sidebar.titlepage.recto.auto.mode">
3812
+ <div xsl:use-attribute-sets="sidebar.titlepage.recto.style">
3813
+ <xsl:apply-templates select="." mode="sidebar.titlepage.recto.mode"/>
3814
+ </div>
3815
+ </xsl:template>
3816
+
3817
+ </xsl:stylesheet>
3818
+