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