git-scribe 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1253) hide show
  1. data/docbook-xsl/COPYING +47 -0
  2. data/docbook-xsl/VERSION +115 -0
  3. data/docbook-xsl/catalog.xml +8 -0
  4. data/docbook-xsl/common.xsl +87 -0
  5. data/docbook-xsl/common/af.xml +1229 -0
  6. data/docbook-xsl/common/am.xml +1229 -0
  7. data/docbook-xsl/common/ar.xml +1229 -0
  8. data/docbook-xsl/common/autoidx-kimber.xsl +43 -0
  9. data/docbook-xsl/common/autoidx-kosek.xsl +150 -0
  10. data/docbook-xsl/common/az.xml +672 -0
  11. data/docbook-xsl/common/bg.xml +724 -0
  12. data/docbook-xsl/common/bn.xml +1229 -0
  13. data/docbook-xsl/common/bs.xml +662 -0
  14. data/docbook-xsl/common/ca.xml +1229 -0
  15. data/docbook-xsl/common/charmap.xml +185 -0
  16. data/docbook-xsl/common/charmap.xsl +221 -0
  17. data/docbook-xsl/common/common.xml +622 -0
  18. data/docbook-xsl/common/common.xsl +2019 -0
  19. data/docbook-xsl/common/cs.xml +700 -0
  20. data/docbook-xsl/common/cy.xml +1245 -0
  21. data/docbook-xsl/common/da.xml +664 -0
  22. data/docbook-xsl/common/de.xml +666 -0
  23. data/docbook-xsl/common/el.xml +1229 -0
  24. data/docbook-xsl/common/en.xml +1229 -0
  25. data/docbook-xsl/common/entities.ent +60 -0
  26. data/docbook-xsl/common/eo.xml +1229 -0
  27. data/docbook-xsl/common/es.xml +676 -0
  28. data/docbook-xsl/common/et.xml +1229 -0
  29. data/docbook-xsl/common/eu.xml +1229 -0
  30. data/docbook-xsl/common/fa.xml +1229 -0
  31. data/docbook-xsl/common/fi.xml +670 -0
  32. data/docbook-xsl/common/fr.xml +690 -0
  33. data/docbook-xsl/common/ga.xml +1229 -0
  34. data/docbook-xsl/common/gentext.xsl +836 -0
  35. data/docbook-xsl/common/gl.xml +1229 -0
  36. data/docbook-xsl/common/gu.xml +1229 -0
  37. data/docbook-xsl/common/he.xml +1229 -0
  38. data/docbook-xsl/common/hi.xml +1229 -0
  39. data/docbook-xsl/common/hr.xml +1229 -0
  40. data/docbook-xsl/common/hu.xml +1229 -0
  41. data/docbook-xsl/common/id.xml +1229 -0
  42. data/docbook-xsl/common/insertfile.xsl +111 -0
  43. data/docbook-xsl/common/it.xml +1229 -0
  44. data/docbook-xsl/common/ja.xml +1229 -0
  45. data/docbook-xsl/common/kn.xml +1229 -0
  46. data/docbook-xsl/common/ko.xml +1229 -0
  47. data/docbook-xsl/common/l10n.dtd +63 -0
  48. data/docbook-xsl/common/l10n.xml +129 -0
  49. data/docbook-xsl/common/l10n.xsl +497 -0
  50. data/docbook-xsl/common/la.xml +1229 -0
  51. data/docbook-xsl/common/labels.xsl +869 -0
  52. data/docbook-xsl/common/lt.xml +678 -0
  53. data/docbook-xsl/common/lv.xml +1229 -0
  54. data/docbook-xsl/common/mn.xml +730 -0
  55. data/docbook-xsl/common/nb.xml +1229 -0
  56. data/docbook-xsl/common/nl.xml +1229 -0
  57. data/docbook-xsl/common/nn.xml +1229 -0
  58. data/docbook-xsl/common/olink.xsl +1149 -0
  59. data/docbook-xsl/common/or.xml +1229 -0
  60. data/docbook-xsl/common/pa.xml +1229 -0
  61. data/docbook-xsl/common/pi.xml +165 -0
  62. data/docbook-xsl/common/pi.xsl +346 -0
  63. data/docbook-xsl/common/pl.xml +1229 -0
  64. data/docbook-xsl/common/pt.xml +1229 -0
  65. data/docbook-xsl/common/pt_br.xml +1229 -0
  66. data/docbook-xsl/common/refentry.xml +781 -0
  67. data/docbook-xsl/common/refentry.xsl +1352 -0
  68. data/docbook-xsl/common/ro.xml +1229 -0
  69. data/docbook-xsl/common/ru.xml +726 -0
  70. data/docbook-xsl/common/sk.xml +1229 -0
  71. data/docbook-xsl/common/sl.xml +1229 -0
  72. data/docbook-xsl/common/sq.xml +1229 -0
  73. data/docbook-xsl/common/sr.xml +720 -0
  74. data/docbook-xsl/common/sr_Latn.xml +679 -0
  75. data/docbook-xsl/common/stripns.xsl +289 -0
  76. data/docbook-xsl/common/subtitles.xsl +155 -0
  77. data/docbook-xsl/common/sv.xml +664 -0
  78. data/docbook-xsl/common/ta.xml +1229 -0
  79. data/docbook-xsl/common/table.xsl +514 -0
  80. data/docbook-xsl/common/targetdatabase.dtd +49 -0
  81. data/docbook-xsl/common/targets.xsl +272 -0
  82. data/docbook-xsl/common/th.xml +1229 -0
  83. data/docbook-xsl/common/titles.xsl +752 -0
  84. data/docbook-xsl/common/tl.xml +1229 -0
  85. data/docbook-xsl/common/tr.xml +666 -0
  86. data/docbook-xsl/common/uk.xml +1229 -0
  87. data/docbook-xsl/common/utility.xml +259 -0
  88. data/docbook-xsl/common/utility.xsl +290 -0
  89. data/docbook-xsl/common/vi.xml +1229 -0
  90. data/docbook-xsl/common/xh.xml +1229 -0
  91. data/docbook-xsl/common/zh_cn.xml +660 -0
  92. data/docbook-xsl/common/zh_tw.xml +1229 -0
  93. data/docbook-xsl/docsrc/authors.xml +10 -0
  94. data/docbook-xsl/docsrc/copyright.xml +18 -0
  95. data/docbook-xsl/docsrc/license.xml +23 -0
  96. data/docbook-xsl/docsrc/page.png +0 -0
  97. data/docbook-xsl/docsrc/reference.css +60 -0
  98. data/docbook-xsl/docsrc/reference.xml +229 -0
  99. data/docbook-xsl/docsrc/reference.xml.included +32701 -0
  100. data/docbook-xsl/docsrc/warranty.xml +11 -0
  101. data/docbook-xsl/epub/README +88 -0
  102. data/docbook-xsl/epub/bin/dbtoepub +65 -0
  103. data/docbook-xsl/epub/bin/lib/docbook.rb +206 -0
  104. data/docbook-xsl/epub/docbook.xsl +1638 -0
  105. data/docbook-xsl/extensions/README.LIBXSLT +52 -0
  106. data/docbook-xsl/extensions/docbook.py +240 -0
  107. data/docbook-xsl/extensions/saxon65.jar +0 -0
  108. data/docbook-xsl/extensions/xalan27.jar +0 -0
  109. data/docbook-xsl/extensions/xslt.py +83 -0
  110. data/docbook-xsl/fo.xsl +152 -0
  111. data/docbook-xsl/fo/admon.xsl +130 -0
  112. data/docbook-xsl/fo/annotations.xsl +18 -0
  113. data/docbook-xsl/fo/autoidx-kimber.xsl +178 -0
  114. data/docbook-xsl/fo/autoidx-kosek.xsl +150 -0
  115. data/docbook-xsl/fo/autoidx-ng.xsl +20 -0
  116. data/docbook-xsl/fo/autoidx.xsl +1310 -0
  117. data/docbook-xsl/fo/autotoc.xsl +892 -0
  118. data/docbook-xsl/fo/axf.xsl +110 -0
  119. data/docbook-xsl/fo/biblio-iso690.xsl +1300 -0
  120. data/docbook-xsl/fo/biblio.xsl +1169 -0
  121. data/docbook-xsl/fo/block.xsl +600 -0
  122. data/docbook-xsl/fo/callout.xsl +231 -0
  123. data/docbook-xsl/fo/component.xsl +811 -0
  124. data/docbook-xsl/fo/division.xsl +611 -0
  125. data/docbook-xsl/fo/docbook.xsl +336 -0
  126. data/docbook-xsl/fo/ebnf.xsl +325 -0
  127. data/docbook-xsl/fo/fo-rtf.xsl +154 -0
  128. data/docbook-xsl/fo/fo.xsl +71 -0
  129. data/docbook-xsl/fo/footnote.xsl +220 -0
  130. data/docbook-xsl/fo/fop.xsl +93 -0
  131. data/docbook-xsl/fo/fop1.xsl +174 -0
  132. data/docbook-xsl/fo/formal.xsl +615 -0
  133. data/docbook-xsl/fo/glossary.xsl +1112 -0
  134. data/docbook-xsl/fo/graphics.xsl +642 -0
  135. data/docbook-xsl/fo/highlight.xsl +75 -0
  136. data/docbook-xsl/fo/htmltbl.xsl +217 -0
  137. data/docbook-xsl/fo/index.xsl +481 -0
  138. data/docbook-xsl/fo/info.xsl +34 -0
  139. data/docbook-xsl/fo/inline.xsl +1275 -0
  140. data/docbook-xsl/fo/keywords.xsl +21 -0
  141. data/docbook-xsl/fo/lists.xsl +1260 -0
  142. data/docbook-xsl/fo/math.xsl +140 -0
  143. data/docbook-xsl/fo/pagesetup.xsl +2314 -0
  144. data/docbook-xsl/fo/param.xml +11823 -0
  145. data/docbook-xsl/fo/param.xsl +899 -0
  146. data/docbook-xsl/fo/passivetex.xsl +36 -0
  147. data/docbook-xsl/fo/pdf2index +140 -0
  148. data/docbook-xsl/fo/pi.xml +969 -0
  149. data/docbook-xsl/fo/pi.xsl +1052 -0
  150. data/docbook-xsl/fo/profile-docbook.xsl +289 -0
  151. data/docbook-xsl/fo/ptc.xsl +77 -0
  152. data/docbook-xsl/fo/qandaset.xsl +393 -0
  153. data/docbook-xsl/fo/refentry.xsl +637 -0
  154. data/docbook-xsl/fo/sections.xsl +764 -0
  155. data/docbook-xsl/fo/spaces.xsl +274 -0
  156. data/docbook-xsl/fo/synop.xsl +1002 -0
  157. data/docbook-xsl/fo/table.xml +135 -0
  158. data/docbook-xsl/fo/table.xsl +1552 -0
  159. data/docbook-xsl/fo/task.xsl +91 -0
  160. data/docbook-xsl/fo/titlepage.templates.xml +1311 -0
  161. data/docbook-xsl/fo/titlepage.templates.xsl +5094 -0
  162. data/docbook-xsl/fo/titlepage.xsl +750 -0
  163. data/docbook-xsl/fo/toc.xsl +274 -0
  164. data/docbook-xsl/fo/verbatim.xsl +417 -0
  165. data/docbook-xsl/fo/xep.xsl +180 -0
  166. data/docbook-xsl/fo/xref.xsl +1486 -0
  167. data/docbook-xsl/highlighting/c-hl.xml +101 -0
  168. data/docbook-xsl/highlighting/common.xsl +120 -0
  169. data/docbook-xsl/highlighting/cpp-hl.xml +150 -0
  170. data/docbook-xsl/highlighting/csharp-hl.xml +187 -0
  171. data/docbook-xsl/highlighting/delphi-hl.xml +200 -0
  172. data/docbook-xsl/highlighting/ini-hl.xml +45 -0
  173. data/docbook-xsl/highlighting/java-hl.xml +117 -0
  174. data/docbook-xsl/highlighting/javascript-hl.xml +147 -0
  175. data/docbook-xsl/highlighting/m2-hl.xml +90 -0
  176. data/docbook-xsl/highlighting/myxml-hl.xml +116 -0
  177. data/docbook-xsl/highlighting/perl-hl.xml +120 -0
  178. data/docbook-xsl/highlighting/php-hl.xml +149 -0
  179. data/docbook-xsl/highlighting/python-hl.xml +100 -0
  180. data/docbook-xsl/highlighting/ruby-hl.xml +109 -0
  181. data/docbook-xsl/highlighting/tcl-hl.xml +180 -0
  182. data/docbook-xsl/highlighting/xslthl-config.xml +46 -0
  183. data/docbook-xsl/html/admon.xsl +132 -0
  184. data/docbook-xsl/html/annotations.xsl +169 -0
  185. data/docbook-xsl/html/autoidx-kimber.xsl +168 -0
  186. data/docbook-xsl/html/autoidx-kosek.xsl +125 -0
  187. data/docbook-xsl/html/autoidx-ng.xsl +20 -0
  188. data/docbook-xsl/html/autoidx.xsl +645 -0
  189. data/docbook-xsl/html/autotoc.xsl +675 -0
  190. data/docbook-xsl/html/biblio-iso690.xsl +1300 -0
  191. data/docbook-xsl/html/biblio.xsl +1247 -0
  192. data/docbook-xsl/html/block.xsl +434 -0
  193. data/docbook-xsl/html/callout.xsl +201 -0
  194. data/docbook-xsl/html/changebars.xsl +121 -0
  195. data/docbook-xsl/html/chunk-changebars.xsl +99 -0
  196. data/docbook-xsl/html/chunk-code.xsl +670 -0
  197. data/docbook-xsl/html/chunk-common.xsl +1911 -0
  198. data/docbook-xsl/html/chunk.xsl +52 -0
  199. data/docbook-xsl/html/chunker.xsl +439 -0
  200. data/docbook-xsl/html/chunkfast.xsl +72 -0
  201. data/docbook-xsl/html/chunktoc.xsl +468 -0
  202. data/docbook-xsl/html/component.xsl +403 -0
  203. data/docbook-xsl/html/division.xsl +228 -0
  204. data/docbook-xsl/html/docbook.xsl +483 -0
  205. data/docbook-xsl/html/ebnf.xsl +329 -0
  206. data/docbook-xsl/html/footnote.xsl +308 -0
  207. data/docbook-xsl/html/formal.xsl +401 -0
  208. data/docbook-xsl/html/glossary.xsl +474 -0
  209. data/docbook-xsl/html/graphics.xsl +1515 -0
  210. data/docbook-xsl/html/highlight.xsl +71 -0
  211. data/docbook-xsl/html/html-rtf.xsl +336 -0
  212. data/docbook-xsl/html/html.xsl +268 -0
  213. data/docbook-xsl/html/htmltbl.xsl +56 -0
  214. data/docbook-xsl/html/index.xsl +229 -0
  215. data/docbook-xsl/html/info.xsl +43 -0
  216. data/docbook-xsl/html/inline.xsl +1497 -0
  217. data/docbook-xsl/html/keywords.xsl +35 -0
  218. data/docbook-xsl/html/lists.xsl +1143 -0
  219. data/docbook-xsl/html/maketoc.xsl +86 -0
  220. data/docbook-xsl/html/manifest.xsl +22 -0
  221. data/docbook-xsl/html/math.xsl +270 -0
  222. data/docbook-xsl/html/oldchunker.xsl +202 -0
  223. data/docbook-xsl/html/onechunk.xsl +37 -0
  224. data/docbook-xsl/html/param.xml +10397 -0
  225. data/docbook-xsl/html/param.xsl +422 -0
  226. data/docbook-xsl/html/pi.xml +1113 -0
  227. data/docbook-xsl/html/pi.xsl +1263 -0
  228. data/docbook-xsl/html/profile-chunk-code.xsl +609 -0
  229. data/docbook-xsl/html/profile-chunk.xsl +52 -0
  230. data/docbook-xsl/html/profile-docbook.xsl +414 -0
  231. data/docbook-xsl/html/profile-onechunk.xsl +37 -0
  232. data/docbook-xsl/html/qandaset.xsl +389 -0
  233. data/docbook-xsl/html/refentry.xsl +309 -0
  234. data/docbook-xsl/html/sections.xsl +628 -0
  235. data/docbook-xsl/html/synop.xsl +1549 -0
  236. data/docbook-xsl/html/table.xsl +1130 -0
  237. data/docbook-xsl/html/task.xsl +76 -0
  238. data/docbook-xsl/html/titlepage.templates.xml +662 -0
  239. data/docbook-xsl/html/titlepage.templates.xsl +3622 -0
  240. data/docbook-xsl/html/titlepage.xsl +1031 -0
  241. data/docbook-xsl/html/toc.xsl +169 -0
  242. data/docbook-xsl/html/verbatim.xsl +376 -0
  243. data/docbook-xsl/html/xref.xsl +1348 -0
  244. data/docbook-xsl/htmlhelp/htmlhelp-common.xsl +1113 -0
  245. data/docbook-xsl/htmlhelp/htmlhelp.xsl +22 -0
  246. data/docbook-xsl/htmlhelp/profile-htmlhelp-common.xsl +1076 -0
  247. data/docbook-xsl/htmlhelp/profile-htmlhelp.xsl +22 -0
  248. data/docbook-xsl/images/annot-close.png +0 -0
  249. data/docbook-xsl/images/annot-open.png +0 -0
  250. data/docbook-xsl/images/blank.png +0 -0
  251. data/docbook-xsl/images/callouts/1.gif +0 -0
  252. data/docbook-xsl/images/callouts/1.png +0 -0
  253. data/docbook-xsl/images/callouts/1.svg +15 -0
  254. data/docbook-xsl/images/callouts/10.gif +0 -0
  255. data/docbook-xsl/images/callouts/10.png +0 -0
  256. data/docbook-xsl/images/callouts/10.svg +18 -0
  257. data/docbook-xsl/images/callouts/11.gif +0 -0
  258. data/docbook-xsl/images/callouts/11.png +0 -0
  259. data/docbook-xsl/images/callouts/11.svg +16 -0
  260. data/docbook-xsl/images/callouts/12.gif +0 -0
  261. data/docbook-xsl/images/callouts/12.png +0 -0
  262. data/docbook-xsl/images/callouts/12.svg +18 -0
  263. data/docbook-xsl/images/callouts/13.gif +0 -0
  264. data/docbook-xsl/images/callouts/13.png +0 -0
  265. data/docbook-xsl/images/callouts/13.svg +20 -0
  266. data/docbook-xsl/images/callouts/14.gif +0 -0
  267. data/docbook-xsl/images/callouts/14.png +0 -0
  268. data/docbook-xsl/images/callouts/14.svg +17 -0
  269. data/docbook-xsl/images/callouts/15.gif +0 -0
  270. data/docbook-xsl/images/callouts/15.png +0 -0
  271. data/docbook-xsl/images/callouts/15.svg +19 -0
  272. data/docbook-xsl/images/callouts/16.svg +20 -0
  273. data/docbook-xsl/images/callouts/17.svg +17 -0
  274. data/docbook-xsl/images/callouts/18.svg +21 -0
  275. data/docbook-xsl/images/callouts/19.svg +20 -0
  276. data/docbook-xsl/images/callouts/2.gif +0 -0
  277. data/docbook-xsl/images/callouts/2.png +0 -0
  278. data/docbook-xsl/images/callouts/2.svg +17 -0
  279. data/docbook-xsl/images/callouts/20.svg +20 -0
  280. data/docbook-xsl/images/callouts/21.svg +18 -0
  281. data/docbook-xsl/images/callouts/22.svg +20 -0
  282. data/docbook-xsl/images/callouts/23.svg +22 -0
  283. data/docbook-xsl/images/callouts/24.svg +19 -0
  284. data/docbook-xsl/images/callouts/25.svg +21 -0
  285. data/docbook-xsl/images/callouts/26.svg +22 -0
  286. data/docbook-xsl/images/callouts/27.svg +19 -0
  287. data/docbook-xsl/images/callouts/28.svg +23 -0
  288. data/docbook-xsl/images/callouts/29.svg +22 -0
  289. data/docbook-xsl/images/callouts/3.gif +0 -0
  290. data/docbook-xsl/images/callouts/3.png +0 -0
  291. data/docbook-xsl/images/callouts/3.svg +19 -0
  292. data/docbook-xsl/images/callouts/30.svg +22 -0
  293. data/docbook-xsl/images/callouts/4.gif +0 -0
  294. data/docbook-xsl/images/callouts/4.png +0 -0
  295. data/docbook-xsl/images/callouts/4.svg +16 -0
  296. data/docbook-xsl/images/callouts/5.gif +0 -0
  297. data/docbook-xsl/images/callouts/5.png +0 -0
  298. data/docbook-xsl/images/callouts/5.svg +18 -0
  299. data/docbook-xsl/images/callouts/6.gif +0 -0
  300. data/docbook-xsl/images/callouts/6.png +0 -0
  301. data/docbook-xsl/images/callouts/6.svg +19 -0
  302. data/docbook-xsl/images/callouts/7.gif +0 -0
  303. data/docbook-xsl/images/callouts/7.png +0 -0
  304. data/docbook-xsl/images/callouts/7.svg +16 -0
  305. data/docbook-xsl/images/callouts/8.gif +0 -0
  306. data/docbook-xsl/images/callouts/8.png +0 -0
  307. data/docbook-xsl/images/callouts/8.svg +20 -0
  308. data/docbook-xsl/images/callouts/9.gif +0 -0
  309. data/docbook-xsl/images/callouts/9.png +0 -0
  310. data/docbook-xsl/images/callouts/9.svg +19 -0
  311. data/docbook-xsl/images/caution.gif +0 -0
  312. data/docbook-xsl/images/caution.png +0 -0
  313. data/docbook-xsl/images/caution.svg +25 -0
  314. data/docbook-xsl/images/caution.tif +0 -0
  315. data/docbook-xsl/images/draft.png +0 -0
  316. data/docbook-xsl/images/home.gif +0 -0
  317. data/docbook-xsl/images/home.png +0 -0
  318. data/docbook-xsl/images/home.svg +26 -0
  319. data/docbook-xsl/images/important.gif +0 -0
  320. data/docbook-xsl/images/important.png +0 -0
  321. data/docbook-xsl/images/important.svg +25 -0
  322. data/docbook-xsl/images/important.tif +0 -0
  323. data/docbook-xsl/images/next.gif +0 -0
  324. data/docbook-xsl/images/next.png +0 -0
  325. data/docbook-xsl/images/next.svg +19 -0
  326. data/docbook-xsl/images/note.gif +0 -0
  327. data/docbook-xsl/images/note.png +0 -0
  328. data/docbook-xsl/images/note.svg +33 -0
  329. data/docbook-xsl/images/note.tif +0 -0
  330. data/docbook-xsl/images/prev.gif +0 -0
  331. data/docbook-xsl/images/prev.png +0 -0
  332. data/docbook-xsl/images/prev.svg +19 -0
  333. data/docbook-xsl/images/tip.gif +0 -0
  334. data/docbook-xsl/images/tip.png +0 -0
  335. data/docbook-xsl/images/tip.svg +31 -0
  336. data/docbook-xsl/images/tip.tif +0 -0
  337. data/docbook-xsl/images/toc-blank.png +0 -0
  338. data/docbook-xsl/images/toc-minus.png +0 -0
  339. data/docbook-xsl/images/toc-plus.png +0 -0
  340. data/docbook-xsl/images/up.gif +0 -0
  341. data/docbook-xsl/images/up.png +0 -0
  342. data/docbook-xsl/images/up.svg +19 -0
  343. data/docbook-xsl/images/warning.gif +0 -0
  344. data/docbook-xsl/images/warning.png +0 -0
  345. data/docbook-xsl/images/warning.svg +23 -0
  346. data/docbook-xsl/images/warning.tif +0 -0
  347. data/docbook-xsl/javahelp/javahelp.xsl +628 -0
  348. data/docbook-xsl/javahelp/profile-javahelp.xsl +550 -0
  349. data/docbook-xsl/lib/lib.xsl +480 -0
  350. data/docbook-xsl/manpages/ChangeLog.20020917 +195 -0
  351. data/docbook-xsl/manpages/block.xsl +393 -0
  352. data/docbook-xsl/manpages/charmap.groff.xsl +6013 -0
  353. data/docbook-xsl/manpages/docbook.xsl +302 -0
  354. data/docbook-xsl/manpages/endnotes.xsl +584 -0
  355. data/docbook-xsl/manpages/html-synop.xsl +1562 -0
  356. data/docbook-xsl/manpages/info.xsl +800 -0
  357. data/docbook-xsl/manpages/inline.xsl +219 -0
  358. data/docbook-xsl/manpages/lists.xsl +603 -0
  359. data/docbook-xsl/manpages/other.xsl +869 -0
  360. data/docbook-xsl/manpages/param.xml +3162 -0
  361. data/docbook-xsl/manpages/param.xsl +192 -0
  362. data/docbook-xsl/manpages/pi.xml +70 -0
  363. data/docbook-xsl/manpages/pi.xsl +79 -0
  364. data/docbook-xsl/manpages/profile-docbook.xsl +271 -0
  365. data/docbook-xsl/manpages/refentry.xsl +310 -0
  366. data/docbook-xsl/manpages/synop.xsl +432 -0
  367. data/docbook-xsl/manpages/table.xsl +633 -0
  368. data/docbook-xsl/manpages/utility.xsl +534 -0
  369. data/docbook-xsl/params/abstract.notitle.enabled.xml +22 -0
  370. data/docbook-xsl/params/abstract.properties.xml +32 -0
  371. data/docbook-xsl/params/abstract.title.properties.xml +39 -0
  372. data/docbook-xsl/params/active.toc.xml +29 -0
  373. data/docbook-xsl/params/ade.extensions.xml +32 -0
  374. data/docbook-xsl/params/admon.graphics.extension.xml +27 -0
  375. data/docbook-xsl/params/admon.graphics.path.xml +27 -0
  376. data/docbook-xsl/params/admon.graphics.xml +29 -0
  377. data/docbook-xsl/params/admon.style.xml +30 -0
  378. data/docbook-xsl/params/admon.textlabel.xml +32 -0
  379. data/docbook-xsl/params/admonition.properties.xml +25 -0
  380. data/docbook-xsl/params/admonition.title.properties.xml +32 -0
  381. data/docbook-xsl/params/alignment.xml +31 -0
  382. data/docbook-xsl/params/annotate.toc.xml +28 -0
  383. data/docbook-xsl/params/annotation.css.xml +71 -0
  384. data/docbook-xsl/params/annotation.graphic.close.xml +31 -0
  385. data/docbook-xsl/params/annotation.graphic.open.xml +28 -0
  386. data/docbook-xsl/params/annotation.js.xml +33 -0
  387. data/docbook-xsl/params/annotation.support.xml +29 -0
  388. data/docbook-xsl/params/appendix.autolabel.xml +73 -0
  389. data/docbook-xsl/params/arbortext.extensions.xml +30 -0
  390. data/docbook-xsl/params/article.appendix.title.properties.xml +33 -0
  391. data/docbook-xsl/params/author.othername.in.middle.xml +31 -0
  392. data/docbook-xsl/params/autolayout-file.xml +29 -0
  393. data/docbook-xsl/params/autotoc.label.in.hyperlink.xml +29 -0
  394. data/docbook-xsl/params/autotoc.label.separator.xml +27 -0
  395. data/docbook-xsl/params/axf.extensions.xml +33 -0
  396. data/docbook-xsl/params/banner.before.navigation.xml +25 -0
  397. data/docbook-xsl/params/base.dir.xml +29 -0
  398. data/docbook-xsl/params/biblioentry.item.separator.xml +26 -0
  399. data/docbook-xsl/params/biblioentry.properties.xml +28 -0
  400. data/docbook-xsl/params/bibliography.collection.xml +104 -0
  401. data/docbook-xsl/params/bibliography.numbered.xml +27 -0
  402. data/docbook-xsl/params/bibliography.style.xml +35 -0
  403. data/docbook-xsl/params/blockquote.properties.xml +34 -0
  404. data/docbook-xsl/params/blurb.on.titlepage.enabled.xml +31 -0
  405. data/docbook-xsl/params/body.attributes.xml +31 -0
  406. data/docbook-xsl/params/body.bg.color.xml +28 -0
  407. data/docbook-xsl/params/body.end.indent.xml +37 -0
  408. data/docbook-xsl/params/body.font.family.xml +32 -0
  409. data/docbook-xsl/params/body.font.master.xml +30 -0
  410. data/docbook-xsl/params/body.font.size.xml +31 -0
  411. data/docbook-xsl/params/body.margin.bottom.xml +29 -0
  412. data/docbook-xsl/params/body.margin.top.xml +28 -0
  413. data/docbook-xsl/params/body.start.indent.xml +62 -0
  414. data/docbook-xsl/params/bridgehead.in.toc.xml +28 -0
  415. data/docbook-xsl/params/bullet.image.xml +28 -0
  416. data/docbook-xsl/params/callout.defaultcolumn.xml +30 -0
  417. data/docbook-xsl/params/callout.graphics.extension.xml +33 -0
  418. data/docbook-xsl/params/callout.graphics.number.limit.xml +34 -0
  419. data/docbook-xsl/params/callout.graphics.path.xml +31 -0
  420. data/docbook-xsl/params/callout.graphics.xml +30 -0
  421. data/docbook-xsl/params/callout.icon.size.xml +28 -0
  422. data/docbook-xsl/params/callout.list.table.xml +32 -0
  423. data/docbook-xsl/params/callout.unicode.font.xml +29 -0
  424. data/docbook-xsl/params/callout.unicode.number.limit.xml +35 -0
  425. data/docbook-xsl/params/callout.unicode.start.character.xml +33 -0
  426. data/docbook-xsl/params/callout.unicode.xml +26 -0
  427. data/docbook-xsl/params/callouts.extension.xml +30 -0
  428. data/docbook-xsl/params/chapter.autolabel.xml +71 -0
  429. data/docbook-xsl/params/chunk.append.xml +30 -0
  430. data/docbook-xsl/params/chunk.first.sections.xml +31 -0
  431. data/docbook-xsl/params/chunk.quietly.xml +30 -0
  432. data/docbook-xsl/params/chunk.section.depth.xml +27 -0
  433. data/docbook-xsl/params/chunk.sections.xml +30 -0
  434. data/docbook-xsl/params/chunk.separate.lots.xml +36 -0
  435. data/docbook-xsl/params/chunk.toc.xml +30 -0
  436. data/docbook-xsl/params/chunk.tocs.and.lots.has.title.xml +28 -0
  437. data/docbook-xsl/params/chunk.tocs.and.lots.xml +32 -0
  438. data/docbook-xsl/params/chunker.output.cdata-section-elements.xml +30 -0
  439. data/docbook-xsl/params/chunker.output.doctype-public.xml +31 -0
  440. data/docbook-xsl/params/chunker.output.doctype-system.xml +31 -0
  441. data/docbook-xsl/params/chunker.output.encoding.xml +31 -0
  442. data/docbook-xsl/params/chunker.output.indent.xml +30 -0
  443. data/docbook-xsl/params/chunker.output.media-type.xml +35 -0
  444. data/docbook-xsl/params/chunker.output.method.xml +32 -0
  445. data/docbook-xsl/params/chunker.output.omit-xml-declaration.xml +30 -0
  446. data/docbook-xsl/params/chunker.output.standalone.xml +31 -0
  447. data/docbook-xsl/params/citerefentry.link.xml +29 -0
  448. data/docbook-xsl/params/collect.xref.targets.xml +33 -0
  449. data/docbook-xsl/params/column.count.back.xml +27 -0
  450. data/docbook-xsl/params/column.count.body.xml +27 -0
  451. data/docbook-xsl/params/column.count.front.xml +27 -0
  452. data/docbook-xsl/params/column.count.index.xml +27 -0
  453. data/docbook-xsl/params/column.count.lot.xml +28 -0
  454. data/docbook-xsl/params/column.count.titlepage.xml +27 -0
  455. data/docbook-xsl/params/column.gap.back.xml +28 -0
  456. data/docbook-xsl/params/column.gap.body.xml +28 -0
  457. data/docbook-xsl/params/column.gap.front.xml +28 -0
  458. data/docbook-xsl/params/column.gap.index.xml +28 -0
  459. data/docbook-xsl/params/column.gap.lot.xml +28 -0
  460. data/docbook-xsl/params/column.gap.titlepage.xml +29 -0
  461. data/docbook-xsl/params/compact.list.item.spacing.xml +28 -0
  462. data/docbook-xsl/params/component.label.includes.part.label.xml +39 -0
  463. data/docbook-xsl/params/component.title.properties.xml +40 -0
  464. data/docbook-xsl/params/component.titlepage.properties.xml +33 -0
  465. data/docbook-xsl/params/contrib.inline.enabled.xml +26 -0
  466. data/docbook-xsl/params/crop.mark.bleed.xml +28 -0
  467. data/docbook-xsl/params/crop.mark.offset.xml +28 -0
  468. data/docbook-xsl/params/crop.mark.width.xml +28 -0
  469. data/docbook-xsl/params/crop.marks.xml +28 -0
  470. data/docbook-xsl/params/css.decoration.xml +33 -0
  471. data/docbook-xsl/params/css.stylesheet.dir.xml +33 -0
  472. data/docbook-xsl/params/css.stylesheet.xml +29 -0
  473. data/docbook-xsl/params/current.docid.xml +27 -0
  474. data/docbook-xsl/params/currentpage.marker.xml +25 -0
  475. data/docbook-xsl/params/default.float.class.xml +34 -0
  476. data/docbook-xsl/params/default.image.width.xml +31 -0
  477. data/docbook-xsl/params/default.table.frame.xml +28 -0
  478. data/docbook-xsl/params/default.table.width.xml +26 -0
  479. data/docbook-xsl/params/default.units.xml +37 -0
  480. data/docbook-xsl/params/dingbat.font.family.xml +33 -0
  481. data/docbook-xsl/params/double.sided.xml +31 -0
  482. data/docbook-xsl/params/draft.mode.xml +36 -0
  483. data/docbook-xsl/params/draft.watermark.image.xml +27 -0
  484. data/docbook-xsl/params/dry-run.xml +27 -0
  485. data/docbook-xsl/params/dynamic.toc.xml +29 -0
  486. data/docbook-xsl/params/ebnf.assignment.xml +39 -0
  487. data/docbook-xsl/params/ebnf.statement.terminator.xml +32 -0
  488. data/docbook-xsl/params/ebnf.table.bgcolor.xml +30 -0
  489. data/docbook-xsl/params/ebnf.table.border.xml +26 -0
  490. data/docbook-xsl/params/eclipse.autolabel.xml +28 -0
  491. data/docbook-xsl/params/eclipse.plugin.id.xml +28 -0
  492. data/docbook-xsl/params/eclipse.plugin.name.xml +27 -0
  493. data/docbook-xsl/params/eclipse.plugin.provider.xml +27 -0
  494. data/docbook-xsl/params/editedby.enabled.xml +27 -0
  495. data/docbook-xsl/params/email.delimiters.enabled.xml +34 -0
  496. data/docbook-xsl/params/email.mailto.enabled.xml +29 -0
  497. data/docbook-xsl/params/emphasis.propagates.style.xml +26 -0
  498. data/docbook-xsl/params/entry.propagates.style.xml +30 -0
  499. data/docbook-xsl/params/epub.autolabel.xml +28 -0
  500. data/docbook-xsl/params/equation.properties.xml +27 -0
  501. data/docbook-xsl/params/example.properties.xml +27 -0
  502. data/docbook-xsl/params/feedback.href.xml +28 -0
  503. data/docbook-xsl/params/feedback.link.text.xml +28 -0
  504. data/docbook-xsl/params/feedback.with.ids.xml +27 -0
  505. data/docbook-xsl/params/figure.properties.xml +27 -0
  506. data/docbook-xsl/params/filename-prefix.xml +28 -0
  507. data/docbook-xsl/params/firstterm.only.link.xml +29 -0
  508. data/docbook-xsl/params/foil.properties.xml +37 -0
  509. data/docbook-xsl/params/foil.subtitle.properties.xml +36 -0
  510. data/docbook-xsl/params/foil.title.master.xml +29 -0
  511. data/docbook-xsl/params/foil.title.size.xml +32 -0
  512. data/docbook-xsl/params/foilgroup.properties.xml +31 -0
  513. data/docbook-xsl/params/foilgroup.toc.xml +29 -0
  514. data/docbook-xsl/params/footer.column.widths.xml +74 -0
  515. data/docbook-xsl/params/footer.content.properties.xml +34 -0
  516. data/docbook-xsl/params/footer.hr.xml +26 -0
  517. data/docbook-xsl/params/footer.rule.xml +27 -0
  518. data/docbook-xsl/params/footer.table.height.xml +32 -0
  519. data/docbook-xsl/params/footer.table.properties.xml +30 -0
  520. data/docbook-xsl/params/footers.on.blank.pages.xml +27 -0
  521. data/docbook-xsl/params/footnote.font.size.xml +28 -0
  522. data/docbook-xsl/params/footnote.mark.properties.xml +41 -0
  523. data/docbook-xsl/params/footnote.number.format.xml +33 -0
  524. data/docbook-xsl/params/footnote.number.symbols.xml +39 -0
  525. data/docbook-xsl/params/footnote.properties.xml +43 -0
  526. data/docbook-xsl/params/footnote.sep.leader.properties.xml +39 -0
  527. data/docbook-xsl/params/fop.extensions.xml +36 -0
  528. data/docbook-xsl/params/fop1.extensions.xml +34 -0
  529. data/docbook-xsl/params/formal.object.properties.xml +36 -0
  530. data/docbook-xsl/params/formal.procedures.xml +28 -0
  531. data/docbook-xsl/params/formal.title.placement.xml +41 -0
  532. data/docbook-xsl/params/formal.title.properties.xml +34 -0
  533. data/docbook-xsl/params/funcsynopsis.decoration.xml +30 -0
  534. data/docbook-xsl/params/funcsynopsis.style.xml +31 -0
  535. data/docbook-xsl/params/function.parens.xml +29 -0
  536. data/docbook-xsl/params/generate.id.attributes.xml +59 -0
  537. data/docbook-xsl/params/generate.index.xml +25 -0
  538. data/docbook-xsl/params/generate.legalnotice.link.xml +72 -0
  539. data/docbook-xsl/params/generate.manifest.xml +27 -0
  540. data/docbook-xsl/params/generate.meta.abstract.xml +29 -0
  541. data/docbook-xsl/params/generate.revhistory.link.xml +50 -0
  542. data/docbook-xsl/params/generate.section.toc.level.xml +35 -0
  543. data/docbook-xsl/params/generate.toc.xml +108 -0
  544. data/docbook-xsl/params/glossary.as.blocks.xml +38 -0
  545. data/docbook-xsl/params/glossary.collection.xml +252 -0
  546. data/docbook-xsl/params/glossary.sort.xml +32 -0
  547. data/docbook-xsl/params/glossentry.show.acronym.xml +37 -0
  548. data/docbook-xsl/params/glosslist.as.blocks.xml +27 -0
  549. data/docbook-xsl/params/glossterm.auto.link.xml +33 -0
  550. data/docbook-xsl/params/glossterm.separation.xml +28 -0
  551. data/docbook-xsl/params/glossterm.width.xml +28 -0
  552. data/docbook-xsl/params/graphic.default.extension.xml +29 -0
  553. data/docbook-xsl/params/graphical.admonition.properties.xml +42 -0
  554. data/docbook-xsl/params/graphics.dir.xml +33 -0
  555. data/docbook-xsl/params/graphicsize.extension.xml +30 -0
  556. data/docbook-xsl/params/graphicsize.use.img.src.path.xml +30 -0
  557. data/docbook-xsl/params/header.column.widths.xml +74 -0
  558. data/docbook-xsl/params/header.content.properties.xml +34 -0
  559. data/docbook-xsl/params/header.hr.xml +26 -0
  560. data/docbook-xsl/params/header.rule.xml +27 -0
  561. data/docbook-xsl/params/header.table.height.xml +32 -0
  562. data/docbook-xsl/params/header.table.properties.xml +30 -0
  563. data/docbook-xsl/params/headers.on.blank.pages.xml +27 -0
  564. data/docbook-xsl/params/hidetoc.image.xml +29 -0
  565. data/docbook-xsl/params/highlight.default.language.xml +27 -0
  566. data/docbook-xsl/params/highlight.source.xml +47 -0
  567. data/docbook-xsl/params/highlight.xslthl.config.xml +27 -0
  568. data/docbook-xsl/params/home.image.xml +27 -0
  569. data/docbook-xsl/params/html.append.xml +30 -0
  570. data/docbook-xsl/params/html.base.xml +30 -0
  571. data/docbook-xsl/params/html.cellpadding.xml +29 -0
  572. data/docbook-xsl/params/html.cellspacing.xml +29 -0
  573. data/docbook-xsl/params/html.cleanup.xml +34 -0
  574. data/docbook-xsl/params/html.ext.xml +29 -0
  575. data/docbook-xsl/params/html.extra.head.links.xml +31 -0
  576. data/docbook-xsl/params/html.head.legalnotice.link.multiple.xml +44 -0
  577. data/docbook-xsl/params/html.head.legalnotice.link.types.xml +75 -0
  578. data/docbook-xsl/params/html.longdesc.link.xml +39 -0
  579. data/docbook-xsl/params/html.longdesc.xml +28 -0
  580. data/docbook-xsl/params/html.stylesheet.type.xml +26 -0
  581. data/docbook-xsl/params/html.stylesheet.xml +36 -0
  582. data/docbook-xsl/params/htmlhelp.alias.file.xml +27 -0
  583. data/docbook-xsl/params/htmlhelp.autolabel.xml +28 -0
  584. data/docbook-xsl/params/htmlhelp.button.back.xml +27 -0
  585. data/docbook-xsl/params/htmlhelp.button.forward.xml +27 -0
  586. data/docbook-xsl/params/htmlhelp.button.hideshow.xml +27 -0
  587. data/docbook-xsl/params/htmlhelp.button.home.url.xml +27 -0
  588. data/docbook-xsl/params/htmlhelp.button.home.xml +27 -0
  589. data/docbook-xsl/params/htmlhelp.button.jump1.title.xml +27 -0
  590. data/docbook-xsl/params/htmlhelp.button.jump1.url.xml +27 -0
  591. data/docbook-xsl/params/htmlhelp.button.jump1.xml +23 -0
  592. data/docbook-xsl/params/htmlhelp.button.jump2.title.xml +27 -0
  593. data/docbook-xsl/params/htmlhelp.button.jump2.url.xml +27 -0
  594. data/docbook-xsl/params/htmlhelp.button.jump2.xml +27 -0
  595. data/docbook-xsl/params/htmlhelp.button.locate.xml +28 -0
  596. data/docbook-xsl/params/htmlhelp.button.next.xml +27 -0
  597. data/docbook-xsl/params/htmlhelp.button.options.xml +28 -0
  598. data/docbook-xsl/params/htmlhelp.button.prev.xml +28 -0
  599. data/docbook-xsl/params/htmlhelp.button.print.xml +28 -0
  600. data/docbook-xsl/params/htmlhelp.button.refresh.xml +27 -0
  601. data/docbook-xsl/params/htmlhelp.button.stop.xml +28 -0
  602. data/docbook-xsl/params/htmlhelp.button.zoom.xml +28 -0
  603. data/docbook-xsl/params/htmlhelp.chm.xml +27 -0
  604. data/docbook-xsl/params/htmlhelp.default.topic.xml +37 -0
  605. data/docbook-xsl/params/htmlhelp.display.progress.xml +28 -0
  606. data/docbook-xsl/params/htmlhelp.encoding.xml +28 -0
  607. data/docbook-xsl/params/htmlhelp.enhanced.decompilation.xml +27 -0
  608. data/docbook-xsl/params/htmlhelp.enumerate.images.xml +28 -0
  609. data/docbook-xsl/params/htmlhelp.force.map.and.alias.xml +26 -0
  610. data/docbook-xsl/params/htmlhelp.hhc.binary.xml +29 -0
  611. data/docbook-xsl/params/htmlhelp.hhc.folders.instead.books.xml +33 -0
  612. data/docbook-xsl/params/htmlhelp.hhc.section.depth.xml +27 -0
  613. data/docbook-xsl/params/htmlhelp.hhc.show.root.xml +29 -0
  614. data/docbook-xsl/params/htmlhelp.hhc.width.xml +28 -0
  615. data/docbook-xsl/params/htmlhelp.hhc.xml +27 -0
  616. data/docbook-xsl/params/htmlhelp.hhk.xml +27 -0
  617. data/docbook-xsl/params/htmlhelp.hhp.tail.xml +28 -0
  618. data/docbook-xsl/params/htmlhelp.hhp.window.xml +28 -0
  619. data/docbook-xsl/params/htmlhelp.hhp.windows.xml +29 -0
  620. data/docbook-xsl/params/htmlhelp.hhp.xml +28 -0
  621. data/docbook-xsl/params/htmlhelp.map.file.xml +25 -0
  622. data/docbook-xsl/params/htmlhelp.only.xml +32 -0
  623. data/docbook-xsl/params/htmlhelp.remember.window.position.xml +27 -0
  624. data/docbook-xsl/params/htmlhelp.show.advanced.search.xml +28 -0
  625. data/docbook-xsl/params/htmlhelp.show.favorities.xml +28 -0
  626. data/docbook-xsl/params/htmlhelp.show.menu.xml +28 -0
  627. data/docbook-xsl/params/htmlhelp.show.toolbar.text.xml +28 -0
  628. data/docbook-xsl/params/htmlhelp.title.xml +28 -0
  629. data/docbook-xsl/params/htmlhelp.use.hhk.xml +28 -0
  630. data/docbook-xsl/params/htmlhelp.window.geometry.xml +30 -0
  631. data/docbook-xsl/params/hyphenate.verbatim.characters.xml +30 -0
  632. data/docbook-xsl/params/hyphenate.verbatim.xml +45 -0
  633. data/docbook-xsl/params/hyphenate.xml +29 -0
  634. data/docbook-xsl/params/id.warnings.xml +25 -0
  635. data/docbook-xsl/params/ignore.image.scaling.xml +28 -0
  636. data/docbook-xsl/params/img.src.path.xml +40 -0
  637. data/docbook-xsl/params/index.div.title.properties.xml +39 -0
  638. data/docbook-xsl/params/index.entry.properties.xml +33 -0
  639. data/docbook-xsl/params/index.method.xml +162 -0
  640. data/docbook-xsl/params/index.number.separator.xml +54 -0
  641. data/docbook-xsl/params/index.on.role.xml +48 -0
  642. data/docbook-xsl/params/index.on.type.xml +52 -0
  643. data/docbook-xsl/params/index.page.number.properties.xml +31 -0
  644. data/docbook-xsl/params/index.prefer.titleabbrev.xml +29 -0
  645. data/docbook-xsl/params/index.preferred.page.properties.xml +32 -0
  646. data/docbook-xsl/params/index.range.separator.xml +57 -0
  647. data/docbook-xsl/params/index.term.separator.xml +54 -0
  648. data/docbook-xsl/params/informal.object.properties.xml +29 -0
  649. data/docbook-xsl/params/informalequation.properties.xml +27 -0
  650. data/docbook-xsl/params/informalexample.properties.xml +27 -0
  651. data/docbook-xsl/params/informalfigure.properties.xml +27 -0
  652. data/docbook-xsl/params/informaltable.properties.xml +32 -0
  653. data/docbook-xsl/params/inherit.keywords.xml +31 -0
  654. data/docbook-xsl/params/insert.link.page.number.xml +69 -0
  655. data/docbook-xsl/params/insert.olink.page.number.xml +83 -0
  656. data/docbook-xsl/params/insert.olink.pdf.frag.xml +68 -0
  657. data/docbook-xsl/params/insert.xref.page.number.xml +60 -0
  658. data/docbook-xsl/params/itemizedlist.label.properties.xml +26 -0
  659. data/docbook-xsl/params/itemizedlist.label.width.xml +28 -0
  660. data/docbook-xsl/params/itemizedlist.properties.xml +23 -0
  661. data/docbook-xsl/params/javahelp.encoding.xml +31 -0
  662. data/docbook-xsl/params/keep.relative.image.uris.xml +34 -0
  663. data/docbook-xsl/params/keyboard.nav.xml +29 -0
  664. data/docbook-xsl/params/l10n.gentext.default.language.xml +30 -0
  665. data/docbook-xsl/params/l10n.gentext.language.xml +33 -0
  666. data/docbook-xsl/params/l10n.gentext.use.xref.language.xml +53 -0
  667. data/docbook-xsl/params/l10n.lang.value.rfc.compliant.xml +57 -0
  668. data/docbook-xsl/params/label.from.part.xml +38 -0
  669. data/docbook-xsl/params/line-height.xml +27 -0
  670. data/docbook-xsl/params/linenumbering.everyNth.xml +29 -0
  671. data/docbook-xsl/params/linenumbering.extension.xml +30 -0
  672. data/docbook-xsl/params/linenumbering.separator.xml +30 -0
  673. data/docbook-xsl/params/linenumbering.width.xml +29 -0
  674. data/docbook-xsl/params/link.mailto.url.xml +29 -0
  675. data/docbook-xsl/params/list.block.properties.xml +25 -0
  676. data/docbook-xsl/params/list.block.spacing.xml +29 -0
  677. data/docbook-xsl/params/list.item.spacing.xml +26 -0
  678. data/docbook-xsl/params/make.graphic.viewport.xml +35 -0
  679. data/docbook-xsl/params/make.index.markup.xml +73 -0
  680. data/docbook-xsl/params/make.single.year.ranges.xml +28 -0
  681. data/docbook-xsl/params/make.valid.html.xml +35 -0
  682. data/docbook-xsl/params/make.year.ranges.xml +31 -0
  683. data/docbook-xsl/params/man.authors.section.enabled.xml +46 -0
  684. data/docbook-xsl/params/man.base.url.for.relative.links.xml +76 -0
  685. data/docbook-xsl/params/man.break.after.slash.xml +46 -0
  686. data/docbook-xsl/params/man.charmap.enabled.xml +55 -0
  687. data/docbook-xsl/params/man.charmap.subset.profile.english.xml +80 -0
  688. data/docbook-xsl/params/man.charmap.subset.profile.xml +297 -0
  689. data/docbook-xsl/params/man.charmap.uri.xml +42 -0
  690. data/docbook-xsl/params/man.charmap.use.subset.xml +80 -0
  691. data/docbook-xsl/params/man.copyright.section.enabled.xml +46 -0
  692. data/docbook-xsl/params/man.endnotes.are.numbered.xml +106 -0
  693. data/docbook-xsl/params/man.endnotes.list.enabled.xml +105 -0
  694. data/docbook-xsl/params/man.endnotes.list.heading.xml +36 -0
  695. data/docbook-xsl/params/man.font.funcprototype.xml +30 -0
  696. data/docbook-xsl/params/man.font.funcsynopsisinfo.xml +30 -0
  697. data/docbook-xsl/params/man.font.links.xml +64 -0
  698. data/docbook-xsl/params/man.font.table.headings.xml +30 -0
  699. data/docbook-xsl/params/man.font.table.title.xml +30 -0
  700. data/docbook-xsl/params/man.funcsynopsis.style.xml +26 -0
  701. data/docbook-xsl/params/man.hyphenate.computer.inlines.xml +53 -0
  702. data/docbook-xsl/params/man.hyphenate.filenames.xml +47 -0
  703. data/docbook-xsl/params/man.hyphenate.urls.xml +46 -0
  704. data/docbook-xsl/params/man.hyphenate.xml +59 -0
  705. data/docbook-xsl/params/man.indent.blurbs.xml +33 -0
  706. data/docbook-xsl/params/man.indent.lists.xml +35 -0
  707. data/docbook-xsl/params/man.indent.refsect.xml +70 -0
  708. data/docbook-xsl/params/man.indent.verbatims.xml +33 -0
  709. data/docbook-xsl/params/man.indent.width.xml +39 -0
  710. data/docbook-xsl/params/man.justify.xml +52 -0
  711. data/docbook-xsl/params/man.output.base.dir.xml +39 -0
  712. data/docbook-xsl/params/man.output.encoding.xml +53 -0
  713. data/docbook-xsl/params/man.output.in.separate.dir.xml +32 -0
  714. data/docbook-xsl/params/man.output.lang.in.name.enabled.xml +50 -0
  715. data/docbook-xsl/params/man.output.manifest.enabled.xml +27 -0
  716. data/docbook-xsl/params/man.output.manifest.filename.xml +29 -0
  717. data/docbook-xsl/params/man.output.quietly.xml +37 -0
  718. data/docbook-xsl/params/man.output.subdirs.enabled.xml +40 -0
  719. data/docbook-xsl/params/man.segtitle.suppress.xml +28 -0
  720. data/docbook-xsl/params/man.string.subst.map.local.post.xml +34 -0
  721. data/docbook-xsl/params/man.string.subst.map.local.pre.xml +34 -0
  722. data/docbook-xsl/params/man.string.subst.map.xml +162 -0
  723. data/docbook-xsl/params/man.subheading.divider.enabled.xml +37 -0
  724. data/docbook-xsl/params/man.subheading.divider.xml +37 -0
  725. data/docbook-xsl/params/man.table.footnotes.divider.xml +29 -0
  726. data/docbook-xsl/params/man.th.extra1.suppress.xml +32 -0
  727. data/docbook-xsl/params/man.th.extra2.max.length.xml +43 -0
  728. data/docbook-xsl/params/man.th.extra2.suppress.xml +44 -0
  729. data/docbook-xsl/params/man.th.extra3.max.length.xml +42 -0
  730. data/docbook-xsl/params/man.th.extra3.suppress.xml +34 -0
  731. data/docbook-xsl/params/man.th.title.max.length.xml +63 -0
  732. data/docbook-xsl/params/manifest.in.base.dir.xml +29 -0
  733. data/docbook-xsl/params/manifest.xml +29 -0
  734. data/docbook-xsl/params/manual.toc.xml +29 -0
  735. data/docbook-xsl/params/margin.note.float.type.xml +77 -0
  736. data/docbook-xsl/params/margin.note.properties.xml +54 -0
  737. data/docbook-xsl/params/margin.note.title.properties.xml +32 -0
  738. data/docbook-xsl/params/margin.note.width.xml +35 -0
  739. data/docbook-xsl/params/marker.section.level.xml +50 -0
  740. data/docbook-xsl/params/menuchoice.menu.separator.xml +42 -0
  741. data/docbook-xsl/params/menuchoice.separator.xml +32 -0
  742. data/docbook-xsl/params/minus.image.xml +29 -0
  743. data/docbook-xsl/params/monospace.font.family.xml +29 -0
  744. data/docbook-xsl/params/monospace.properties.xml +38 -0
  745. data/docbook-xsl/params/monospace.verbatim.properties.xml +27 -0
  746. data/docbook-xsl/params/multiframe.bottom.bgcolor.xml +28 -0
  747. data/docbook-xsl/params/multiframe.navigation.height.xml +28 -0
  748. data/docbook-xsl/params/multiframe.top.bgcolor.xml +28 -0
  749. data/docbook-xsl/params/multiframe.xml +31 -0
  750. data/docbook-xsl/params/nav.separator.xml +28 -0
  751. data/docbook-xsl/params/nav.table.summary.xml +27 -0
  752. data/docbook-xsl/params/navbgcolor.xml +26 -0
  753. data/docbook-xsl/params/navbodywidth.xml +26 -0
  754. data/docbook-xsl/params/navig.graphics.extension.xml +28 -0
  755. data/docbook-xsl/params/navig.graphics.path.xml +30 -0
  756. data/docbook-xsl/params/navig.graphics.xml +31 -0
  757. data/docbook-xsl/params/navig.showtitles.xml +32 -0
  758. data/docbook-xsl/params/navtocwidth.xml +26 -0
  759. data/docbook-xsl/params/next.image.xml +27 -0
  760. data/docbook-xsl/params/no.home.image.xml +27 -0
  761. data/docbook-xsl/params/no.next.image.xml +27 -0
  762. data/docbook-xsl/params/no.prev.image.xml +27 -0
  763. data/docbook-xsl/params/no.toc.image.xml +27 -0
  764. data/docbook-xsl/params/no.up.image.xml +27 -0
  765. data/docbook-xsl/params/nominal.image.depth.xml +27 -0
  766. data/docbook-xsl/params/nominal.image.width.xml +43 -0
  767. data/docbook-xsl/params/nominal.table.width.xml +30 -0
  768. data/docbook-xsl/params/nongraphical.admonition.properties.xml +41 -0
  769. data/docbook-xsl/params/normal.para.spacing.xml +26 -0
  770. data/docbook-xsl/params/olink.base.uri.xml +35 -0
  771. data/docbook-xsl/params/olink.debug.xml +36 -0
  772. data/docbook-xsl/params/olink.doctitle.xml +146 -0
  773. data/docbook-xsl/params/olink.fragid.xml +23 -0
  774. data/docbook-xsl/params/olink.lang.fallback.sequence.xml +83 -0
  775. data/docbook-xsl/params/olink.outline.ext.xml +28 -0
  776. data/docbook-xsl/params/olink.properties.xml +33 -0
  777. data/docbook-xsl/params/olink.pubid.xml +27 -0
  778. data/docbook-xsl/params/olink.resolver.xml +23 -0
  779. data/docbook-xsl/params/olink.sysid.xml +27 -0
  780. data/docbook-xsl/params/orderedlist.label.properties.xml +26 -0
  781. data/docbook-xsl/params/orderedlist.label.width.xml +28 -0
  782. data/docbook-xsl/params/orderedlist.properties.xml +24 -0
  783. data/docbook-xsl/params/othercredit.like.author.enabled.xml +31 -0
  784. data/docbook-xsl/params/output-root.xml +28 -0
  785. data/docbook-xsl/params/output.indent.xml +32 -0
  786. data/docbook-xsl/params/overlay.js.xml +28 -0
  787. data/docbook-xsl/params/overlay.logo.xml +28 -0
  788. data/docbook-xsl/params/overlay.xml +32 -0
  789. data/docbook-xsl/params/page.height.portrait.xml +69 -0
  790. data/docbook-xsl/params/page.height.xml +37 -0
  791. data/docbook-xsl/params/page.margin.bottom.xml +29 -0
  792. data/docbook-xsl/params/page.margin.inner.xml +35 -0
  793. data/docbook-xsl/params/page.margin.outer.xml +35 -0
  794. data/docbook-xsl/params/page.margin.top.xml +28 -0
  795. data/docbook-xsl/params/page.orientation.xml +32 -0
  796. data/docbook-xsl/params/page.width.portrait.xml +67 -0
  797. data/docbook-xsl/params/page.width.xml +36 -0
  798. data/docbook-xsl/params/pages.template.xml +29 -0
  799. data/docbook-xsl/params/paper.type.xml +71 -0
  800. data/docbook-xsl/params/para.propagates.style.xml +29 -0
  801. data/docbook-xsl/params/part.autolabel.xml +73 -0
  802. data/docbook-xsl/params/passivetex.extensions.xml +37 -0
  803. data/docbook-xsl/params/pgwide.properties.xml +52 -0
  804. data/docbook-xsl/params/phrase.propagates.style.xml +29 -0
  805. data/docbook-xsl/params/pixels.per.inch.xml +31 -0
  806. data/docbook-xsl/params/plus.image.xml +29 -0
  807. data/docbook-xsl/params/points.per.em.xml +29 -0
  808. data/docbook-xsl/params/preface.autolabel.xml +71 -0
  809. data/docbook-xsl/params/prefer.internal.olink.xml +78 -0
  810. data/docbook-xsl/params/preferred.mediaobject.role.xml +40 -0
  811. data/docbook-xsl/params/prev.image.xml +27 -0
  812. data/docbook-xsl/params/procedure.properties.xml +29 -0
  813. data/docbook-xsl/params/process.empty.source.toc.xml +39 -0
  814. data/docbook-xsl/params/process.source.toc.xml +39 -0
  815. data/docbook-xsl/params/profile.arch.xml +39 -0
  816. data/docbook-xsl/params/profile.attribute.xml +34 -0
  817. data/docbook-xsl/params/profile.audience.xml +38 -0
  818. data/docbook-xsl/params/profile.condition.xml +38 -0
  819. data/docbook-xsl/params/profile.conformance.xml +38 -0
  820. data/docbook-xsl/params/profile.lang.xml +38 -0
  821. data/docbook-xsl/params/profile.os.xml +38 -0
  822. data/docbook-xsl/params/profile.revision.xml +38 -0
  823. data/docbook-xsl/params/profile.revisionflag.xml +38 -0
  824. data/docbook-xsl/params/profile.role.xml +54 -0
  825. data/docbook-xsl/params/profile.security.xml +38 -0
  826. data/docbook-xsl/params/profile.separator.xml +27 -0
  827. data/docbook-xsl/params/profile.status.xml +38 -0
  828. data/docbook-xsl/params/profile.userlevel.xml +38 -0
  829. data/docbook-xsl/params/profile.value.xml +41 -0
  830. data/docbook-xsl/params/profile.vendor.xml +38 -0
  831. data/docbook-xsl/params/profile.wordsize.xml +38 -0
  832. data/docbook-xsl/params/punct.honorific.xml +28 -0
  833. data/docbook-xsl/params/qanda.defaultlabel.xml +44 -0
  834. data/docbook-xsl/params/qanda.in.toc.xml +34 -0
  835. data/docbook-xsl/params/qanda.inherit.numeration.xml +30 -0
  836. data/docbook-xsl/params/qanda.nested.in.toc.xml +29 -0
  837. data/docbook-xsl/params/qanda.title.level1.properties.xml +32 -0
  838. data/docbook-xsl/params/qanda.title.level2.properties.xml +32 -0
  839. data/docbook-xsl/params/qanda.title.level3.properties.xml +32 -0
  840. data/docbook-xsl/params/qanda.title.level4.properties.xml +32 -0
  841. data/docbook-xsl/params/qanda.title.level5.properties.xml +32 -0
  842. data/docbook-xsl/params/qanda.title.level6.properties.xml +34 -0
  843. data/docbook-xsl/params/qanda.title.properties.xml +37 -0
  844. data/docbook-xsl/params/qandadiv.autolabel.xml +26 -0
  845. data/docbook-xsl/params/rebuild-all.xml +33 -0
  846. data/docbook-xsl/params/refclass.suppress.xml +28 -0
  847. data/docbook-xsl/params/refentry.date.profile.enabled.xml +46 -0
  848. data/docbook-xsl/params/refentry.date.profile.xml +38 -0
  849. data/docbook-xsl/params/refentry.generate.name.xml +33 -0
  850. data/docbook-xsl/params/refentry.generate.title.xml +33 -0
  851. data/docbook-xsl/params/refentry.manual.fallback.profile.xml +48 -0
  852. data/docbook-xsl/params/refentry.manual.profile.enabled.xml +47 -0
  853. data/docbook-xsl/params/refentry.manual.profile.xml +72 -0
  854. data/docbook-xsl/params/refentry.meta.get.quietly.xml +37 -0
  855. data/docbook-xsl/params/refentry.pagebreak.xml +33 -0
  856. data/docbook-xsl/params/refentry.separator.xml +29 -0
  857. data/docbook-xsl/params/refentry.source.fallback.profile.xml +49 -0
  858. data/docbook-xsl/params/refentry.source.name.profile.enabled.xml +48 -0
  859. data/docbook-xsl/params/refentry.source.name.profile.xml +89 -0
  860. data/docbook-xsl/params/refentry.source.name.suppress.xml +42 -0
  861. data/docbook-xsl/params/refentry.title.properties.xml +59 -0
  862. data/docbook-xsl/params/refentry.version.profile.enabled.xml +47 -0
  863. data/docbook-xsl/params/refentry.version.profile.xml +41 -0
  864. data/docbook-xsl/params/refentry.version.suppress.xml +43 -0
  865. data/docbook-xsl/params/refentry.xref.manvolnum.xml +31 -0
  866. data/docbook-xsl/params/reference.autolabel.xml +67 -0
  867. data/docbook-xsl/params/region.after.extent.xml +29 -0
  868. data/docbook-xsl/params/region.before.extent.xml +29 -0
  869. data/docbook-xsl/params/revhistory.table.cell.properties.xml +28 -0
  870. data/docbook-xsl/params/revhistory.table.properties.xml +28 -0
  871. data/docbook-xsl/params/revhistory.title.properties.xml +28 -0
  872. data/docbook-xsl/params/root.filename.xml +29 -0
  873. data/docbook-xsl/params/root.properties.xml +43 -0
  874. data/docbook-xsl/params/rootid.xml +33 -0
  875. data/docbook-xsl/params/runinhead.default.title.end.punct.xml +27 -0
  876. data/docbook-xsl/params/runinhead.title.end.punct.xml +32 -0
  877. data/docbook-xsl/params/running.foot.properties.xml +34 -0
  878. data/docbook-xsl/params/sans.font.family.xml +29 -0
  879. data/docbook-xsl/params/saxon.callouts.xml +30 -0
  880. data/docbook-xsl/params/saxon.character.representation.xml +38 -0
  881. data/docbook-xsl/params/saxon.linenumbering.xml +32 -0
  882. data/docbook-xsl/params/saxon.tablecolumns.xml +30 -0
  883. data/docbook-xsl/params/script.dir.xml +33 -0
  884. data/docbook-xsl/params/section.autolabel.max.depth.xml +32 -0
  885. data/docbook-xsl/params/section.autolabel.xml +26 -0
  886. data/docbook-xsl/params/section.container.element.xml +62 -0
  887. data/docbook-xsl/params/section.label.includes.component.label.xml +27 -0
  888. data/docbook-xsl/params/section.level1.properties.xml +43 -0
  889. data/docbook-xsl/params/section.level2.properties.xml +43 -0
  890. data/docbook-xsl/params/section.level3.properties.xml +43 -0
  891. data/docbook-xsl/params/section.level4.properties.xml +43 -0
  892. data/docbook-xsl/params/section.level5.properties.xml +43 -0
  893. data/docbook-xsl/params/section.level6.properties.xml +43 -0
  894. data/docbook-xsl/params/section.properties.xml +35 -0
  895. data/docbook-xsl/params/section.title.level1.properties.xml +32 -0
  896. data/docbook-xsl/params/section.title.level2.properties.xml +33 -0
  897. data/docbook-xsl/params/section.title.level3.properties.xml +32 -0
  898. data/docbook-xsl/params/section.title.level4.properties.xml +32 -0
  899. data/docbook-xsl/params/section.title.level5.properties.xml +32 -0
  900. data/docbook-xsl/params/section.title.level6.properties.xml +33 -0
  901. data/docbook-xsl/params/section.title.properties.xml +39 -0
  902. data/docbook-xsl/params/segmentedlist.as.table.xml +28 -0
  903. data/docbook-xsl/params/sequential.links.xml +25 -0
  904. data/docbook-xsl/params/shade.verbatim.style.xml +36 -0
  905. data/docbook-xsl/params/shade.verbatim.xml +30 -0
  906. data/docbook-xsl/params/show.comments.xml +32 -0
  907. data/docbook-xsl/params/show.foil.number.xml +28 -0
  908. data/docbook-xsl/params/show.revisionflag.xml +42 -0
  909. data/docbook-xsl/params/showtoc.image.xml +29 -0
  910. data/docbook-xsl/params/side.float.properties.xml +50 -0
  911. data/docbook-xsl/params/sidebar.float.type.xml +73 -0
  912. data/docbook-xsl/params/sidebar.float.width.xml +35 -0
  913. data/docbook-xsl/params/sidebar.properties.xml +42 -0
  914. data/docbook-xsl/params/sidebar.title.properties.xml +32 -0
  915. data/docbook-xsl/params/simplesect.in.toc.xml +26 -0
  916. data/docbook-xsl/params/slide.font.family.xml +31 -0
  917. data/docbook-xsl/params/slide.title.font.family.xml +31 -0
  918. data/docbook-xsl/params/slides.js.xml +28 -0
  919. data/docbook-xsl/params/slides.properties.xml +31 -0
  920. data/docbook-xsl/params/spacing.paras.xml +30 -0
  921. data/docbook-xsl/params/speakernote.properties.xml +32 -0
  922. data/docbook-xsl/params/subscript.properties.xml +29 -0
  923. data/docbook-xsl/params/superscript.properties.xml +29 -0
  924. data/docbook-xsl/params/suppress.footer.navigation.xml +26 -0
  925. data/docbook-xsl/params/suppress.header.navigation.xml +27 -0
  926. data/docbook-xsl/params/suppress.homepage.title.xml +25 -0
  927. data/docbook-xsl/params/suppress.navigation.xml +28 -0
  928. data/docbook-xsl/params/symbol.font.family.xml +45 -0
  929. data/docbook-xsl/params/table.borders.with.css.xml +28 -0
  930. data/docbook-xsl/params/table.cell.border.color.xml +39 -0
  931. data/docbook-xsl/params/table.cell.border.style.xml +42 -0
  932. data/docbook-xsl/params/table.cell.border.thickness.xml +35 -0
  933. data/docbook-xsl/params/table.cell.padding.xml +32 -0
  934. data/docbook-xsl/params/table.entry.padding.xml +27 -0
  935. data/docbook-xsl/params/table.footnote.number.format.xml +33 -0
  936. data/docbook-xsl/params/table.footnote.number.symbols.xml +39 -0
  937. data/docbook-xsl/params/table.footnote.properties.xml +39 -0
  938. data/docbook-xsl/params/table.frame.border.color.xml +28 -0
  939. data/docbook-xsl/params/table.frame.border.style.xml +37 -0
  940. data/docbook-xsl/params/table.frame.border.thickness.xml +27 -0
  941. data/docbook-xsl/params/table.properties.xml +34 -0
  942. data/docbook-xsl/params/table.spacer.image.xml +26 -0
  943. data/docbook-xsl/params/table.table.properties.xml +36 -0
  944. data/docbook-xsl/params/tablecolumns.extension.xml +30 -0
  945. data/docbook-xsl/params/target.database.document.xml +37 -0
  946. data/docbook-xsl/params/targets.filename.xml +32 -0
  947. data/docbook-xsl/params/template.xml +27 -0
  948. data/docbook-xsl/params/tex.math.delims.xml +47 -0
  949. data/docbook-xsl/params/tex.math.file.xml +42 -0
  950. data/docbook-xsl/params/tex.math.in.alt.xml +83 -0
  951. data/docbook-xsl/params/text.home.xml +27 -0
  952. data/docbook-xsl/params/text.next.xml +27 -0
  953. data/docbook-xsl/params/text.prev.xml +27 -0
  954. data/docbook-xsl/params/text.toc.xml +27 -0
  955. data/docbook-xsl/params/text.up.xml +27 -0
  956. data/docbook-xsl/params/textbgcolor.xml +26 -0
  957. data/docbook-xsl/params/textdata.default.encoding.xml +32 -0
  958. data/docbook-xsl/params/textinsert.extension.xml +62 -0
  959. data/docbook-xsl/params/title.font.family.xml +33 -0
  960. data/docbook-xsl/params/title.margin.left.xml +64 -0
  961. data/docbook-xsl/params/titlefoil.html.xml +27 -0
  962. data/docbook-xsl/params/toc.bg.color.xml +27 -0
  963. data/docbook-xsl/params/toc.blank.graphic.xml +28 -0
  964. data/docbook-xsl/params/toc.blank.image.xml +27 -0
  965. data/docbook-xsl/params/toc.blank.text.xml +27 -0
  966. data/docbook-xsl/params/toc.hide.show.xml +33 -0
  967. data/docbook-xsl/params/toc.html.xml +27 -0
  968. data/docbook-xsl/params/toc.image.xml +27 -0
  969. data/docbook-xsl/params/toc.indent.width.xml +34 -0
  970. data/docbook-xsl/params/toc.line.properties.xml +42 -0
  971. data/docbook-xsl/params/toc.list.type.xml +30 -0
  972. data/docbook-xsl/params/toc.margin.properties.xml +33 -0
  973. data/docbook-xsl/params/toc.max.depth.xml +25 -0
  974. data/docbook-xsl/params/toc.pointer.graphic.xml +28 -0
  975. data/docbook-xsl/params/toc.pointer.image.xml +27 -0
  976. data/docbook-xsl/params/toc.pointer.text.xml +27 -0
  977. data/docbook-xsl/params/toc.row.height.xml +33 -0
  978. data/docbook-xsl/params/toc.section.depth.xml +28 -0
  979. data/docbook-xsl/params/toc.spacer.graphic.xml +28 -0
  980. data/docbook-xsl/params/toc.spacer.image.xml +27 -0
  981. data/docbook-xsl/params/toc.spacer.text.xml +27 -0
  982. data/docbook-xsl/params/toc.width.xml +28 -0
  983. data/docbook-xsl/params/ua.js.xml +28 -0
  984. data/docbook-xsl/params/ulink.footnotes.xml +34 -0
  985. data/docbook-xsl/params/ulink.hyphenate.chars.xml +37 -0
  986. data/docbook-xsl/params/ulink.hyphenate.xml +35 -0
  987. data/docbook-xsl/params/ulink.show.xml +37 -0
  988. data/docbook-xsl/params/ulink.target.xml +29 -0
  989. data/docbook-xsl/params/up.image.xml +27 -0
  990. data/docbook-xsl/params/use.embed.for.svg.xml +33 -0
  991. data/docbook-xsl/params/use.extensions.xml +31 -0
  992. data/docbook-xsl/params/use.id.as.filename.xml +30 -0
  993. data/docbook-xsl/params/use.id.function.xml +32 -0
  994. data/docbook-xsl/params/use.local.olink.style.xml +28 -0
  995. data/docbook-xsl/params/use.role.as.xrefstyle.xml +93 -0
  996. data/docbook-xsl/params/use.role.for.mediaobject.xml +56 -0
  997. data/docbook-xsl/params/use.svg.xml +30 -0
  998. data/docbook-xsl/params/variablelist.as.blocks.xml +62 -0
  999. data/docbook-xsl/params/variablelist.as.table.xml +54 -0
  1000. data/docbook-xsl/params/variablelist.max.termlength.xml +46 -0
  1001. data/docbook-xsl/params/variablelist.term.break.after.xml +39 -0
  1002. data/docbook-xsl/params/variablelist.term.separator.xml +40 -0
  1003. data/docbook-xsl/params/verbatim.properties.xml +38 -0
  1004. data/docbook-xsl/params/wordml.template.xml +29 -0
  1005. data/docbook-xsl/params/writing.mode.xml +84 -0
  1006. data/docbook-xsl/params/xbCollapsibleLists.js.xml +28 -0
  1007. data/docbook-xsl/params/xbDOM.js.xml +28 -0
  1008. data/docbook-xsl/params/xbLibrary.js.xml +28 -0
  1009. data/docbook-xsl/params/xbStyle.js.xml +28 -0
  1010. data/docbook-xsl/params/xep.extensions.xml +31 -0
  1011. data/docbook-xsl/params/xep.index.item.properties.xml +36 -0
  1012. data/docbook-xsl/params/xref.label-page.separator.xml +38 -0
  1013. data/docbook-xsl/params/xref.label-title.separator.xml +36 -0
  1014. data/docbook-xsl/params/xref.properties.xml +29 -0
  1015. data/docbook-xsl/params/xref.title-page.separator.xml +36 -0
  1016. data/docbook-xsl/params/xref.with.number.and.title.xml +30 -0
  1017. data/docbook-xsl/profiling/profile-mode.xsl +239 -0
  1018. data/docbook-xsl/profiling/profile.xsl +49 -0
  1019. data/docbook-xsl/profiling/strip-attributes.xsl +27 -0
  1020. data/docbook-xsl/profiling/xsl2profile.xsl +159 -0
  1021. data/docbook-xsl/roundtrip/blocks-spec.xml +11 -0
  1022. data/docbook-xsl/roundtrip/blocks2dbk.dtd +76 -0
  1023. data/docbook-xsl/roundtrip/blocks2dbk.xsl +1732 -0
  1024. data/docbook-xsl/roundtrip/dbk2ooo.xsl +178 -0
  1025. data/docbook-xsl/roundtrip/dbk2pages.xsl +441 -0
  1026. data/docbook-xsl/roundtrip/dbk2wordml.xsl +401 -0
  1027. data/docbook-xsl/roundtrip/dbk2wp.xsl +1375 -0
  1028. data/docbook-xsl/roundtrip/normalise-common.xsl +39 -0
  1029. data/docbook-xsl/roundtrip/normalise2sections.xsl +1270 -0
  1030. data/docbook-xsl/roundtrip/pages2normalise.xsl +351 -0
  1031. data/docbook-xsl/roundtrip/param.xml +105 -0
  1032. data/docbook-xsl/roundtrip/param.xsl +18 -0
  1033. data/docbook-xsl/roundtrip/sections-spec.xml +38 -0
  1034. data/docbook-xsl/roundtrip/sections2blocks.xsl +263 -0
  1035. data/docbook-xsl/roundtrip/specifications.xml +1420 -0
  1036. data/docbook-xsl/roundtrip/template-pages.xml +2 -0
  1037. data/docbook-xsl/roundtrip/template.dot +0 -0
  1038. data/docbook-xsl/roundtrip/template.xml +3 -0
  1039. data/docbook-xsl/roundtrip/wordml2normalise.xsl +445 -0
  1040. data/docbook-xsl/template/titlepage.xml +478 -0
  1041. data/docbook-xsl/template/titlepage.xsl +1280 -0
  1042. data/docbook-xsl/tests/refentry.007.ns.xml +325 -0
  1043. data/docbook-xsl/tests/refentry.007.xml +340 -0
  1044. data/docbook-xsl/tools/bin/docbook-xsl-update +53 -0
  1045. data/docbook-xsl/tools/make/Makefile.DocBook +698 -0
  1046. data/docbook-xsl/tools/make/Makefile.combine +182 -0
  1047. data/docbook-xsl/tools/make/Makefile.docParam +59 -0
  1048. data/docbook-xsl/xhtml/admon.xsl +133 -0
  1049. data/docbook-xsl/xhtml/annotations.xsl +158 -0
  1050. data/docbook-xsl/xhtml/autoidx-kimber.xsl +139 -0
  1051. data/docbook-xsl/xhtml/autoidx-kosek.xsl +109 -0
  1052. data/docbook-xsl/xhtml/autoidx-ng.xsl +21 -0
  1053. data/docbook-xsl/xhtml/autoidx.xsl +588 -0
  1054. data/docbook-xsl/xhtml/autotoc.xsl +632 -0
  1055. data/docbook-xsl/xhtml/biblio-iso690.xsl +1300 -0
  1056. data/docbook-xsl/xhtml/biblio.xsl +1234 -0
  1057. data/docbook-xsl/xhtml/block.xsl +432 -0
  1058. data/docbook-xsl/xhtml/callout.xsl +188 -0
  1059. data/docbook-xsl/xhtml/changebars.xsl +78 -0
  1060. data/docbook-xsl/xhtml/chunk-changebars.xsl +96 -0
  1061. data/docbook-xsl/xhtml/chunk-code.xsl +639 -0
  1062. data/docbook-xsl/xhtml/chunk-common.xsl +1552 -0
  1063. data/docbook-xsl/xhtml/chunk.xsl +52 -0
  1064. data/docbook-xsl/xhtml/chunker.xsl +302 -0
  1065. data/docbook-xsl/xhtml/chunkfast.xsl +69 -0
  1066. data/docbook-xsl/xhtml/chunktoc.xsl +462 -0
  1067. data/docbook-xsl/xhtml/component.xsl +375 -0
  1068. data/docbook-xsl/xhtml/division.xsl +228 -0
  1069. data/docbook-xsl/xhtml/docbook.xsl +447 -0
  1070. data/docbook-xsl/xhtml/ebnf.xsl +328 -0
  1071. data/docbook-xsl/xhtml/footnote.xsl +301 -0
  1072. data/docbook-xsl/xhtml/formal.xsl +387 -0
  1073. data/docbook-xsl/xhtml/glossary.xsl +548 -0
  1074. data/docbook-xsl/xhtml/graphics.xsl +1436 -0
  1075. data/docbook-xsl/xhtml/highlight.xsl +70 -0
  1076. data/docbook-xsl/xhtml/html-rtf.xsl +321 -0
  1077. data/docbook-xsl/xhtml/html.xsl +263 -0
  1078. data/docbook-xsl/xhtml/htmltbl.xsl +57 -0
  1079. data/docbook-xsl/xhtml/index.xsl +224 -0
  1080. data/docbook-xsl/xhtml/info.xsl +44 -0
  1081. data/docbook-xsl/xhtml/inline.xsl +1457 -0
  1082. data/docbook-xsl/xhtml/keywords.xsl +36 -0
  1083. data/docbook-xsl/xhtml/lists.xsl +1081 -0
  1084. data/docbook-xsl/xhtml/maketoc.xsl +91 -0
  1085. data/docbook-xsl/xhtml/manifest.xsl +22 -0
  1086. data/docbook-xsl/xhtml/math.xsl +284 -0
  1087. data/docbook-xsl/xhtml/oldchunker.xsl +176 -0
  1088. data/docbook-xsl/xhtml/onechunk.xsl +36 -0
  1089. data/docbook-xsl/xhtml/param.xsl +424 -0
  1090. data/docbook-xsl/xhtml/pi.xsl +1203 -0
  1091. data/docbook-xsl/xhtml/profile-chunk-code.xsl +611 -0
  1092. data/docbook-xsl/xhtml/profile-chunk.xsl +52 -0
  1093. data/docbook-xsl/xhtml/profile-docbook.xsl +409 -0
  1094. data/docbook-xsl/xhtml/profile-onechunk.xsl +36 -0
  1095. data/docbook-xsl/xhtml/qandaset.xsl +371 -0
  1096. data/docbook-xsl/xhtml/refentry.xsl +309 -0
  1097. data/docbook-xsl/xhtml/sections.xsl +554 -0
  1098. data/docbook-xsl/xhtml/synop.xsl +1508 -0
  1099. data/docbook-xsl/xhtml/table.xsl +1102 -0
  1100. data/docbook-xsl/xhtml/task.xsl +73 -0
  1101. data/docbook-xsl/xhtml/titlepage.templates.xsl +3622 -0
  1102. data/docbook-xsl/xhtml/titlepage.xsl +1015 -0
  1103. data/docbook-xsl/xhtml/toc.xsl +159 -0
  1104. data/docbook-xsl/xhtml/verbatim.xsl +354 -0
  1105. data/docbook-xsl/xhtml/xref.xsl +1288 -0
  1106. data/example/LICENSE +22 -0
  1107. data/example/book/big.asc +5604 -0
  1108. data/example/book/book.asc +62 -0
  1109. data/example/book/holmes.asc +12983 -0
  1110. data/example/book/image/octocat_professor.png +0 -0
  1111. data/example/book/include/hello.c +10 -0
  1112. data/example/output/META-INF/container.xml +6 -0
  1113. data/example/output/OEBPS/ar01s02.html +15 -0
  1114. data/example/output/OEBPS/ar01s03.html +3 -0
  1115. data/example/output/OEBPS/content.opf +21 -0
  1116. data/example/output/OEBPS/index.html +5 -0
  1117. data/example/output/OEBPS/toc.ncx +37 -0
  1118. data/example/output/a_case_of_identity.html +725 -0
  1119. data/example/output/a_example_appendix.html +63 -0
  1120. data/example/output/a_migration_notes.html +95 -0
  1121. data/example/output/apa.html +20 -0
  1122. data/example/output/apb.html +6 -0
  1123. data/example/output/apc.html +24 -0
  1124. data/example/output/apd.html +30 -0
  1125. data/example/output/ape.html +26 -0
  1126. data/example/output/apf.html +9 -0
  1127. data/example/output/apg.html +42 -0
  1128. data/example/output/aph.html +89 -0
  1129. data/example/output/ar01s02.html +12 -0
  1130. data/example/output/ar01s03.html +34 -0
  1131. data/example/output/ar01s04.html +77 -0
  1132. data/example/output/ar01s05.html +272 -0
  1133. data/example/output/ar01s06.html +35 -0
  1134. data/example/output/ar01s07.html +105 -0
  1135. data/example/output/ar01s08.html +33 -0
  1136. data/example/output/ar01s09.html +12 -0
  1137. data/example/output/ar01s10.html +14 -0
  1138. data/example/output/ar01s11.html +34 -0
  1139. data/example/output/ar01s12.html +63 -0
  1140. data/example/output/ar01s13.html +156 -0
  1141. data/example/output/ar01s14.html +330 -0
  1142. data/example/output/ar01s15.html +22 -0
  1143. data/example/output/ar01s16.html +27 -0
  1144. data/example/output/ar01s17.html +94 -0
  1145. data/example/output/ar01s18.html +359 -0
  1146. data/example/output/ar01s19.html +373 -0
  1147. data/example/output/ar01s20.html +27 -0
  1148. data/example/output/ar01s21.html +33 -0
  1149. data/example/output/ar01s22.html +351 -0
  1150. data/example/output/ar01s23.html +21 -0
  1151. data/example/output/ar01s24.html +69 -0
  1152. data/example/output/ar01s25.html +60 -0
  1153. data/example/output/ar01s26.html +217 -0
  1154. data/example/output/ar01s27.html +88 -0
  1155. data/example/output/ar01s28.html +237 -0
  1156. data/example/output/ar01s29.html +68 -0
  1157. data/example/output/ar01s30.html +154 -0
  1158. data/example/output/ar01s31.html +6 -0
  1159. data/example/output/ar01s32.html +22 -0
  1160. data/example/output/ar01s33.html +209 -0
  1161. data/example/output/asciidoc_backends.html +190 -0
  1162. data/example/output/asciidoc_document_types.html +131 -0
  1163. data/example/output/attribute_entries.html +185 -0
  1164. data/example/output/attribute_lists.html +157 -0
  1165. data/example/output/attribute_references.html +414 -0
  1166. data/example/output/attributelist_element.html +143 -0
  1167. data/example/output/b_packager_notes.html +68 -0
  1168. data/example/output/bi01.html +18 -0
  1169. data/example/output/big.asc +5604 -0
  1170. data/example/output/block_element_definitions.html +448 -0
  1171. data/example/output/block_titles.html +83 -0
  1172. data/example/output/blockid_element.html +80 -0
  1173. data/example/output/book.asc +5604 -0
  1174. data/example/output/book.epub +0 -0
  1175. data/example/output/book.fo +3788 -0
  1176. data/example/output/book.html +8793 -0
  1177. data/example/output/book.xml +8265 -0
  1178. data/example/output/c_asciidoc_safe_mode.html +105 -0
  1179. data/example/output/callouts.html +214 -0
  1180. data/example/output/catalog +10 -0
  1181. data/example/output/colophon.html +397 -0
  1182. data/example/output/configuration_files.html +672 -0
  1183. data/example/output/converting_docbook_to_other_file_formats.html +324 -0
  1184. data/example/output/d_using_asciidoc_with_non-english_languages.html +107 -0
  1185. data/example/output/delimited_blocks.html +455 -0
  1186. data/example/output/document_attributes.html +95 -0
  1187. data/example/output/document_processing.html +116 -0
  1188. data/example/output/document_structure.html +493 -0
  1189. data/example/output/e_vim_syntax_highlighter.html +111 -0
  1190. data/example/output/example_bibliography.html +82 -0
  1191. data/example/output/example_colophon.html +58 -0
  1192. data/example/output/example_glossary.html +73 -0
  1193. data/example/output/example_index.html +108 -0
  1194. data/example/output/f_attribute_options.html +129 -0
  1195. data/example/output/filters.html +179 -0
  1196. data/example/output/footnotes.html +103 -0
  1197. data/example/output/g_diagnostics.html +148 -0
  1198. data/example/output/generating_plain_text_files.html +68 -0
  1199. data/example/output/getting_started.html +87 -0
  1200. data/example/output/glossary.html +95 -0
  1201. data/example/output/go01.html +24 -0
  1202. data/example/output/h_backend_attributes.html +308 -0
  1203. data/example/output/help_commands.html +96 -0
  1204. data/example/output/holmes.asc +12983 -0
  1205. data/example/output/image/octocat_professor.png +0 -0
  1206. data/example/output/include/hello.c +10 -0
  1207. data/example/output/index.html +656 -0
  1208. data/example/output/indexes.html +104 -0
  1209. data/example/output/intrinsic_attributes.html +165 -0
  1210. data/example/output/ix01.html +3 -0
  1211. data/example/output/lists.html +666 -0
  1212. data/example/output/macros.html +737 -0
  1213. data/example/output/manpage_documents.html +124 -0
  1214. data/example/output/master.css +281 -0
  1215. data/example/output/mathematical_formulas.html +125 -0
  1216. data/example/output/page.html +60 -0
  1217. data/example/output/paragraphs.html +192 -0
  1218. data/example/output/pr01.html +3 -0
  1219. data/example/output/source_code_highlighting.html +59 -0
  1220. data/example/output/stylesheets/handbookish-quirks.css +0 -0
  1221. data/example/output/stylesheets/handbookish.css +233 -0
  1222. data/example/output/tables.html +797 -0
  1223. data/example/output/text_formatting.html +273 -0
  1224. data/example/output/the_adventure_of_the_beryl_coronet.html +968 -0
  1225. data/example/output/the_adventure_of_the_blue_carbuncle.html +825 -0
  1226. data/example/output/the_adventure_of_the_copper_beeches.html +998 -0
  1227. data/example/output/the_adventure_of_the_engineer_s_thumb.html +851 -0
  1228. data/example/output/the_adventure_of_the_noble_bachelor.html +861 -0
  1229. data/example/output/the_adventure_of_the_speckled_band.html +1015 -0
  1230. data/example/output/the_boscombe_valley_mystery.html +974 -0
  1231. data/example/output/the_first_chapter.html +110 -0
  1232. data/example/output/the_five_orange_pips.html +776 -0
  1233. data/example/output/the_man_with_the_twisted_lip.html +946 -0
  1234. data/example/output/the_red-headed_league.html +950 -0
  1235. data/example/output/the_second_chapter.html +95 -0
  1236. data/example/output/the_third_chapter.html +58 -0
  1237. data/example/output/tips_and_tricks.html +452 -0
  1238. data/example/output/title.html +120 -0
  1239. data/example/output/titles.html +126 -0
  1240. data/example/site/index.html +12 -0
  1241. data/example/site/page.html +8 -0
  1242. data/site/default/index.html +43 -0
  1243. data/site/default/master.css +281 -0
  1244. data/site/default/page.html +60 -0
  1245. data/stylesheets/handbookish-quirks.css +0 -0
  1246. data/stylesheets/handbookish.css +233 -0
  1247. data/template/LICENSE +1 -0
  1248. data/template/README.asciidoc +9 -0
  1249. data/template/book/book.asc +58 -0
  1250. data/template/book/chapter2.asc +8 -0
  1251. data/template/book/image/octocat_professor.png +0 -0
  1252. data/template/book/include/hello.c +10 -0
  1253. metadata +1255 -3
@@ -0,0 +1,1552 @@
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:exsl="http://exslt.org/common" xmlns:cf="http://docbook.sourceforge.net/xmlns/chunkfast/1.0" xmlns:ng="http://docbook.org/docbook-ng" xmlns:db="http://docbook.org/ns/docbook" xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="exsl cf ng db">
5
+
6
+ <!-- ********************************************************************
7
+ $Id: chunk-common.xsl 8178 2008-12-15 22:26:38Z bobstayton $
8
+ ********************************************************************
9
+
10
+ This file is part of the XSL DocBook Stylesheet distribution.
11
+ See ../README or http://docbook.sf.net/release/xsl/current/ for
12
+ copyright and other information.
13
+
14
+ ******************************************************************** -->
15
+
16
+ <!-- ==================================================================== -->
17
+
18
+ <xsl:param name="onechunk" select="0"/>
19
+ <xsl:param name="refentry.separator" select="0"/>
20
+ <xsl:param name="chunk.fast" select="0"/>
21
+
22
+ <xsl:key name="genid" match="*" use="generate-id()"/>
23
+
24
+ <!-- ==================================================================== -->
25
+
26
+ <xsl:variable name="chunk.hierarchy">
27
+ <xsl:if test="$chunk.fast != 0">
28
+ <xsl:choose>
29
+ <xsl:when test="function-available('exsl:node-set')">
30
+ <xsl:message>Computing chunks...</xsl:message>
31
+ <xsl:apply-templates select="/*" mode="find.chunks"/>
32
+ </xsl:when>
33
+ <xsl:otherwise>
34
+ <xsl:message>
35
+ <xsl:text>Fast chunking requires exsl:node-set(). </xsl:text>
36
+ <xsl:text>Using "slow" chunking.</xsl:text>
37
+ </xsl:message>
38
+ </xsl:otherwise>
39
+ </xsl:choose>
40
+ </xsl:if>
41
+ </xsl:variable>
42
+
43
+ <!-- ==================================================================== -->
44
+
45
+ <xsl:template name="process-chunk-element">
46
+ <xsl:param name="content">
47
+ <xsl:apply-imports/>
48
+ </xsl:param>
49
+
50
+ <xsl:choose>
51
+ <xsl:when test="$chunk.fast != 0 and function-available('exsl:node-set')">
52
+ <xsl:variable name="chunks" select="exsl:node-set($chunk.hierarchy)//cf:div"/>
53
+ <xsl:variable name="genid" select="generate-id()"/>
54
+
55
+ <xsl:variable name="div" select="$chunks[@id=$genid or @xml:id=$genid]"/>
56
+
57
+ <xsl:variable name="prevdiv" select="($div/preceding-sibling::cf:div|$div/preceding::cf:div|$div/parent::cf:div)[last()]"/>
58
+ <xsl:variable name="prev" select="key('genid', ($prevdiv/@id|$prevdiv/@xml:id)[1])"/>
59
+
60
+ <xsl:variable name="nextdiv" select="($div/following-sibling::cf:div|$div/following::cf:div|$div/cf:div)[1]"/>
61
+ <xsl:variable name="next" select="key('genid', ($nextdiv/@id|$nextdiv/@xml:id)[1])"/>
62
+
63
+ <xsl:choose>
64
+ <xsl:when test="$onechunk != 0 and parent::*">
65
+ <xsl:copy-of select="$content"/>
66
+ </xsl:when>
67
+ <xsl:otherwise>
68
+ <xsl:call-template name="process-chunk">
69
+ <xsl:with-param name="prev" select="$prev"/>
70
+ <xsl:with-param name="next" select="$next"/>
71
+ <xsl:with-param name="content" select="$content"/>
72
+ </xsl:call-template>
73
+ </xsl:otherwise>
74
+ </xsl:choose>
75
+ </xsl:when>
76
+ <xsl:otherwise>
77
+ <xsl:choose>
78
+ <xsl:when test="$onechunk != 0 and not(parent::*)">
79
+ <xsl:call-template name="chunk-all-sections">
80
+ <xsl:with-param name="content" select="$content"/>
81
+ </xsl:call-template>
82
+ </xsl:when>
83
+ <xsl:when test="$onechunk != 0">
84
+ <xsl:copy-of select="$content"/>
85
+ </xsl:when>
86
+ <xsl:when test="$chunk.first.sections = 0">
87
+ <xsl:call-template name="chunk-first-section-with-parent">
88
+ <xsl:with-param name="content" select="$content"/>
89
+ </xsl:call-template>
90
+ </xsl:when>
91
+ <xsl:otherwise>
92
+ <xsl:call-template name="chunk-all-sections">
93
+ <xsl:with-param name="content" select="$content"/>
94
+ </xsl:call-template>
95
+ </xsl:otherwise>
96
+ </xsl:choose>
97
+ </xsl:otherwise>
98
+ </xsl:choose>
99
+ </xsl:template>
100
+
101
+ <xsl:template name="process-chunk">
102
+ <xsl:param name="prev" select="."/>
103
+ <xsl:param name="next" select="."/>
104
+ <xsl:param name="content">
105
+ <xsl:apply-imports/>
106
+ </xsl:param>
107
+
108
+ <xsl:variable name="ischunk">
109
+ <xsl:call-template name="chunk"/>
110
+ </xsl:variable>
111
+
112
+ <xsl:variable name="chunkfn">
113
+ <xsl:if test="$ischunk='1'">
114
+ <xsl:apply-templates mode="chunk-filename" select="."/>
115
+ </xsl:if>
116
+ </xsl:variable>
117
+
118
+ <xsl:if test="$ischunk='0'">
119
+ <xsl:message>
120
+ <xsl:text>Error </xsl:text>
121
+ <xsl:value-of select="name(.)"/>
122
+ <xsl:text> is not a chunk!</xsl:text>
123
+ </xsl:message>
124
+ </xsl:if>
125
+
126
+ <xsl:variable name="filename">
127
+ <xsl:call-template name="make-relative-filename">
128
+ <xsl:with-param name="base.dir" select="$base.dir"/>
129
+ <xsl:with-param name="base.name" select="$chunkfn"/>
130
+ </xsl:call-template>
131
+ </xsl:variable>
132
+
133
+ <xsl:call-template name="write.chunk">
134
+ <xsl:with-param name="filename" select="$filename"/>
135
+ <xsl:with-param name="content">
136
+ <xsl:call-template name="chunk-element-content">
137
+ <xsl:with-param name="prev" select="$prev"/>
138
+ <xsl:with-param name="next" select="$next"/>
139
+ <xsl:with-param name="content" select="$content"/>
140
+ </xsl:call-template>
141
+ </xsl:with-param>
142
+ <xsl:with-param name="quiet" select="$chunk.quietly"/>
143
+ </xsl:call-template>
144
+ </xsl:template>
145
+
146
+ <xsl:template name="chunk-first-section-with-parent">
147
+ <xsl:param name="content">
148
+ <xsl:apply-imports/>
149
+ </xsl:param>
150
+
151
+ <!-- These xpath expressions are really hairy. The trick is to pick sections -->
152
+ <!-- that are not first children and are not the children of first children -->
153
+
154
+ <!-- Break these variables into pieces to work around
155
+ http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6063 -->
156
+
157
+ <xsl:variable name="prev-v1" select="(ancestor::sect1[$chunk.section.depth &gt; 0 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect1][1] |ancestor::sect2[$chunk.section.depth &gt; 1 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect2 and parent::sect1[preceding-sibling::sect1]][1] |ancestor::sect3[$chunk.section.depth &gt; 2 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect3 and parent::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |ancestor::sect4[$chunk.section.depth &gt; 3 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect4 and parent::sect3[preceding-sibling::sect3] and ancestor::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |ancestor::sect5[$chunk.section.depth &gt; 4 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect5 and parent::sect4[preceding-sibling::sect4] and ancestor::sect3[preceding-sibling::sect3] and ancestor::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |ancestor::section[$chunk.section.depth &gt; count(ancestor::section) and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and not(ancestor::section[not(preceding-sibling::section)])][1])[last()]"/>
158
+
159
+ <xsl:variable name="prev-v2" select="(preceding::sect1[$chunk.section.depth &gt; 0 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect1][1] |preceding::sect2[$chunk.section.depth &gt; 1 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect2 and parent::sect1[preceding-sibling::sect1]][1] |preceding::sect3[$chunk.section.depth &gt; 2 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect3 and parent::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |preceding::sect4[$chunk.section.depth &gt; 3 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect4 and parent::sect3[preceding-sibling::sect3] and ancestor::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |preceding::sect5[$chunk.section.depth &gt; 4 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect5 and parent::sect4[preceding-sibling::sect4] and ancestor::sect3[preceding-sibling::sect3] and ancestor::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |preceding::section[$chunk.section.depth &gt; count(ancestor::section) and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::section and not(ancestor::section[not(preceding-sibling::section)])][1])[last()]"/>
160
+
161
+ <xsl:variable name="prev" select="(preceding::book[1] |preceding::preface[1] |preceding::chapter[1] |preceding::appendix[1] |preceding::part[1] |preceding::reference[1] |preceding::refentry[1] |preceding::colophon[1] |preceding::article[1] |preceding::bibliography[parent::article or parent::book or parent::part][1] |preceding::glossary[parent::article or parent::book or parent::part][1] |preceding::index[$generate.index != 0] [parent::article or parent::book or parent::part][1] |preceding::setindex[$generate.index != 0][1] |ancestor::set |ancestor::book[1] |ancestor::preface[1] |ancestor::chapter[1] |ancestor::appendix[1] |ancestor::part[1] |ancestor::reference[1] |ancestor::article[1] |$prev-v1 |$prev-v2)[last()]"/>
162
+
163
+ <xsl:variable name="next-v1" select="(following::sect1[$chunk.section.depth &gt; 0 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect1][1] |following::sect2[$chunk.section.depth &gt; 1 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect2 and parent::sect1[preceding-sibling::sect1]][1] |following::sect3[$chunk.section.depth &gt; 2 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect3 and parent::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |following::sect4[$chunk.section.depth &gt; 3 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect4 and parent::sect3[preceding-sibling::sect3] and ancestor::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |following::sect5[$chunk.section.depth &gt; 4 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect5 and parent::sect4[preceding-sibling::sect4] and ancestor::sect3[preceding-sibling::sect3] and ancestor::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |following::section[$chunk.section.depth &gt; count(ancestor::section) and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::section and not(ancestor::section[not(preceding-sibling::section)])][1])[1]"/>
164
+
165
+ <xsl:variable name="next-v2" select="(descendant::sect1[$chunk.section.depth &gt; 0 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect1][1] |descendant::sect2[$chunk.section.depth &gt; 1 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect2 and parent::sect1[preceding-sibling::sect1]][1] |descendant::sect3[$chunk.section.depth &gt; 2 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect3 and parent::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |descendant::sect4[$chunk.section.depth &gt; 3 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect4 and parent::sect3[preceding-sibling::sect3] and ancestor::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |descendant::sect5[$chunk.section.depth &gt; 4 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::sect5 and parent::sect4[preceding-sibling::sect4] and ancestor::sect3[preceding-sibling::sect3] and ancestor::sect2[preceding-sibling::sect2] and ancestor::sect1[preceding-sibling::sect1]][1] |descendant::section[$chunk.section.depth &gt; count(ancestor::section) and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking']) and preceding-sibling::section and not(ancestor::section[not(preceding-sibling::section)])])[1]"/>
166
+
167
+ <xsl:variable name="next" select="(following::book[1] |following::preface[1] |following::chapter[1] |following::appendix[1] |following::part[1] |following::reference[1] |following::refentry[1] |following::colophon[1] |following::bibliography[parent::article or parent::book or parent::part][1] |following::glossary[parent::article or parent::book or parent::part][1] |following::index[$generate.index != 0] [parent::article or parent::book or parent::part][1] |following::article[1] |following::setindex[$generate.index != 0][1] |descendant::book[1] |descendant::preface[1] |descendant::chapter[1] |descendant::appendix[1] |descendant::article[1] |descendant::bibliography[parent::article or parent::book or parent::part][1] |descendant::glossary[parent::article or parent::book or parent::part][1] |descendant::index[$generate.index != 0] [parent::article or parent::book or parent::part][1] |descendant::colophon[1] |descendant::setindex[$generate.index != 0][1] |descendant::part[1] |descendant::reference[1] |descendant::refentry[1] |$next-v1 |$next-v2)[1]"/>
168
+
169
+ <xsl:call-template name="process-chunk">
170
+ <xsl:with-param name="prev" select="$prev"/>
171
+ <xsl:with-param name="next" select="$next"/>
172
+ <xsl:with-param name="content" select="$content"/>
173
+ </xsl:call-template>
174
+ </xsl:template>
175
+
176
+ <xsl:template name="chunk-all-sections">
177
+ <xsl:param name="content">
178
+ <xsl:apply-imports/>
179
+ </xsl:param>
180
+
181
+ <xsl:variable name="prev-v1" select="(preceding::sect1[$chunk.section.depth &gt; 0 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |preceding::sect2[$chunk.section.depth &gt; 1 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |preceding::sect3[$chunk.section.depth &gt; 2 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |preceding::sect4[$chunk.section.depth &gt; 3 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |preceding::sect5[$chunk.section.depth &gt; 4 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |preceding::section[$chunk.section.depth &gt; count(ancestor::section) and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1])[last()]"/>
182
+
183
+ <xsl:variable name="prev-v2" select="(ancestor::sect1[$chunk.section.depth &gt; 0 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |ancestor::sect2[$chunk.section.depth &gt; 1 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |ancestor::sect3[$chunk.section.depth &gt; 2 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |ancestor::sect4[$chunk.section.depth &gt; 3 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |ancestor::sect5[$chunk.section.depth &gt; 4 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |ancestor::section[$chunk.section.depth &gt; count(ancestor::section) and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1])[last()]"/>
184
+
185
+ <xsl:variable name="prev" select="(preceding::book[1] |preceding::preface[1] |preceding::chapter[1] |preceding::appendix[1] |preceding::part[1] |preceding::reference[1] |preceding::refentry[1] |preceding::colophon[1] |preceding::article[1] |preceding::bibliography[parent::article or parent::book or parent::part][1] |preceding::glossary[parent::article or parent::book or parent::part][1] |preceding::index[$generate.index != 0] [parent::article or parent::book or parent::part][1] |preceding::setindex[$generate.index != 0][1] |ancestor::set |ancestor::book[1] |ancestor::preface[1] |ancestor::chapter[1] |ancestor::appendix[1] |ancestor::part[1] |ancestor::reference[1] |ancestor::article[1] |$prev-v1 |$prev-v2)[last()]"/>
186
+
187
+ <xsl:variable name="next-v1" select="(following::sect1[$chunk.section.depth &gt; 0 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |following::sect2[$chunk.section.depth &gt; 1 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |following::sect3[$chunk.section.depth &gt; 2 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |following::sect4[$chunk.section.depth &gt; 3 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |following::sect5[$chunk.section.depth &gt; 4 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |following::section[$chunk.section.depth &gt; count(ancestor::section) and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1])[1]"/>
188
+
189
+ <xsl:variable name="next-v2" select="(descendant::sect1[$chunk.section.depth &gt; 0 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |descendant::sect2[$chunk.section.depth &gt; 1 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |descendant::sect3[$chunk.section.depth &gt; 2 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |descendant::sect4[$chunk.section.depth &gt; 3 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |descendant::sect5[$chunk.section.depth &gt; 4 and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1] |descendant::section[$chunk.section.depth &gt; count(ancestor::section) and not(ancestor::*/processing-instruction('dbhtml')[normalize-space(.) ='stop-chunking'])][1])[1]"/>
190
+
191
+ <xsl:variable name="next" select="(following::book[1] |following::preface[1] |following::chapter[1] |following::appendix[1] |following::part[1] |following::reference[1] |following::refentry[1] |following::colophon[1] |following::bibliography[parent::article or parent::book or parent::part][1] |following::glossary[parent::article or parent::book or parent::part][1] |following::index[$generate.index != 0] [parent::article or parent::book][1] |following::article[1] |following::setindex[$generate.index != 0][1] |descendant::book[1] |descendant::preface[1] |descendant::chapter[1] |descendant::appendix[1] |descendant::article[1] |descendant::bibliography[parent::article or parent::book][1] |descendant::glossary[parent::article or parent::book or parent::part][1] |descendant::index[$generate.index != 0] [parent::article or parent::book][1] |descendant::colophon[1] |descendant::setindex[$generate.index != 0][1] |descendant::part[1] |descendant::reference[1] |descendant::refentry[1] |$next-v1 |$next-v2)[1]"/>
192
+
193
+ <xsl:call-template name="process-chunk">
194
+ <xsl:with-param name="prev" select="$prev"/>
195
+ <xsl:with-param name="next" select="$next"/>
196
+ <xsl:with-param name="content" select="$content"/>
197
+ </xsl:call-template>
198
+ </xsl:template>
199
+
200
+ <!-- ==================================================================== -->
201
+
202
+ <!-- ==================================================================== -->
203
+
204
+ <xsl:template name="make.lots">
205
+ <xsl:param name="toc.params" select="''"/>
206
+ <xsl:param name="toc"/>
207
+
208
+ <xsl:variable name="lots">
209
+ <xsl:if test="contains($toc.params, 'toc')">
210
+ <xsl:copy-of select="$toc"/>
211
+ </xsl:if>
212
+
213
+ <xsl:if test="contains($toc.params, 'figure')">
214
+ <xsl:choose>
215
+ <xsl:when test="$chunk.separate.lots != '0'">
216
+ <xsl:call-template name="make.lot.chunk">
217
+ <xsl:with-param name="type" select="'figure'"/>
218
+ <xsl:with-param name="lot">
219
+ <xsl:call-template name="list.of.titles">
220
+ <xsl:with-param name="titles" select="'figure'"/>
221
+ <xsl:with-param name="nodes" select=".//figure"/>
222
+ </xsl:call-template>
223
+ </xsl:with-param>
224
+ </xsl:call-template>
225
+ </xsl:when>
226
+ <xsl:otherwise>
227
+ <xsl:call-template name="list.of.titles">
228
+ <xsl:with-param name="titles" select="'figure'"/>
229
+ <xsl:with-param name="nodes" select=".//figure"/>
230
+ </xsl:call-template>
231
+ </xsl:otherwise>
232
+ </xsl:choose>
233
+ </xsl:if>
234
+
235
+ <xsl:if test="contains($toc.params, 'table')">
236
+ <xsl:choose>
237
+ <xsl:when test="$chunk.separate.lots != '0'">
238
+ <xsl:call-template name="make.lot.chunk">
239
+ <xsl:with-param name="type" select="'table'"/>
240
+ <xsl:with-param name="lot">
241
+ <xsl:call-template name="list.of.titles">
242
+ <xsl:with-param name="titles" select="'table'"/>
243
+ <xsl:with-param name="nodes" select=".//table"/>
244
+ </xsl:call-template>
245
+ </xsl:with-param>
246
+ </xsl:call-template>
247
+ </xsl:when>
248
+ <xsl:otherwise>
249
+ <xsl:call-template name="list.of.titles">
250
+ <xsl:with-param name="titles" select="'table'"/>
251
+ <xsl:with-param name="nodes" select=".//table"/>
252
+ </xsl:call-template>
253
+ </xsl:otherwise>
254
+ </xsl:choose>
255
+ </xsl:if>
256
+
257
+ <xsl:if test="contains($toc.params, 'example')">
258
+ <xsl:choose>
259
+ <xsl:when test="$chunk.separate.lots != '0'">
260
+ <xsl:call-template name="make.lot.chunk">
261
+ <xsl:with-param name="type" select="'example'"/>
262
+ <xsl:with-param name="lot">
263
+ <xsl:call-template name="list.of.titles">
264
+ <xsl:with-param name="titles" select="'example'"/>
265
+ <xsl:with-param name="nodes" select=".//example"/>
266
+ </xsl:call-template>
267
+ </xsl:with-param>
268
+ </xsl:call-template>
269
+ </xsl:when>
270
+ <xsl:otherwise>
271
+ <xsl:call-template name="list.of.titles">
272
+ <xsl:with-param name="titles" select="'example'"/>
273
+ <xsl:with-param name="nodes" select=".//example"/>
274
+ </xsl:call-template>
275
+ </xsl:otherwise>
276
+ </xsl:choose>
277
+ </xsl:if>
278
+
279
+ <xsl:if test="contains($toc.params, 'equation')">
280
+ <xsl:choose>
281
+ <xsl:when test="$chunk.separate.lots != '0'">
282
+ <xsl:call-template name="make.lot.chunk">
283
+ <xsl:with-param name="type" select="'equation'"/>
284
+ <xsl:with-param name="lot">
285
+ <xsl:call-template name="list.of.titles">
286
+ <xsl:with-param name="titles" select="'equation'"/>
287
+ <xsl:with-param name="nodes" select=".//equation"/>
288
+ </xsl:call-template>
289
+ </xsl:with-param>
290
+ </xsl:call-template>
291
+ </xsl:when>
292
+ <xsl:otherwise>
293
+ <xsl:call-template name="list.of.titles">
294
+ <xsl:with-param name="titles" select="'equation'"/>
295
+ <xsl:with-param name="nodes" select=".//equation"/>
296
+ </xsl:call-template>
297
+ </xsl:otherwise>
298
+ </xsl:choose>
299
+ </xsl:if>
300
+
301
+ <xsl:if test="contains($toc.params, 'procedure')">
302
+ <xsl:choose>
303
+ <xsl:when test="$chunk.separate.lots != '0'">
304
+ <xsl:call-template name="make.lot.chunk">
305
+ <xsl:with-param name="type" select="'procedure'"/>
306
+ <xsl:with-param name="lot">
307
+ <xsl:call-template name="list.of.titles">
308
+ <xsl:with-param name="titles" select="'procedure'"/>
309
+ <xsl:with-param name="nodes" select=".//procedure[title]"/>
310
+ </xsl:call-template>
311
+ </xsl:with-param>
312
+ </xsl:call-template>
313
+ </xsl:when>
314
+ <xsl:otherwise>
315
+ <xsl:call-template name="list.of.titles">
316
+ <xsl:with-param name="titles" select="'procedure'"/>
317
+ <xsl:with-param name="nodes" select=".//procedure[title]"/>
318
+ </xsl:call-template>
319
+ </xsl:otherwise>
320
+ </xsl:choose>
321
+ </xsl:if>
322
+ </xsl:variable>
323
+
324
+ <xsl:if test="string($lots) != ''">
325
+ <xsl:choose>
326
+ <xsl:when test="$chunk.tocs.and.lots != 0 and not(parent::*)">
327
+ <xsl:call-template name="write.chunk">
328
+ <xsl:with-param name="filename">
329
+ <xsl:call-template name="make-relative-filename">
330
+ <xsl:with-param name="base.dir" select="$base.dir"/>
331
+ <xsl:with-param name="base.name">
332
+ <xsl:call-template name="dbhtml-dir"/>
333
+ <xsl:apply-templates select="." mode="recursive-chunk-filename">
334
+ <xsl:with-param name="recursive" select="true()"/>
335
+ </xsl:apply-templates>
336
+ <xsl:text>-toc</xsl:text>
337
+ <xsl:value-of select="$html.ext"/>
338
+ </xsl:with-param>
339
+ </xsl:call-template>
340
+ </xsl:with-param>
341
+ <xsl:with-param name="content">
342
+ <xsl:call-template name="chunk-element-content">
343
+ <xsl:with-param name="prev" select="/foo"/>
344
+ <xsl:with-param name="next" select="/foo"/>
345
+ <xsl:with-param name="nav.context" select="'toc'"/>
346
+ <xsl:with-param name="content">
347
+ <xsl:if test="$chunk.tocs.and.lots.has.title != 0">
348
+ <h1>
349
+ <xsl:apply-templates select="." mode="object.title.markup"/>
350
+ </h1>
351
+ </xsl:if>
352
+ <xsl:copy-of select="$lots"/>
353
+ </xsl:with-param>
354
+ </xsl:call-template>
355
+ </xsl:with-param>
356
+ <xsl:with-param name="quiet" select="$chunk.quietly"/>
357
+ </xsl:call-template>
358
+ </xsl:when>
359
+ <xsl:otherwise>
360
+ <xsl:copy-of select="$lots"/>
361
+ </xsl:otherwise>
362
+ </xsl:choose>
363
+ </xsl:if>
364
+ </xsl:template>
365
+
366
+ <xsl:template name="make.lot.chunk">
367
+ <xsl:param name="type" select="''"/>
368
+ <xsl:param name="lot"/>
369
+
370
+ <xsl:if test="string($lot) != ''">
371
+ <xsl:variable name="filename">
372
+ <xsl:call-template name="make-relative-filename">
373
+ <xsl:with-param name="base.dir" select="$base.dir"/>
374
+ <xsl:with-param name="base.name">
375
+ <xsl:call-template name="dbhtml-dir"/>
376
+ <xsl:value-of select="$type"/>
377
+ <xsl:text>-toc</xsl:text>
378
+ <xsl:value-of select="$html.ext"/>
379
+ </xsl:with-param>
380
+ </xsl:call-template>
381
+ </xsl:variable>
382
+
383
+ <xsl:variable name="href">
384
+ <xsl:call-template name="make-relative-filename">
385
+ <xsl:with-param name="base.name">
386
+ <xsl:call-template name="dbhtml-dir"/>
387
+ <xsl:value-of select="$type"/>
388
+ <xsl:text>-toc</xsl:text>
389
+ <xsl:value-of select="$html.ext"/>
390
+ </xsl:with-param>
391
+ </xsl:call-template>
392
+ </xsl:variable>
393
+
394
+ <xsl:call-template name="write.chunk">
395
+ <xsl:with-param name="filename" select="$filename"/>
396
+ <xsl:with-param name="content">
397
+ <xsl:call-template name="chunk-element-content">
398
+ <xsl:with-param name="prev" select="/foo"/>
399
+ <xsl:with-param name="next" select="/foo"/>
400
+ <xsl:with-param name="nav.context" select="'toc'"/>
401
+ <xsl:with-param name="content">
402
+ <xsl:copy-of select="$lot"/>
403
+ </xsl:with-param>
404
+ </xsl:call-template>
405
+ </xsl:with-param>
406
+ <xsl:with-param name="quiet" select="$chunk.quietly"/>
407
+ </xsl:call-template>
408
+ <!-- And output a link to this file -->
409
+ <div>
410
+ <xsl:attribute name="class">
411
+ <xsl:text>ListofTitles</xsl:text>
412
+ </xsl:attribute>
413
+ <a href="{$href}">
414
+ <xsl:call-template name="gentext">
415
+ <xsl:with-param name="key">
416
+ <xsl:choose>
417
+ <xsl:when test="$type='table'">ListofTables</xsl:when>
418
+ <xsl:when test="$type='figure'">ListofFigures</xsl:when>
419
+ <xsl:when test="$type='equation'">ListofEquations</xsl:when>
420
+ <xsl:when test="$type='example'">ListofExamples</xsl:when>
421
+ <xsl:when test="$type='procedure'">ListofProcedures</xsl:when>
422
+ <xsl:otherwise>ListofUnknown</xsl:otherwise>
423
+ </xsl:choose>
424
+ </xsl:with-param>
425
+ </xsl:call-template>
426
+ </a>
427
+ </div>
428
+ </xsl:if>
429
+ </xsl:template>
430
+
431
+ <!-- ==================================================================== -->
432
+
433
+ <xsl:template name="in.other.chunk">
434
+ <xsl:param name="chunk" select="."/>
435
+ <xsl:param name="node" select="."/>
436
+
437
+ <xsl:variable name="is.chunk">
438
+ <xsl:call-template name="chunk">
439
+ <xsl:with-param name="node" select="$node"/>
440
+ </xsl:call-template>
441
+ </xsl:variable>
442
+
443
+ <!--
444
+ <xsl:message>
445
+ <xsl:text>in.other.chunk: </xsl:text>
446
+ <xsl:value-of select="name($chunk)"/>
447
+ <xsl:text> </xsl:text>
448
+ <xsl:value-of select="name($node)"/>
449
+ <xsl:text> </xsl:text>
450
+ <xsl:value-of select="$chunk = $node"/>
451
+ <xsl:text> </xsl:text>
452
+ <xsl:value-of select="$is.chunk"/>
453
+ </xsl:message>
454
+ -->
455
+
456
+ <xsl:choose>
457
+ <xsl:when test="$chunk = $node">0</xsl:when>
458
+ <xsl:when test="$is.chunk = 1">1</xsl:when>
459
+ <xsl:when test="count($node) = 0">0</xsl:when>
460
+ <xsl:otherwise>
461
+ <xsl:call-template name="in.other.chunk">
462
+ <xsl:with-param name="chunk" select="$chunk"/>
463
+ <xsl:with-param name="node" select="$node/parent::*"/>
464
+ </xsl:call-template>
465
+ </xsl:otherwise>
466
+ </xsl:choose>
467
+ </xsl:template>
468
+
469
+ <xsl:template name="count.footnotes.in.this.chunk">
470
+ <xsl:param name="node" select="."/>
471
+ <xsl:param name="footnotes" select="$node//footnote"/>
472
+ <xsl:param name="count" select="0"/>
473
+
474
+ <!--
475
+ <xsl:message>
476
+ <xsl:text>count.footnotes.in.this.chunk: </xsl:text>
477
+ <xsl:value-of select="name($node)"/>
478
+ </xsl:message>
479
+ -->
480
+
481
+ <xsl:variable name="in.other.chunk">
482
+ <xsl:call-template name="in.other.chunk">
483
+ <xsl:with-param name="chunk" select="$node"/>
484
+ <xsl:with-param name="node" select="$footnotes[1]"/>
485
+ </xsl:call-template>
486
+ </xsl:variable>
487
+
488
+ <xsl:choose>
489
+ <xsl:when test="count($footnotes) = 0">
490
+ <xsl:value-of select="$count"/>
491
+ </xsl:when>
492
+ <xsl:otherwise>
493
+ <xsl:choose>
494
+ <xsl:when test="$in.other.chunk != 0">
495
+ <xsl:call-template name="count.footnotes.in.this.chunk">
496
+ <xsl:with-param name="node" select="$node"/>
497
+ <xsl:with-param name="footnotes" select="$footnotes[position() &gt; 1]"/>
498
+ <xsl:with-param name="count" select="$count"/>
499
+ </xsl:call-template>
500
+ </xsl:when>
501
+ <xsl:when test="$footnotes[1]/ancestor::table |$footnotes[1]/ancestor::informaltable">
502
+ <xsl:call-template name="count.footnotes.in.this.chunk">
503
+ <xsl:with-param name="node" select="$node"/>
504
+ <xsl:with-param name="footnotes" select="$footnotes[position() &gt; 1]"/>
505
+ <xsl:with-param name="count" select="$count"/>
506
+ </xsl:call-template>
507
+ </xsl:when>
508
+ <xsl:otherwise>
509
+ <xsl:call-template name="count.footnotes.in.this.chunk">
510
+ <xsl:with-param name="node" select="$node"/>
511
+ <xsl:with-param name="footnotes" select="$footnotes[position() &gt; 1]"/>
512
+ <xsl:with-param name="count" select="$count + 1"/>
513
+ </xsl:call-template>
514
+ </xsl:otherwise>
515
+ </xsl:choose>
516
+ </xsl:otherwise>
517
+ </xsl:choose>
518
+ </xsl:template>
519
+
520
+ <xsl:template name="process.footnotes.in.this.chunk">
521
+ <xsl:param name="node" select="."/>
522
+ <xsl:param name="footnotes" select="$node//footnote"/>
523
+
524
+ <!--
525
+ <xsl:message>process.footnotes.in.this.chunk</xsl:message>
526
+ -->
527
+
528
+ <xsl:variable name="in.other.chunk">
529
+ <xsl:call-template name="in.other.chunk">
530
+ <xsl:with-param name="chunk" select="$node"/>
531
+ <xsl:with-param name="node" select="$footnotes[1]"/>
532
+ </xsl:call-template>
533
+ </xsl:variable>
534
+
535
+ <xsl:choose>
536
+ <xsl:when test="count($footnotes) = 0">
537
+ <!-- nop -->
538
+ </xsl:when>
539
+ <xsl:otherwise>
540
+ <xsl:choose>
541
+ <xsl:when test="$in.other.chunk != 0">
542
+ <xsl:call-template name="process.footnotes.in.this.chunk">
543
+ <xsl:with-param name="node" select="$node"/>
544
+ <xsl:with-param name="footnotes" select="$footnotes[position() &gt; 1]"/>
545
+ </xsl:call-template>
546
+ </xsl:when>
547
+ <xsl:when test="$footnotes[1]/ancestor::table |$footnotes[1]/ancestor::informaltable">
548
+ <xsl:call-template name="process.footnotes.in.this.chunk">
549
+ <xsl:with-param name="node" select="$node"/>
550
+ <xsl:with-param name="footnotes" select="$footnotes[position() &gt; 1]"/>
551
+ </xsl:call-template>
552
+ </xsl:when>
553
+ <xsl:otherwise>
554
+ <xsl:apply-templates select="$footnotes[1]" mode="process.footnote.mode"/>
555
+ <xsl:call-template name="process.footnotes.in.this.chunk">
556
+ <xsl:with-param name="node" select="$node"/>
557
+ <xsl:with-param name="footnotes" select="$footnotes[position() &gt; 1]"/>
558
+ </xsl:call-template>
559
+ </xsl:otherwise>
560
+ </xsl:choose>
561
+ </xsl:otherwise>
562
+ </xsl:choose>
563
+ </xsl:template>
564
+
565
+ <xsl:template name="process.footnotes">
566
+ <xsl:variable name="footnotes" select=".//footnote"/>
567
+ <xsl:variable name="fcount">
568
+ <xsl:call-template name="count.footnotes.in.this.chunk">
569
+ <xsl:with-param name="node" select="."/>
570
+ <xsl:with-param name="footnotes" select="$footnotes"/>
571
+ </xsl:call-template>
572
+ </xsl:variable>
573
+
574
+ <!--
575
+ <xsl:message>
576
+ <xsl:value-of select="name(.)"/>
577
+ <xsl:text> fcount: </xsl:text>
578
+ <xsl:value-of select="$fcount"/>
579
+ </xsl:message>
580
+ -->
581
+
582
+ <!-- Only bother to do this if there's at least one non-table footnote -->
583
+ <xsl:if test="$fcount &gt; 0">
584
+ <div class="footnotes">
585
+ <br/>
586
+ <hr width="100" align="{$direction.align.start}"/>
587
+ <xsl:call-template name="process.footnotes.in.this.chunk">
588
+ <xsl:with-param name="node" select="."/>
589
+ <xsl:with-param name="footnotes" select="$footnotes"/>
590
+ </xsl:call-template>
591
+ </div>
592
+ </xsl:if>
593
+
594
+ <!-- FIXME: When chunking, only the annotations actually used
595
+ in this chunk should be referenced. I don't think it
596
+ does any harm to reference them all, but it adds
597
+ unnecessary bloat to each chunk. -->
598
+ <xsl:if test="$annotation.support != 0 and //annotation">
599
+ <div class="annotation-list">
600
+ <div class="annotation-nocss">
601
+ <p>The following annotations are from this essay. You are seeing
602
+ them here because your browser doesn&#8217;t support the user-interface
603
+ techniques used to make them appear as &#8216;popups&#8217; on modern browsers.</p>
604
+ </div>
605
+
606
+ <xsl:apply-templates select="//annotation" mode="annotation-popup"/>
607
+ </div>
608
+ </xsl:if>
609
+ </xsl:template>
610
+
611
+ <xsl:template name="process.chunk.footnotes">
612
+ <xsl:variable name="is.chunk">
613
+ <xsl:call-template name="chunk"/>
614
+ </xsl:variable>
615
+ <xsl:if test="$is.chunk = 1">
616
+ <xsl:call-template name="process.footnotes"/>
617
+ </xsl:if>
618
+ </xsl:template>
619
+
620
+ <!-- ====================================================================== -->
621
+
622
+ <xsl:template name="chunk">
623
+ <xsl:param name="node" select="."/>
624
+ <!-- returns 1 if $node is a chunk -->
625
+
626
+ <!-- ==================================================================== -->
627
+ <!-- What's a chunk?
628
+
629
+ The root element
630
+ appendix
631
+ article
632
+ bibliography in article or part or book
633
+ book
634
+ chapter
635
+ colophon
636
+ glossary in article or part or book
637
+ index in article or part or book
638
+ part
639
+ preface
640
+ refentry
641
+ reference
642
+ sect{1,2,3,4,5} if position()>1 && depth < chunk.section.depth
643
+ section if position()>1 && depth < chunk.section.depth
644
+ set
645
+ setindex
646
+ -->
647
+ <!-- ==================================================================== -->
648
+
649
+ <!--
650
+ <xsl:message>
651
+ <xsl:text>chunk: </xsl:text>
652
+ <xsl:value-of select="name($node)"/>
653
+ <xsl:text>(</xsl:text>
654
+ <xsl:value-of select="$node/@id"/>
655
+ <xsl:text>)</xsl:text>
656
+ <xsl:text> csd: </xsl:text>
657
+ <xsl:value-of select="$chunk.section.depth"/>
658
+ <xsl:text> cfs: </xsl:text>
659
+ <xsl:value-of select="$chunk.first.sections"/>
660
+ <xsl:text> ps: </xsl:text>
661
+ <xsl:value-of select="count($node/parent::section)"/>
662
+ <xsl:text> prs: </xsl:text>
663
+ <xsl:value-of select="count($node/preceding-sibling::section)"/>
664
+ </xsl:message>
665
+ -->
666
+
667
+ <xsl:choose>
668
+ <xsl:when test="$node/parent::*/processing-instruction('dbhtml')[normalize-space(.) = 'stop-chunking']">0</xsl:when>
669
+ <xsl:when test="not($node/parent::*)">1</xsl:when>
670
+
671
+ <xsl:when test="local-name($node) = 'sect1' and $chunk.section.depth &gt;= 1 and ($chunk.first.sections != 0 or count($node/preceding-sibling::sect1) &gt; 0)">
672
+ <xsl:text>1</xsl:text>
673
+ </xsl:when>
674
+ <xsl:when test="local-name($node) = 'sect2' and $chunk.section.depth &gt;= 2 and ($chunk.first.sections != 0 or count($node/preceding-sibling::sect2) &gt; 0)">
675
+ <xsl:call-template name="chunk">
676
+ <xsl:with-param name="node" select="$node/parent::*"/>
677
+ </xsl:call-template>
678
+ </xsl:when>
679
+ <xsl:when test="local-name($node) = 'sect3' and $chunk.section.depth &gt;= 3 and ($chunk.first.sections != 0 or count($node/preceding-sibling::sect3) &gt; 0)">
680
+ <xsl:call-template name="chunk">
681
+ <xsl:with-param name="node" select="$node/parent::*"/>
682
+ </xsl:call-template>
683
+ </xsl:when>
684
+ <xsl:when test="local-name($node) = 'sect4' and $chunk.section.depth &gt;= 4 and ($chunk.first.sections != 0 or count($node/preceding-sibling::sect4) &gt; 0)">
685
+ <xsl:call-template name="chunk">
686
+ <xsl:with-param name="node" select="$node/parent::*"/>
687
+ </xsl:call-template>
688
+ </xsl:when>
689
+ <xsl:when test="local-name($node) = 'sect5' and $chunk.section.depth &gt;= 5 and ($chunk.first.sections != 0 or count($node/preceding-sibling::sect5) &gt; 0)">
690
+ <xsl:call-template name="chunk">
691
+ <xsl:with-param name="node" select="$node/parent::*"/>
692
+ </xsl:call-template>
693
+ </xsl:when>
694
+ <xsl:when test="local-name($node) = 'section' and $chunk.section.depth &gt;= count($node/ancestor::section)+1 and ($chunk.first.sections != 0 or count($node/preceding-sibling::section) &gt; 0)">
695
+ <xsl:call-template name="chunk">
696
+ <xsl:with-param name="node" select="$node/parent::*"/>
697
+ </xsl:call-template>
698
+ </xsl:when>
699
+
700
+ <xsl:when test="local-name($node)='preface'">1</xsl:when>
701
+ <xsl:when test="local-name($node)='chapter'">1</xsl:when>
702
+ <xsl:when test="local-name($node)='appendix'">1</xsl:when>
703
+ <xsl:when test="local-name($node)='article'">1</xsl:when>
704
+ <xsl:when test="local-name($node)='part'">1</xsl:when>
705
+ <xsl:when test="local-name($node)='reference'">1</xsl:when>
706
+ <xsl:when test="local-name($node)='refentry'">1</xsl:when>
707
+ <xsl:when test="local-name($node)='index' and ($generate.index != 0 or count($node/*) &gt; 0) and (local-name($node/parent::*) = 'article' or local-name($node/parent::*) = 'book' or local-name($node/parent::*) = 'part' )">1</xsl:when>
708
+ <xsl:when test="local-name($node)='bibliography' and (local-name($node/parent::*) = 'article' or local-name($node/parent::*) = 'book' or local-name($node/parent::*) = 'part' )">1</xsl:when>
709
+ <xsl:when test="local-name($node)='glossary' and (local-name($node/parent::*) = 'article' or local-name($node/parent::*) = 'book' or local-name($node/parent::*) = 'part' )">1</xsl:when>
710
+ <xsl:when test="local-name($node)='colophon'">1</xsl:when>
711
+ <xsl:when test="local-name($node)='book'">1</xsl:when>
712
+ <xsl:when test="local-name($node)='set'">1</xsl:when>
713
+ <xsl:when test="local-name($node)='setindex'">1</xsl:when>
714
+ <xsl:when test="local-name($node)='legalnotice' and $generate.legalnotice.link != 0">1</xsl:when>
715
+ <xsl:otherwise>0</xsl:otherwise>
716
+ </xsl:choose>
717
+ </xsl:template>
718
+
719
+ <!-- ==================================================================== -->
720
+ <xsl:template name="href.target.uri">
721
+ <xsl:param name="object" select="."/>
722
+ <xsl:variable name="ischunk">
723
+ <xsl:call-template name="chunk">
724
+ <xsl:with-param name="node" select="$object"/>
725
+ </xsl:call-template>
726
+ </xsl:variable>
727
+
728
+ <xsl:apply-templates mode="chunk-filename" select="$object"/>
729
+
730
+ <xsl:if test="$ischunk='0'">
731
+ <xsl:text>#</xsl:text>
732
+ <xsl:call-template name="object.id">
733
+ <xsl:with-param name="object" select="$object"/>
734
+ </xsl:call-template>
735
+ </xsl:if>
736
+ </xsl:template>
737
+
738
+ <xsl:template name="href.target">
739
+ <xsl:param name="context" select="."/>
740
+ <xsl:param name="object" select="."/>
741
+ <xsl:param name="toc-context" select="."/>
742
+ <!-- * If $toc-context contains some node other than the current node, -->
743
+ <!-- * it means we're processing a link in a TOC. In that case, to -->
744
+ <!-- * ensure the link will work correctly, we need to take a look at -->
745
+ <!-- * where the file containing the TOC will get written, and where -->
746
+ <!-- * the file that's being linked to will get written. -->
747
+ <xsl:variable name="toc-output-dir">
748
+ <xsl:if test="not($toc-context = .)">
749
+ <!-- * Get the $toc-context node and all its ancestors, look down -->
750
+ <!-- * through them to find the last/closest node to the -->
751
+ <!-- * toc-context node that has a "dbhtml dir" PI, and get the -->
752
+ <!-- * directory name from that. That's the name of the directory -->
753
+ <!-- * to which the current toc output file will get written. -->
754
+ <xsl:call-template name="dbhtml-dir">
755
+ <xsl:with-param name="context" select="$toc-context/ancestor-or-self::*[processing-instruction('dbhtml')[contains(.,'dir')]][last()]"/>
756
+ </xsl:call-template>
757
+ </xsl:if>
758
+ </xsl:variable>
759
+ <xsl:variable name="linked-file-output-dir">
760
+ <xsl:if test="not($toc-context = .)">
761
+ <!-- * Get the current node and all its ancestors, look down -->
762
+ <!-- * through them to find the last/closest node to the current -->
763
+ <!-- * node that has a "dbhtml dir" PI, and get the directory name -->
764
+ <!-- * from that. That's the name of the directory to which the -->
765
+ <!-- * file that's being linked to will get written. -->
766
+ <xsl:call-template name="dbhtml-dir">
767
+ <xsl:with-param name="context" select="ancestor-or-self::*[processing-instruction('dbhtml')[contains(.,'dir')]][last()]"/>
768
+ </xsl:call-template>
769
+ </xsl:if>
770
+ </xsl:variable>
771
+ <xsl:variable name="href.to.uri">
772
+ <xsl:call-template name="href.target.uri">
773
+ <xsl:with-param name="object" select="$object"/>
774
+ </xsl:call-template>
775
+ </xsl:variable>
776
+ <xsl:variable name="href.from.uri">
777
+ <xsl:call-template name="href.target.uri">
778
+ <xsl:with-param name="object" select="$context"/>
779
+ </xsl:call-template>
780
+ </xsl:variable>
781
+ <!-- * <xsl:message>toc-context: <xsl:value-of select="local-name($toc-context)"/></xsl:message> -->
782
+ <!-- * <xsl:message>node: <xsl:value-of select="local-name(.)"/></xsl:message> -->
783
+ <!-- * <xsl:message>context: <xsl:value-of select="local-name($context)"/></xsl:message> -->
784
+ <!-- * <xsl:message>object: <xsl:value-of select="local-name($object)"/></xsl:message> -->
785
+ <!-- * <xsl:message>toc-output-dir: <xsl:value-of select="$toc-output-dir"/></xsl:message> -->
786
+ <!-- * <xsl:message>linked-file-output-dir: <xsl:value-of select="$linked-file-output-dir"/></xsl:message> -->
787
+ <!-- * <xsl:message>href.to.uri: <xsl:value-of select="$href.to.uri"/></xsl:message> -->
788
+ <!-- * <xsl:message>href.from.uri: <xsl:value-of select="$href.from.uri"/></xsl:message> -->
789
+ <xsl:variable name="href.to">
790
+ <xsl:choose>
791
+ <!-- * 2007-07-19, MikeSmith: Added the following conditional to -->
792
+ <!-- * deal with a problem case for links in TOCs. It checks to see -->
793
+ <!-- * if the output dir that a TOC will get written to is -->
794
+ <!-- * different from the output dir of the file being linked to. -->
795
+ <!-- * If it is different, we do not call trim.common.uri.paths. -->
796
+ <!-- * -->
797
+ <!-- * Reason why I added that conditional is: I ran into a bug for -->
798
+ <!-- * this case: -->
799
+ <!-- * -->
800
+ <!-- * 1. we are chunking into separate dirs -->
801
+ <!-- * -->
802
+ <!-- * 2. output for the TOC is written to current dir, but the file -->
803
+ <!-- * being linked to is written to some subdir "foo". -->
804
+ <!-- * -->
805
+ <!-- * For that case, links to that file in that TOC did not show -->
806
+ <!-- * the correct path - they omitted the "foo". -->
807
+ <!-- * -->
808
+ <!-- * The cause of that problem was that the trim.common.uri.paths -->
809
+ <!-- * template[1] was being called under all conditions. But it's -->
810
+ <!-- * apparent that we don't want to call trim.common.uri.paths in -->
811
+ <!-- * the case where a linked file is being written to a different -->
812
+ <!-- * directory than the TOC that contains the link, because doing -->
813
+ <!-- * so will cause a necessary (not redundant) directory-name -->
814
+ <!-- * part of the link to get inadvertently trimmed, resulting in -->
815
+ <!-- * a broken link to that file. Thus, added the conditional. -->
816
+ <!-- * -->
817
+ <!-- * [1] The purpose of the trim.common.uri.paths template is to -->
818
+ <!-- * prevent cases where, if we didn't call it, we end up with -->
819
+ <!-- * unnecessary, redundant directory names getting output; for -->
820
+ <!-- * example, "foo/foo/refname.html". -->
821
+ <xsl:when test="not($toc-output-dir = $linked-file-output-dir)">
822
+ <xsl:value-of select="$href.to.uri"/>
823
+ </xsl:when>
824
+ <xsl:otherwise>
825
+ <xsl:call-template name="trim.common.uri.paths">
826
+ <xsl:with-param name="uriA" select="$href.to.uri"/>
827
+ <xsl:with-param name="uriB" select="$href.from.uri"/>
828
+ <xsl:with-param name="return" select="'A'"/>
829
+ </xsl:call-template>
830
+ </xsl:otherwise>
831
+ </xsl:choose>
832
+ </xsl:variable>
833
+ <xsl:variable name="href.from">
834
+ <xsl:call-template name="trim.common.uri.paths">
835
+ <xsl:with-param name="uriA" select="$href.to.uri"/>
836
+ <xsl:with-param name="uriB" select="$href.from.uri"/>
837
+ <xsl:with-param name="return" select="'B'"/>
838
+ </xsl:call-template>
839
+ </xsl:variable>
840
+ <xsl:variable name="depth">
841
+ <xsl:call-template name="count.uri.path.depth">
842
+ <xsl:with-param name="filename" select="$href.from"/>
843
+ </xsl:call-template>
844
+ </xsl:variable>
845
+ <xsl:variable name="href">
846
+ <xsl:call-template name="copy-string">
847
+ <xsl:with-param name="string" select="'../'"/>
848
+ <xsl:with-param name="count" select="$depth"/>
849
+ </xsl:call-template>
850
+ <xsl:value-of select="$href.to"/>
851
+ </xsl:variable>
852
+ <!--
853
+ <xsl:message>
854
+ <xsl:text>In </xsl:text>
855
+ <xsl:value-of select="name(.)"/>
856
+ <xsl:text> (</xsl:text>
857
+ <xsl:value-of select="$href.from"/>
858
+ <xsl:text>,</xsl:text>
859
+ <xsl:value-of select="$depth"/>
860
+ <xsl:text>) </xsl:text>
861
+ <xsl:value-of select="name($object)"/>
862
+ <xsl:text> href=</xsl:text>
863
+ <xsl:value-of select="$href"/>
864
+ </xsl:message>
865
+ -->
866
+ <xsl:value-of select="$href"/>
867
+ </xsl:template>
868
+
869
+ <!-- Returns the complete olink href value if found -->
870
+ <!-- Must take into account any dbhtml dir of the chunk containing the olink -->
871
+ <xsl:template name="make.olink.href">
872
+ <xsl:param name="olink.key" select="''"/>
873
+ <xsl:param name="target.database"/>
874
+
875
+ <xsl:if test="$olink.key != ''">
876
+ <xsl:variable name="target.href">
877
+ <xsl:for-each select="$target.database">
878
+ <xsl:value-of select="key('targetptr-key', $olink.key)/@href"/>
879
+ </xsl:for-each>
880
+ </xsl:variable>
881
+
882
+ <!-- an olink starting point may be in a subdirectory, so need
883
+ the "from" reference point to compute a relative path -->
884
+
885
+ <xsl:variable name="from.href">
886
+ <xsl:call-template name="olink.from.uri">
887
+ <xsl:with-param name="target.database" select="$target.database"/>
888
+ <xsl:with-param name="object" select="."/>
889
+ <xsl:with-param name="object.targetdoc" select="$current.docid"/>
890
+ </xsl:call-template>
891
+ </xsl:variable>
892
+
893
+ <!-- If the from.href has directory path, then must "../" upward
894
+ to document level -->
895
+ <xsl:variable name="upward.from.path">
896
+ <xsl:call-template name="upward.path">
897
+ <xsl:with-param name="path" select="$from.href"/>
898
+ </xsl:call-template>
899
+ </xsl:variable>
900
+
901
+ <xsl:variable name="targetdoc">
902
+ <xsl:value-of select="substring-before($olink.key, '/')"/>
903
+ </xsl:variable>
904
+
905
+ <!-- Does the target database use a sitemap? -->
906
+ <xsl:variable name="use.sitemap">
907
+ <xsl:choose>
908
+ <xsl:when test="$target.database//sitemap">1</xsl:when>
909
+ <xsl:otherwise>0</xsl:otherwise>
910
+ </xsl:choose>
911
+ </xsl:variable>
912
+
913
+
914
+ <!-- Get the baseuri for this targetptr -->
915
+ <xsl:variable name="baseuri">
916
+ <xsl:choose>
917
+ <!-- Does the database use a sitemap? -->
918
+ <xsl:when test="$use.sitemap != 0">
919
+ <xsl:choose>
920
+ <!-- Was current.docid parameter set? -->
921
+ <xsl:when test="$current.docid != ''">
922
+ <!-- Was it found in the database? -->
923
+ <xsl:variable name="currentdoc.key">
924
+ <xsl:for-each select="$target.database">
925
+ <xsl:value-of select="key('targetdoc-key', $current.docid)/@targetdoc"/>
926
+ </xsl:for-each>
927
+ </xsl:variable>
928
+ <xsl:choose>
929
+ <xsl:when test="$currentdoc.key != ''">
930
+ <xsl:for-each select="$target.database">
931
+ <xsl:call-template name="targetpath">
932
+ <xsl:with-param name="dirnode" select="key('targetdoc-key', $current.docid)/parent::dir"/>
933
+ <xsl:with-param name="targetdoc" select="$targetdoc"/>
934
+ </xsl:call-template>
935
+ </xsl:for-each>
936
+ </xsl:when>
937
+ <xsl:otherwise>
938
+ <xsl:message>
939
+ <xsl:text>Olink error: cannot compute relative </xsl:text>
940
+ <xsl:text>sitemap path because $current.docid '</xsl:text>
941
+ <xsl:value-of select="$current.docid"/>
942
+ <xsl:text>' not found in target database.</xsl:text>
943
+ </xsl:message>
944
+ </xsl:otherwise>
945
+ </xsl:choose>
946
+ </xsl:when>
947
+ <xsl:otherwise>
948
+ <xsl:message>
949
+ <xsl:text>Olink warning: cannot compute relative </xsl:text>
950
+ <xsl:text>sitemap path without $current.docid parameter</xsl:text>
951
+ </xsl:message>
952
+ </xsl:otherwise>
953
+ </xsl:choose>
954
+ <!-- In either case, add baseuri from its document entry-->
955
+ <xsl:variable name="docbaseuri">
956
+ <xsl:for-each select="$target.database">
957
+ <xsl:value-of select="key('targetdoc-key', $targetdoc)/@baseuri"/>
958
+ </xsl:for-each>
959
+ </xsl:variable>
960
+ <xsl:if test="$docbaseuri != ''">
961
+ <xsl:value-of select="$docbaseuri"/>
962
+ </xsl:if>
963
+ </xsl:when>
964
+ <!-- No database sitemap in use -->
965
+ <xsl:otherwise>
966
+ <!-- Just use any baseuri from its document entry -->
967
+ <xsl:variable name="docbaseuri">
968
+ <xsl:for-each select="$target.database">
969
+ <xsl:value-of select="key('targetdoc-key', $targetdoc)/@baseuri"/>
970
+ </xsl:for-each>
971
+ </xsl:variable>
972
+ <xsl:if test="$docbaseuri != ''">
973
+ <xsl:value-of select="$docbaseuri"/>
974
+ </xsl:if>
975
+ </xsl:otherwise>
976
+ </xsl:choose>
977
+ </xsl:variable>
978
+
979
+ <!-- Form the href information -->
980
+ <xsl:if test="not(contains($baseuri, ':'))">
981
+ <!-- if not an absolute uri, add upward path from olink chunk -->
982
+ <xsl:value-of select="$upward.from.path"/>
983
+ </xsl:if>
984
+
985
+ <xsl:if test="$baseuri != ''">
986
+ <xsl:value-of select="$baseuri"/>
987
+ <xsl:if test="substring($target.href,1,1) != '#'">
988
+ <!--xsl:text>/</xsl:text-->
989
+ </xsl:if>
990
+ </xsl:if>
991
+ <!-- optionally turn off frag for PDF references -->
992
+ <xsl:if test="not($insert.olink.pdf.frag = 0 and translate(substring($baseuri, string-length($baseuri) - 3), 'PDF', 'pdf') = '.pdf' and starts-with($target.href, '#') )">
993
+ <xsl:value-of select="$target.href"/>
994
+ </xsl:if>
995
+ </xsl:if>
996
+ </xsl:template>
997
+
998
+ <!-- Computes "../" to reach top -->
999
+ <xsl:template name="upward.path">
1000
+ <xsl:param name="path" select="''"/>
1001
+ <xsl:choose>
1002
+ <!-- Don't bother with absolute uris -->
1003
+ <xsl:when test="contains($path, ':')"/>
1004
+ <xsl:when test="starts-with($path, '/')"/>
1005
+ <xsl:when test="contains($path, '/')">
1006
+ <xsl:text>../</xsl:text>
1007
+ <xsl:call-template name="upward.path">
1008
+ <xsl:with-param name="path" select="substring-after($path, '/')"/>
1009
+ </xsl:call-template>
1010
+ </xsl:when>
1011
+ </xsl:choose>
1012
+
1013
+ </xsl:template>
1014
+
1015
+ <!-- ==================================================================== -->
1016
+
1017
+ <xsl:template name="html.head">
1018
+ <xsl:param name="prev" select="/foo"/>
1019
+ <xsl:param name="next" select="/foo"/>
1020
+ <xsl:variable name="this" select="."/>
1021
+ <xsl:variable name="home" select="/*[1]"/>
1022
+ <xsl:variable name="up" select="parent::*"/>
1023
+
1024
+ <head>
1025
+ <xsl:call-template name="system.head.content"/>
1026
+ <xsl:call-template name="head.content"/>
1027
+
1028
+ <xsl:if test="$home">
1029
+ <link rel="home">
1030
+ <xsl:attribute name="href">
1031
+ <xsl:call-template name="href.target">
1032
+ <xsl:with-param name="object" select="$home"/>
1033
+ </xsl:call-template>
1034
+ </xsl:attribute>
1035
+ <xsl:attribute name="title">
1036
+ <xsl:apply-templates select="$home" mode="object.title.markup.textonly"/>
1037
+ </xsl:attribute>
1038
+ </link>
1039
+ </xsl:if>
1040
+
1041
+ <xsl:if test="$up">
1042
+ <link rel="up">
1043
+ <xsl:attribute name="href">
1044
+ <xsl:call-template name="href.target">
1045
+ <xsl:with-param name="object" select="$up"/>
1046
+ </xsl:call-template>
1047
+ </xsl:attribute>
1048
+ <xsl:attribute name="title">
1049
+ <xsl:apply-templates select="$up" mode="object.title.markup.textonly"/>
1050
+ </xsl:attribute>
1051
+ </link>
1052
+ </xsl:if>
1053
+
1054
+ <xsl:if test="$prev">
1055
+ <link rel="prev">
1056
+ <xsl:attribute name="href">
1057
+ <xsl:call-template name="href.target">
1058
+ <xsl:with-param name="object" select="$prev"/>
1059
+ </xsl:call-template>
1060
+ </xsl:attribute>
1061
+ <xsl:attribute name="title">
1062
+ <xsl:apply-templates select="$prev" mode="object.title.markup.textonly"/>
1063
+ </xsl:attribute>
1064
+ </link>
1065
+ </xsl:if>
1066
+
1067
+ <xsl:if test="$next">
1068
+ <link rel="next">
1069
+ <xsl:attribute name="href">
1070
+ <xsl:call-template name="href.target">
1071
+ <xsl:with-param name="object" select="$next"/>
1072
+ </xsl:call-template>
1073
+ </xsl:attribute>
1074
+ <xsl:attribute name="title">
1075
+ <xsl:apply-templates select="$next" mode="object.title.markup.textonly"/>
1076
+ </xsl:attribute>
1077
+ </link>
1078
+ </xsl:if>
1079
+
1080
+ <xsl:if test="$html.extra.head.links != 0">
1081
+ <xsl:for-each select="//part |//reference |//preface |//chapter |//article |//refentry |//appendix[not(parent::article)]|appendix |//glossary[not(parent::article)]|glossary |//index[not(parent::article)]|index">
1082
+ <link rel="{local-name(.)}">
1083
+ <xsl:attribute name="href">
1084
+ <xsl:call-template name="href.target">
1085
+ <xsl:with-param name="context" select="$this"/>
1086
+ <xsl:with-param name="object" select="."/>
1087
+ </xsl:call-template>
1088
+ </xsl:attribute>
1089
+ <xsl:attribute name="title">
1090
+ <xsl:apply-templates select="." mode="object.title.markup.textonly"/>
1091
+ </xsl:attribute>
1092
+ </link>
1093
+ </xsl:for-each>
1094
+
1095
+ <xsl:for-each select="section|sect1|refsection|refsect1">
1096
+ <link>
1097
+ <xsl:attribute name="rel">
1098
+ <xsl:choose>
1099
+ <xsl:when test="local-name($this) = 'section' or local-name($this) = 'refsection'">
1100
+ <xsl:value-of select="'subsection'"/>
1101
+ </xsl:when>
1102
+ <xsl:otherwise>
1103
+ <xsl:value-of select="'section'"/>
1104
+ </xsl:otherwise>
1105
+ </xsl:choose>
1106
+ </xsl:attribute>
1107
+ <xsl:attribute name="href">
1108
+ <xsl:call-template name="href.target">
1109
+ <xsl:with-param name="context" select="$this"/>
1110
+ <xsl:with-param name="object" select="."/>
1111
+ </xsl:call-template>
1112
+ </xsl:attribute>
1113
+ <xsl:attribute name="title">
1114
+ <xsl:apply-templates select="." mode="object.title.markup.textonly"/>
1115
+ </xsl:attribute>
1116
+ </link>
1117
+ </xsl:for-each>
1118
+
1119
+ <xsl:for-each select="sect2|sect3|sect4|sect5|refsect2|refsect3">
1120
+ <link rel="subsection">
1121
+ <xsl:attribute name="href">
1122
+ <xsl:call-template name="href.target">
1123
+ <xsl:with-param name="context" select="$this"/>
1124
+ <xsl:with-param name="object" select="."/>
1125
+ </xsl:call-template>
1126
+ </xsl:attribute>
1127
+ <xsl:attribute name="title">
1128
+ <xsl:apply-templates select="." mode="object.title.markup.textonly"/>
1129
+ </xsl:attribute>
1130
+ </link>
1131
+ </xsl:for-each>
1132
+ </xsl:if>
1133
+
1134
+ <!-- * if we have a legalnotice and user wants it output as a -->
1135
+ <!-- * separate page and $html.head.legalnotice.link.types is -->
1136
+ <!-- * non-empty, we generate a link or links for each value in -->
1137
+ <!-- * $html.head.legalnotice.link.types -->
1138
+ <xsl:if test="//legalnotice and not($generate.legalnotice.link = 0) and not($html.head.legalnotice.link.types = '')">
1139
+ <xsl:call-template name="make.legalnotice.head.links"/>
1140
+ </xsl:if>
1141
+
1142
+ <xsl:call-template name="user.head.content"/>
1143
+ </head>
1144
+ </xsl:template>
1145
+
1146
+ <!-- ==================================================================== -->
1147
+
1148
+ <xsl:template name="header.navigation">
1149
+ <xsl:param name="prev" select="/foo"/>
1150
+ <xsl:param name="next" select="/foo"/>
1151
+ <xsl:param name="nav.context"/>
1152
+
1153
+ <xsl:variable name="home" select="/*[1]"/>
1154
+ <xsl:variable name="up" select="parent::*"/>
1155
+
1156
+ <xsl:variable name="row1" select="$navig.showtitles != 0"/>
1157
+ <xsl:variable name="row2" select="count($prev) &gt; 0 or (count($up) &gt; 0 and generate-id($up) != generate-id($home) and $navig.showtitles != 0) or count($next) &gt; 0"/>
1158
+
1159
+ <xsl:if test="$suppress.navigation = '0' and $suppress.header.navigation = '0'">
1160
+ <div class="navheader">
1161
+ <xsl:if test="$row1 or $row2">
1162
+ <table width="100%" summary="Navigation header">
1163
+ <xsl:if test="$row1">
1164
+ <tr>
1165
+ <th colspan="3" align="center">
1166
+ <xsl:apply-templates select="." mode="object.title.markup"/>
1167
+ </th>
1168
+ </tr>
1169
+ </xsl:if>
1170
+
1171
+ <xsl:if test="$row2">
1172
+ <tr>
1173
+ <td width="20%" align="{$direction.align.start}">
1174
+ <xsl:if test="count($prev)&gt;0">
1175
+ <a accesskey="p">
1176
+ <xsl:attribute name="href">
1177
+ <xsl:call-template name="href.target">
1178
+ <xsl:with-param name="object" select="$prev"/>
1179
+ </xsl:call-template>
1180
+ </xsl:attribute>
1181
+ <xsl:call-template name="navig.content">
1182
+ <xsl:with-param name="direction" select="'prev'"/>
1183
+ </xsl:call-template>
1184
+ </a>
1185
+ </xsl:if>
1186
+ <xsl:text>&#160;</xsl:text>
1187
+ </td>
1188
+ <th width="60%" align="center">
1189
+ <xsl:choose>
1190
+ <xsl:when test="count($up) &gt; 0 and generate-id($up) != generate-id($home) and $navig.showtitles != 0">
1191
+ <xsl:apply-templates select="$up" mode="object.title.markup"/>
1192
+ </xsl:when>
1193
+ <xsl:otherwise>&#160;</xsl:otherwise>
1194
+ </xsl:choose>
1195
+ </th>
1196
+ <td width="20%" align="{$direction.align.end}">
1197
+ <xsl:text>&#160;</xsl:text>
1198
+ <xsl:if test="count($next)&gt;0">
1199
+ <a accesskey="n">
1200
+ <xsl:attribute name="href">
1201
+ <xsl:call-template name="href.target">
1202
+ <xsl:with-param name="object" select="$next"/>
1203
+ </xsl:call-template>
1204
+ </xsl:attribute>
1205
+ <xsl:call-template name="navig.content">
1206
+ <xsl:with-param name="direction" select="'next'"/>
1207
+ </xsl:call-template>
1208
+ </a>
1209
+ </xsl:if>
1210
+ </td>
1211
+ </tr>
1212
+ </xsl:if>
1213
+ </table>
1214
+ </xsl:if>
1215
+ <xsl:if test="$header.rule != 0">
1216
+ <hr/>
1217
+ </xsl:if>
1218
+ </div>
1219
+ </xsl:if>
1220
+ </xsl:template>
1221
+
1222
+ <!-- ==================================================================== -->
1223
+
1224
+ <xsl:template name="footer.navigation">
1225
+ <xsl:param name="prev" select="/foo"/>
1226
+ <xsl:param name="next" select="/foo"/>
1227
+ <xsl:param name="nav.context"/>
1228
+
1229
+ <xsl:variable name="home" select="/*[1]"/>
1230
+ <xsl:variable name="up" select="parent::*"/>
1231
+
1232
+ <xsl:variable name="row1" select="count($prev) &gt; 0 or count($up) &gt; 0 or count($next) &gt; 0"/>
1233
+
1234
+ <xsl:variable name="row2" select="($prev and $navig.showtitles != 0) or (generate-id($home) != generate-id(.) or $nav.context = 'toc') or ($chunk.tocs.and.lots != 0 and $nav.context != 'toc') or ($next and $navig.showtitles != 0)"/>
1235
+
1236
+ <xsl:if test="$suppress.navigation = '0' and $suppress.footer.navigation = '0'">
1237
+ <div class="navfooter">
1238
+ <xsl:if test="$footer.rule != 0">
1239
+ <hr/>
1240
+ </xsl:if>
1241
+
1242
+ <xsl:if test="$row1 or $row2">
1243
+ <table width="100%" summary="Navigation footer">
1244
+ <xsl:if test="$row1">
1245
+ <tr>
1246
+ <td width="40%" align="{$direction.align.start}">
1247
+ <xsl:if test="count($prev)&gt;0">
1248
+ <a accesskey="p">
1249
+ <xsl:attribute name="href">
1250
+ <xsl:call-template name="href.target">
1251
+ <xsl:with-param name="object" select="$prev"/>
1252
+ </xsl:call-template>
1253
+ </xsl:attribute>
1254
+ <xsl:call-template name="navig.content">
1255
+ <xsl:with-param name="direction" select="'prev'"/>
1256
+ </xsl:call-template>
1257
+ </a>
1258
+ </xsl:if>
1259
+ <xsl:text>&#160;</xsl:text>
1260
+ </td>
1261
+ <td width="20%" align="center">
1262
+ <xsl:choose>
1263
+ <xsl:when test="count($up)&gt;0 and generate-id($up) != generate-id($home)">
1264
+ <a accesskey="u">
1265
+ <xsl:attribute name="href">
1266
+ <xsl:call-template name="href.target">
1267
+ <xsl:with-param name="object" select="$up"/>
1268
+ </xsl:call-template>
1269
+ </xsl:attribute>
1270
+ <xsl:call-template name="navig.content">
1271
+ <xsl:with-param name="direction" select="'up'"/>
1272
+ </xsl:call-template>
1273
+ </a>
1274
+ </xsl:when>
1275
+ <xsl:otherwise>&#160;</xsl:otherwise>
1276
+ </xsl:choose>
1277
+ </td>
1278
+ <td width="40%" align="{$direction.align.end}">
1279
+ <xsl:text>&#160;</xsl:text>
1280
+ <xsl:if test="count($next)&gt;0">
1281
+ <a accesskey="n">
1282
+ <xsl:attribute name="href">
1283
+ <xsl:call-template name="href.target">
1284
+ <xsl:with-param name="object" select="$next"/>
1285
+ </xsl:call-template>
1286
+ </xsl:attribute>
1287
+ <xsl:call-template name="navig.content">
1288
+ <xsl:with-param name="direction" select="'next'"/>
1289
+ </xsl:call-template>
1290
+ </a>
1291
+ </xsl:if>
1292
+ </td>
1293
+ </tr>
1294
+ </xsl:if>
1295
+
1296
+ <xsl:if test="$row2">
1297
+ <tr>
1298
+ <td width="40%" align="{$direction.align.start}" valign="top">
1299
+ <xsl:if test="$navig.showtitles != 0">
1300
+ <xsl:apply-templates select="$prev" mode="object.title.markup"/>
1301
+ </xsl:if>
1302
+ <xsl:text>&#160;</xsl:text>
1303
+ </td>
1304
+ <td width="20%" align="center">
1305
+ <xsl:choose>
1306
+ <xsl:when test="$home != . or $nav.context = 'toc'">
1307
+ <a accesskey="h">
1308
+ <xsl:attribute name="href">
1309
+ <xsl:call-template name="href.target">
1310
+ <xsl:with-param name="object" select="$home"/>
1311
+ </xsl:call-template>
1312
+ </xsl:attribute>
1313
+ <xsl:call-template name="navig.content">
1314
+ <xsl:with-param name="direction" select="'home'"/>
1315
+ </xsl:call-template>
1316
+ </a>
1317
+ <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
1318
+ <xsl:text>&#160;|&#160;</xsl:text>
1319
+ </xsl:if>
1320
+ </xsl:when>
1321
+ <xsl:otherwise>&#160;</xsl:otherwise>
1322
+ </xsl:choose>
1323
+
1324
+ <xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
1325
+ <a accesskey="t">
1326
+ <xsl:attribute name="href">
1327
+ <xsl:apply-templates select="/*[1]" mode="recursive-chunk-filename">
1328
+ <xsl:with-param name="recursive" select="true()"/>
1329
+ </xsl:apply-templates>
1330
+ <xsl:text>-toc</xsl:text>
1331
+ <xsl:value-of select="$html.ext"/>
1332
+ </xsl:attribute>
1333
+ <xsl:call-template name="gentext">
1334
+ <xsl:with-param name="key" select="'nav-toc'"/>
1335
+ </xsl:call-template>
1336
+ </a>
1337
+ </xsl:if>
1338
+ </td>
1339
+ <td width="40%" align="{$direction.align.end}" valign="top">
1340
+ <xsl:text>&#160;</xsl:text>
1341
+ <xsl:if test="$navig.showtitles != 0">
1342
+ <xsl:apply-templates select="$next" mode="object.title.markup"/>
1343
+ </xsl:if>
1344
+ </td>
1345
+ </tr>
1346
+ </xsl:if>
1347
+ </table>
1348
+ </xsl:if>
1349
+ </div>
1350
+ </xsl:if>
1351
+ </xsl:template>
1352
+
1353
+ <!-- ==================================================================== -->
1354
+
1355
+ <xsl:template name="navig.content">
1356
+ <xsl:param name="direction" select="next"/>
1357
+ <xsl:variable name="navtext">
1358
+ <xsl:choose>
1359
+ <xsl:when test="$direction = 'prev'">
1360
+ <xsl:call-template name="gentext.nav.prev"/>
1361
+ </xsl:when>
1362
+ <xsl:when test="$direction = 'next'">
1363
+ <xsl:call-template name="gentext.nav.next"/>
1364
+ </xsl:when>
1365
+ <xsl:when test="$direction = 'up'">
1366
+ <xsl:call-template name="gentext.nav.up"/>
1367
+ </xsl:when>
1368
+ <xsl:when test="$direction = 'home'">
1369
+ <xsl:call-template name="gentext.nav.home"/>
1370
+ </xsl:when>
1371
+ <xsl:otherwise>
1372
+ <xsl:text>xxx</xsl:text>
1373
+ </xsl:otherwise>
1374
+ </xsl:choose>
1375
+ </xsl:variable>
1376
+
1377
+ <xsl:choose>
1378
+ <xsl:when test="$navig.graphics != 0">
1379
+ <img>
1380
+ <xsl:attribute name="src">
1381
+ <xsl:value-of select="$navig.graphics.path"/>
1382
+ <xsl:value-of select="$direction"/>
1383
+ <xsl:value-of select="$navig.graphics.extension"/>
1384
+ </xsl:attribute>
1385
+ <xsl:attribute name="alt">
1386
+ <xsl:value-of select="$navtext"/>
1387
+ </xsl:attribute>
1388
+ </img>
1389
+ </xsl:when>
1390
+ <xsl:otherwise>
1391
+ <xsl:value-of select="$navtext"/>
1392
+ </xsl:otherwise>
1393
+ </xsl:choose>
1394
+ </xsl:template>
1395
+
1396
+ <!-- ==================================================================== -->
1397
+
1398
+ <!-- * The following template assumes that the first legalnotice -->
1399
+ <!-- * instance found in a document applies to the contents of the -->
1400
+ <!-- * entire document. It generates an HTML link in each chunk, back -->
1401
+ <!-- * to the file containing the contents of the first legalnotice. -->
1402
+ <!-- * -->
1403
+ <!-- * Actually, it may generate multiple link instances in each chunk, -->
1404
+ <!-- * because it walks through the space-separated list of link -->
1405
+ <!-- * types specified in the $html.head.legalnotice.link.types param, -->
1406
+ <!-- * popping off link types and generating links for them until it -->
1407
+ <!-- * depletes the list. -->
1408
+
1409
+ <xsl:template name="make.legalnotice.head.links">
1410
+ <!-- * the following ID is used as part of the legalnotice filename; -->
1411
+ <!-- * we need it in order to construct the filename for use in the -->
1412
+ <!-- * value of the href attribute on the link -->
1413
+
1414
+ <xsl:param name="ln-node" select="(//legalnotice)[1]"/>
1415
+
1416
+ <xsl:param name="linktype">
1417
+ <xsl:choose>
1418
+ <xsl:when test="contains($html.head.legalnotice.link.types, ' ')">
1419
+ <xsl:value-of select="normalize-space( substring-before($html.head.legalnotice.link.types, ' '))"/>
1420
+ </xsl:when>
1421
+ <xsl:otherwise>
1422
+ <xsl:value-of select="$html.head.legalnotice.link.types"/>
1423
+ </xsl:otherwise>
1424
+ </xsl:choose>
1425
+ </xsl:param>
1426
+ <xsl:param name="remaining.linktypes" select="concat( normalize-space( substring-after($html.head.legalnotice.link.types, ' ')),' ')"/>
1427
+ <xsl:if test="not($linktype = '')">
1428
+
1429
+ <!-- Compute name of legalnotice file (see titlepage.xsl) -->
1430
+ <xsl:variable name="file">
1431
+ <xsl:call-template name="ln.or.rh.filename">
1432
+ <xsl:with-param name="node" select="$ln-node"/>
1433
+ </xsl:call-template>
1434
+ </xsl:variable>
1435
+
1436
+ <link rel="{$linktype}">
1437
+ <xsl:attribute name="href">
1438
+ <xsl:value-of select="$file"/>
1439
+ </xsl:attribute>
1440
+ <xsl:attribute name="title">
1441
+ <xsl:apply-templates select="(//legalnotice)[1]" mode="object.title.markup.textonly"/>
1442
+ </xsl:attribute>
1443
+ </link>
1444
+ <xsl:call-template name="make.legalnotice.head.links">
1445
+ <!-- * pop the next value off the list of link types -->
1446
+ <xsl:with-param name="linktype" select="substring-before($remaining.linktypes, ' ')"/>
1447
+ <!-- * remove the link type from the list of remaining link types -->
1448
+ <xsl:with-param name="remaining.linktypes" select="substring-after($remaining.linktypes, ' ')"/>
1449
+ </xsl:call-template>
1450
+ </xsl:if>
1451
+ </xsl:template>
1452
+
1453
+ <!-- ==================================================================== -->
1454
+ <xsl:template name="chunk-element-content">
1455
+ <xsl:param name="prev"/>
1456
+ <xsl:param name="next"/>
1457
+ <xsl:param name="nav.context"/>
1458
+ <xsl:param name="content">
1459
+ <xsl:apply-imports/>
1460
+ </xsl:param>
1461
+
1462
+ <xsl:call-template name="user.preroot"/>
1463
+
1464
+ <html>
1465
+ <xsl:call-template name="html.head">
1466
+ <xsl:with-param name="prev" select="$prev"/>
1467
+ <xsl:with-param name="next" select="$next"/>
1468
+ </xsl:call-template>
1469
+
1470
+ <body>
1471
+ <xsl:call-template name="body.attributes"/>
1472
+ <xsl:call-template name="user.header.navigation"/>
1473
+
1474
+ <xsl:call-template name="header.navigation">
1475
+ <xsl:with-param name="prev" select="$prev"/>
1476
+ <xsl:with-param name="next" select="$next"/>
1477
+ <xsl:with-param name="nav.context" select="$nav.context"/>
1478
+ </xsl:call-template>
1479
+
1480
+ <xsl:call-template name="user.header.content"/>
1481
+
1482
+ <xsl:copy-of select="$content"/>
1483
+
1484
+ <xsl:call-template name="user.footer.content"/>
1485
+
1486
+ <xsl:call-template name="footer.navigation">
1487
+ <xsl:with-param name="prev" select="$prev"/>
1488
+ <xsl:with-param name="next" select="$next"/>
1489
+ <xsl:with-param name="nav.context" select="$nav.context"/>
1490
+ </xsl:call-template>
1491
+
1492
+ <xsl:call-template name="user.footer.navigation"/>
1493
+ </body>
1494
+ </html>
1495
+ <xsl:value-of select="$chunk.append"/>
1496
+ </xsl:template>
1497
+
1498
+ <!-- ==================================================================== -->
1499
+ <xsl:template name="generate.manifest">
1500
+ <xsl:param name="node" select="/"/>
1501
+ <xsl:call-template name="write.text.chunk">
1502
+ <xsl:with-param name="filename">
1503
+ <xsl:if test="$manifest.in.base.dir != 0">
1504
+ <xsl:value-of select="$base.dir"/>
1505
+ </xsl:if>
1506
+ <xsl:value-of select="$manifest"/>
1507
+ </xsl:with-param>
1508
+ <xsl:with-param name="method" select="'text'"/>
1509
+ <xsl:with-param name="content">
1510
+ <xsl:apply-templates select="$node" mode="enumerate-files"/>
1511
+ </xsl:with-param>
1512
+ <xsl:with-param name="encoding" select="$chunker.output.encoding"/>
1513
+ </xsl:call-template>
1514
+ </xsl:template>
1515
+
1516
+ <!-- ==================================================================== -->
1517
+
1518
+ <xsl:template name="dbhtml-dir">
1519
+ <xsl:param name="context" select="."/>
1520
+ <!-- directories are now inherited from previous levels -->
1521
+ <xsl:variable name="ppath">
1522
+ <xsl:if test="$context/parent::*">
1523
+ <xsl:call-template name="dbhtml-dir">
1524
+ <xsl:with-param name="context" select="$context/parent::*"/>
1525
+ </xsl:call-template>
1526
+ </xsl:if>
1527
+ </xsl:variable>
1528
+ <xsl:variable name="path">
1529
+ <xsl:call-template name="pi.dbhtml_dir">
1530
+ <xsl:with-param name="node" select="$context"/>
1531
+ </xsl:call-template>
1532
+ </xsl:variable>
1533
+ <xsl:choose>
1534
+ <xsl:when test="$path = ''">
1535
+ <xsl:if test="$ppath != ''">
1536
+ <xsl:value-of select="$ppath"/>
1537
+ </xsl:if>
1538
+ </xsl:when>
1539
+ <xsl:otherwise>
1540
+ <xsl:if test="$ppath != ''">
1541
+ <xsl:value-of select="$ppath"/>
1542
+ <xsl:if test="substring($ppath, string-length($ppath), 1) != '/'">
1543
+ <xsl:text>/</xsl:text>
1544
+ </xsl:if>
1545
+ </xsl:if>
1546
+ <xsl:value-of select="$path"/>
1547
+ <xsl:text>/</xsl:text>
1548
+ </xsl:otherwise>
1549
+ </xsl:choose>
1550
+ </xsl:template>
1551
+
1552
+ </xsl:stylesheet>