couchbase-git-scribe 0.1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1182) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +2 -0
  3. data/Gemfile.lock +22 -0
  4. data/LICENSE +22 -0
  5. data/Pygments.txt +44 -0
  6. data/README.asciidoc +111 -0
  7. data/Rakefile +9 -0
  8. data/SPEC.asciidoc +126 -0
  9. data/TODO.txt +17 -0
  10. data/bin/git-scribe +7 -0
  11. data/docbook-xsl/.CatalogManager.properties.example +61 -0
  12. data/docbook-xsl/.urilist +1 -0
  13. data/docbook-xsl/COPYING +47 -0
  14. data/docbook-xsl/VERSION +115 -0
  15. data/docbook-xsl/catalog.xml +8 -0
  16. data/docbook-xsl/common.xsl +87 -0
  17. data/docbook-xsl/common/af.xml +1229 -0
  18. data/docbook-xsl/common/am.xml +1229 -0
  19. data/docbook-xsl/common/ar.xml +1229 -0
  20. data/docbook-xsl/common/autoidx-kimber.xsl +43 -0
  21. data/docbook-xsl/common/autoidx-kosek.xsl +150 -0
  22. data/docbook-xsl/common/az.xml +672 -0
  23. data/docbook-xsl/common/bg.xml +724 -0
  24. data/docbook-xsl/common/bn.xml +1229 -0
  25. data/docbook-xsl/common/bs.xml +662 -0
  26. data/docbook-xsl/common/ca.xml +1229 -0
  27. data/docbook-xsl/common/charmap.xml +185 -0
  28. data/docbook-xsl/common/charmap.xsl +221 -0
  29. data/docbook-xsl/common/common.xml +622 -0
  30. data/docbook-xsl/common/common.xsl +2019 -0
  31. data/docbook-xsl/common/cs.xml +700 -0
  32. data/docbook-xsl/common/cy.xml +1245 -0
  33. data/docbook-xsl/common/da.xml +664 -0
  34. data/docbook-xsl/common/de.xml +666 -0
  35. data/docbook-xsl/common/el.xml +1229 -0
  36. data/docbook-xsl/common/en.xml +1229 -0
  37. data/docbook-xsl/common/entities.ent +60 -0
  38. data/docbook-xsl/common/eo.xml +1229 -0
  39. data/docbook-xsl/common/es.xml +676 -0
  40. data/docbook-xsl/common/et.xml +1229 -0
  41. data/docbook-xsl/common/eu.xml +1229 -0
  42. data/docbook-xsl/common/fa.xml +1229 -0
  43. data/docbook-xsl/common/fi.xml +670 -0
  44. data/docbook-xsl/common/fr.xml +690 -0
  45. data/docbook-xsl/common/ga.xml +1229 -0
  46. data/docbook-xsl/common/gentext.xsl +836 -0
  47. data/docbook-xsl/common/gl.xml +1229 -0
  48. data/docbook-xsl/common/gu.xml +1229 -0
  49. data/docbook-xsl/common/he.xml +1229 -0
  50. data/docbook-xsl/common/hi.xml +1229 -0
  51. data/docbook-xsl/common/hr.xml +1229 -0
  52. data/docbook-xsl/common/hu.xml +1229 -0
  53. data/docbook-xsl/common/id.xml +1229 -0
  54. data/docbook-xsl/common/insertfile.xsl +111 -0
  55. data/docbook-xsl/common/it.xml +1229 -0
  56. data/docbook-xsl/common/ja.xml +1229 -0
  57. data/docbook-xsl/common/kn.xml +1229 -0
  58. data/docbook-xsl/common/ko.xml +1229 -0
  59. data/docbook-xsl/common/l10n.dtd +63 -0
  60. data/docbook-xsl/common/l10n.xml +129 -0
  61. data/docbook-xsl/common/l10n.xsl +497 -0
  62. data/docbook-xsl/common/la.xml +1229 -0
  63. data/docbook-xsl/common/labels.xsl +869 -0
  64. data/docbook-xsl/common/lt.xml +678 -0
  65. data/docbook-xsl/common/lv.xml +1229 -0
  66. data/docbook-xsl/common/mn.xml +730 -0
  67. data/docbook-xsl/common/nb.xml +1229 -0
  68. data/docbook-xsl/common/nl.xml +1229 -0
  69. data/docbook-xsl/common/nn.xml +1229 -0
  70. data/docbook-xsl/common/olink.xsl +1149 -0
  71. data/docbook-xsl/common/or.xml +1229 -0
  72. data/docbook-xsl/common/pa.xml +1229 -0
  73. data/docbook-xsl/common/pi.xml +165 -0
  74. data/docbook-xsl/common/pi.xsl +346 -0
  75. data/docbook-xsl/common/pl.xml +1229 -0
  76. data/docbook-xsl/common/pt.xml +1229 -0
  77. data/docbook-xsl/common/pt_br.xml +1229 -0
  78. data/docbook-xsl/common/refentry.xml +781 -0
  79. data/docbook-xsl/common/refentry.xsl +1352 -0
  80. data/docbook-xsl/common/ro.xml +1229 -0
  81. data/docbook-xsl/common/ru.xml +726 -0
  82. data/docbook-xsl/common/sk.xml +1229 -0
  83. data/docbook-xsl/common/sl.xml +1229 -0
  84. data/docbook-xsl/common/sq.xml +1229 -0
  85. data/docbook-xsl/common/sr.xml +720 -0
  86. data/docbook-xsl/common/sr_Latn.xml +679 -0
  87. data/docbook-xsl/common/stripns.xsl +289 -0
  88. data/docbook-xsl/common/subtitles.xsl +155 -0
  89. data/docbook-xsl/common/sv.xml +664 -0
  90. data/docbook-xsl/common/ta.xml +1229 -0
  91. data/docbook-xsl/common/table.xsl +514 -0
  92. data/docbook-xsl/common/targetdatabase.dtd +49 -0
  93. data/docbook-xsl/common/targets.xsl +272 -0
  94. data/docbook-xsl/common/th.xml +1229 -0
  95. data/docbook-xsl/common/titles.xsl +752 -0
  96. data/docbook-xsl/common/tl.xml +1229 -0
  97. data/docbook-xsl/common/tr.xml +666 -0
  98. data/docbook-xsl/common/uk.xml +1229 -0
  99. data/docbook-xsl/common/utility.xml +259 -0
  100. data/docbook-xsl/common/utility.xsl +290 -0
  101. data/docbook-xsl/common/vi.xml +1229 -0
  102. data/docbook-xsl/common/xh.xml +1229 -0
  103. data/docbook-xsl/common/zh_cn.xml +660 -0
  104. data/docbook-xsl/common/zh_tw.xml +1229 -0
  105. data/docbook-xsl/docsrc/authors.xml +10 -0
  106. data/docbook-xsl/docsrc/copyright.xml +18 -0
  107. data/docbook-xsl/docsrc/license.xml +23 -0
  108. data/docbook-xsl/docsrc/page.png +0 -0
  109. data/docbook-xsl/docsrc/reference.css +60 -0
  110. data/docbook-xsl/docsrc/reference.xml +229 -0
  111. data/docbook-xsl/docsrc/reference.xml.included +32701 -0
  112. data/docbook-xsl/docsrc/warranty.xml +11 -0
  113. data/docbook-xsl/epub/README +88 -0
  114. data/docbook-xsl/epub/bin/dbtoepub +65 -0
  115. data/docbook-xsl/epub/bin/lib/docbook.rb +206 -0
  116. data/docbook-xsl/epub/docbook.xsl +1638 -0
  117. data/docbook-xsl/extensions/README.LIBXSLT +52 -0
  118. data/docbook-xsl/extensions/docbook.py +240 -0
  119. data/docbook-xsl/extensions/saxon65.jar +0 -0
  120. data/docbook-xsl/extensions/xalan27.jar +0 -0
  121. data/docbook-xsl/extensions/xslt.py +83 -0
  122. data/docbook-xsl/fo.xsl +239 -0
  123. data/docbook-xsl/fo/admon.xsl +130 -0
  124. data/docbook-xsl/fo/annotations.xsl +18 -0
  125. data/docbook-xsl/fo/autoidx-kimber.xsl +178 -0
  126. data/docbook-xsl/fo/autoidx-kosek.xsl +150 -0
  127. data/docbook-xsl/fo/autoidx-ng.xsl +20 -0
  128. data/docbook-xsl/fo/autoidx.xsl +1310 -0
  129. data/docbook-xsl/fo/autotoc.xsl +892 -0
  130. data/docbook-xsl/fo/axf.xsl +110 -0
  131. data/docbook-xsl/fo/biblio-iso690.xsl +1300 -0
  132. data/docbook-xsl/fo/biblio.xsl +1169 -0
  133. data/docbook-xsl/fo/block.xsl +600 -0
  134. data/docbook-xsl/fo/callout.xsl +231 -0
  135. data/docbook-xsl/fo/component.xsl +811 -0
  136. data/docbook-xsl/fo/division.xsl +611 -0
  137. data/docbook-xsl/fo/docbook.xsl +336 -0
  138. data/docbook-xsl/fo/ebnf.xsl +325 -0
  139. data/docbook-xsl/fo/fo-rtf.xsl +154 -0
  140. data/docbook-xsl/fo/fo.xsl +71 -0
  141. data/docbook-xsl/fo/footnote.xsl +220 -0
  142. data/docbook-xsl/fo/fop.xsl +93 -0
  143. data/docbook-xsl/fo/fop1.xsl +174 -0
  144. data/docbook-xsl/fo/formal.xsl +615 -0
  145. data/docbook-xsl/fo/glossary.xsl +1112 -0
  146. data/docbook-xsl/fo/graphics.xsl +642 -0
  147. data/docbook-xsl/fo/highlight.xsl +75 -0
  148. data/docbook-xsl/fo/htmltbl.xsl +217 -0
  149. data/docbook-xsl/fo/index.xsl +481 -0
  150. data/docbook-xsl/fo/info.xsl +34 -0
  151. data/docbook-xsl/fo/inline.xsl +1275 -0
  152. data/docbook-xsl/fo/keywords.xsl +21 -0
  153. data/docbook-xsl/fo/lists.xsl +1260 -0
  154. data/docbook-xsl/fo/math.xsl +140 -0
  155. data/docbook-xsl/fo/pagesetup.xsl +2314 -0
  156. data/docbook-xsl/fo/param.xml +11823 -0
  157. data/docbook-xsl/fo/param.xsl +899 -0
  158. data/docbook-xsl/fo/passivetex.xsl +36 -0
  159. data/docbook-xsl/fo/pdf2index +140 -0
  160. data/docbook-xsl/fo/pi.xml +969 -0
  161. data/docbook-xsl/fo/pi.xsl +1052 -0
  162. data/docbook-xsl/fo/profile-docbook.xsl +289 -0
  163. data/docbook-xsl/fo/ptc.xsl +77 -0
  164. data/docbook-xsl/fo/qandaset.xsl +393 -0
  165. data/docbook-xsl/fo/refentry.xsl +637 -0
  166. data/docbook-xsl/fo/sections.xsl +764 -0
  167. data/docbook-xsl/fo/spaces.xsl +274 -0
  168. data/docbook-xsl/fo/synop.xsl +1002 -0
  169. data/docbook-xsl/fo/table.xml +135 -0
  170. data/docbook-xsl/fo/table.xsl +1552 -0
  171. data/docbook-xsl/fo/task.xsl +91 -0
  172. data/docbook-xsl/fo/titlepage.templates.xml +1311 -0
  173. data/docbook-xsl/fo/titlepage.templates.xsl +5094 -0
  174. data/docbook-xsl/fo/titlepage.xsl +750 -0
  175. data/docbook-xsl/fo/toc.xsl +274 -0
  176. data/docbook-xsl/fo/verbatim.xsl +417 -0
  177. data/docbook-xsl/fo/xep.xsl +180 -0
  178. data/docbook-xsl/fo/xref.xsl +1486 -0
  179. data/docbook-xsl/fop.xconf +22 -0
  180. data/docbook-xsl/highlighting/c-hl.xml +101 -0
  181. data/docbook-xsl/highlighting/common.xsl +120 -0
  182. data/docbook-xsl/highlighting/cpp-hl.xml +150 -0
  183. data/docbook-xsl/highlighting/csharp-hl.xml +187 -0
  184. data/docbook-xsl/highlighting/delphi-hl.xml +200 -0
  185. data/docbook-xsl/highlighting/ini-hl.xml +45 -0
  186. data/docbook-xsl/highlighting/java-hl.xml +117 -0
  187. data/docbook-xsl/highlighting/javascript-hl.xml +147 -0
  188. data/docbook-xsl/highlighting/m2-hl.xml +90 -0
  189. data/docbook-xsl/highlighting/myxml-hl.xml +116 -0
  190. data/docbook-xsl/highlighting/perl-hl.xml +120 -0
  191. data/docbook-xsl/highlighting/php-hl.xml +149 -0
  192. data/docbook-xsl/highlighting/python-hl.xml +100 -0
  193. data/docbook-xsl/highlighting/ruby-hl.xml +109 -0
  194. data/docbook-xsl/highlighting/tcl-hl.xml +180 -0
  195. data/docbook-xsl/highlighting/xslthl-config.xml +46 -0
  196. data/docbook-xsl/html/admon.xsl +132 -0
  197. data/docbook-xsl/html/annotations.xsl +169 -0
  198. data/docbook-xsl/html/autoidx-kimber.xsl +168 -0
  199. data/docbook-xsl/html/autoidx-kosek.xsl +125 -0
  200. data/docbook-xsl/html/autoidx-ng.xsl +20 -0
  201. data/docbook-xsl/html/autoidx.xsl +645 -0
  202. data/docbook-xsl/html/autotoc.xsl +675 -0
  203. data/docbook-xsl/html/biblio-iso690.xsl +1300 -0
  204. data/docbook-xsl/html/biblio.xsl +1247 -0
  205. data/docbook-xsl/html/block.xsl +434 -0
  206. data/docbook-xsl/html/callout.xsl +201 -0
  207. data/docbook-xsl/html/changebars.xsl +121 -0
  208. data/docbook-xsl/html/chunk-changebars.xsl +99 -0
  209. data/docbook-xsl/html/chunk-code.xsl +670 -0
  210. data/docbook-xsl/html/chunk-common.xsl +1911 -0
  211. data/docbook-xsl/html/chunk.xsl +52 -0
  212. data/docbook-xsl/html/chunker.xsl +439 -0
  213. data/docbook-xsl/html/chunkfast.xsl +72 -0
  214. data/docbook-xsl/html/chunktoc.xsl +468 -0
  215. data/docbook-xsl/html/component.xsl +403 -0
  216. data/docbook-xsl/html/division.xsl +228 -0
  217. data/docbook-xsl/html/docbook.xsl +483 -0
  218. data/docbook-xsl/html/ebnf.xsl +329 -0
  219. data/docbook-xsl/html/footnote.xsl +308 -0
  220. data/docbook-xsl/html/formal.xsl +401 -0
  221. data/docbook-xsl/html/glossary.xsl +474 -0
  222. data/docbook-xsl/html/graphics.xsl +1515 -0
  223. data/docbook-xsl/html/highlight.xsl +71 -0
  224. data/docbook-xsl/html/html-rtf.xsl +336 -0
  225. data/docbook-xsl/html/html.xsl +268 -0
  226. data/docbook-xsl/html/htmltbl.xsl +56 -0
  227. data/docbook-xsl/html/index.xsl +229 -0
  228. data/docbook-xsl/html/info.xsl +43 -0
  229. data/docbook-xsl/html/inline.xsl +1497 -0
  230. data/docbook-xsl/html/keywords.xsl +35 -0
  231. data/docbook-xsl/html/lists.xsl +1143 -0
  232. data/docbook-xsl/html/maketoc.xsl +86 -0
  233. data/docbook-xsl/html/manifest.xsl +22 -0
  234. data/docbook-xsl/html/math.xsl +270 -0
  235. data/docbook-xsl/html/oldchunker.xsl +202 -0
  236. data/docbook-xsl/html/onechunk.xsl +37 -0
  237. data/docbook-xsl/html/param.xml +10397 -0
  238. data/docbook-xsl/html/param.xsl +422 -0
  239. data/docbook-xsl/html/pi.xml +1113 -0
  240. data/docbook-xsl/html/pi.xsl +1263 -0
  241. data/docbook-xsl/html/profile-chunk-code.xsl +609 -0
  242. data/docbook-xsl/html/profile-chunk.xsl +52 -0
  243. data/docbook-xsl/html/profile-docbook.xsl +414 -0
  244. data/docbook-xsl/html/profile-onechunk.xsl +37 -0
  245. data/docbook-xsl/html/qandaset.xsl +389 -0
  246. data/docbook-xsl/html/refentry.xsl +309 -0
  247. data/docbook-xsl/html/sections.xsl +628 -0
  248. data/docbook-xsl/html/synop.xsl +1549 -0
  249. data/docbook-xsl/html/table.xsl +1130 -0
  250. data/docbook-xsl/html/task.xsl +76 -0
  251. data/docbook-xsl/html/titlepage.templates.xml +662 -0
  252. data/docbook-xsl/html/titlepage.templates.xsl +3622 -0
  253. data/docbook-xsl/html/titlepage.xsl +1031 -0
  254. data/docbook-xsl/html/toc.xsl +169 -0
  255. data/docbook-xsl/html/verbatim.xsl +376 -0
  256. data/docbook-xsl/html/xref.xsl +1348 -0
  257. data/docbook-xsl/htmlhelp/htmlhelp-common.xsl +1113 -0
  258. data/docbook-xsl/htmlhelp/htmlhelp.xsl +22 -0
  259. data/docbook-xsl/htmlhelp/profile-htmlhelp-common.xsl +1076 -0
  260. data/docbook-xsl/htmlhelp/profile-htmlhelp.xsl +22 -0
  261. data/docbook-xsl/images/annot-close.png +0 -0
  262. data/docbook-xsl/images/annot-open.png +0 -0
  263. data/docbook-xsl/images/blank.png +0 -0
  264. data/docbook-xsl/images/callouts/1.gif +0 -0
  265. data/docbook-xsl/images/callouts/1.png +0 -0
  266. data/docbook-xsl/images/callouts/1.svg +15 -0
  267. data/docbook-xsl/images/callouts/10.gif +0 -0
  268. data/docbook-xsl/images/callouts/10.png +0 -0
  269. data/docbook-xsl/images/callouts/10.svg +18 -0
  270. data/docbook-xsl/images/callouts/11.gif +0 -0
  271. data/docbook-xsl/images/callouts/11.png +0 -0
  272. data/docbook-xsl/images/callouts/11.svg +16 -0
  273. data/docbook-xsl/images/callouts/12.gif +0 -0
  274. data/docbook-xsl/images/callouts/12.png +0 -0
  275. data/docbook-xsl/images/callouts/12.svg +18 -0
  276. data/docbook-xsl/images/callouts/13.gif +0 -0
  277. data/docbook-xsl/images/callouts/13.png +0 -0
  278. data/docbook-xsl/images/callouts/13.svg +20 -0
  279. data/docbook-xsl/images/callouts/14.gif +0 -0
  280. data/docbook-xsl/images/callouts/14.png +0 -0
  281. data/docbook-xsl/images/callouts/14.svg +17 -0
  282. data/docbook-xsl/images/callouts/15.gif +0 -0
  283. data/docbook-xsl/images/callouts/15.png +0 -0
  284. data/docbook-xsl/images/callouts/15.svg +19 -0
  285. data/docbook-xsl/images/callouts/16.svg +20 -0
  286. data/docbook-xsl/images/callouts/17.svg +17 -0
  287. data/docbook-xsl/images/callouts/18.svg +21 -0
  288. data/docbook-xsl/images/callouts/19.svg +20 -0
  289. data/docbook-xsl/images/callouts/2.gif +0 -0
  290. data/docbook-xsl/images/callouts/2.png +0 -0
  291. data/docbook-xsl/images/callouts/2.svg +17 -0
  292. data/docbook-xsl/images/callouts/20.svg +20 -0
  293. data/docbook-xsl/images/callouts/21.svg +18 -0
  294. data/docbook-xsl/images/callouts/22.svg +20 -0
  295. data/docbook-xsl/images/callouts/23.svg +22 -0
  296. data/docbook-xsl/images/callouts/24.svg +19 -0
  297. data/docbook-xsl/images/callouts/25.svg +21 -0
  298. data/docbook-xsl/images/callouts/26.svg +22 -0
  299. data/docbook-xsl/images/callouts/27.svg +19 -0
  300. data/docbook-xsl/images/callouts/28.svg +23 -0
  301. data/docbook-xsl/images/callouts/29.svg +22 -0
  302. data/docbook-xsl/images/callouts/3.gif +0 -0
  303. data/docbook-xsl/images/callouts/3.png +0 -0
  304. data/docbook-xsl/images/callouts/3.svg +19 -0
  305. data/docbook-xsl/images/callouts/30.svg +22 -0
  306. data/docbook-xsl/images/callouts/4.gif +0 -0
  307. data/docbook-xsl/images/callouts/4.png +0 -0
  308. data/docbook-xsl/images/callouts/4.svg +16 -0
  309. data/docbook-xsl/images/callouts/5.gif +0 -0
  310. data/docbook-xsl/images/callouts/5.png +0 -0
  311. data/docbook-xsl/images/callouts/5.svg +18 -0
  312. data/docbook-xsl/images/callouts/6.gif +0 -0
  313. data/docbook-xsl/images/callouts/6.png +0 -0
  314. data/docbook-xsl/images/callouts/6.svg +19 -0
  315. data/docbook-xsl/images/callouts/7.gif +0 -0
  316. data/docbook-xsl/images/callouts/7.png +0 -0
  317. data/docbook-xsl/images/callouts/7.svg +16 -0
  318. data/docbook-xsl/images/callouts/8.gif +0 -0
  319. data/docbook-xsl/images/callouts/8.png +0 -0
  320. data/docbook-xsl/images/callouts/8.svg +20 -0
  321. data/docbook-xsl/images/callouts/9.gif +0 -0
  322. data/docbook-xsl/images/callouts/9.png +0 -0
  323. data/docbook-xsl/images/callouts/9.svg +19 -0
  324. data/docbook-xsl/images/caution.gif +0 -0
  325. data/docbook-xsl/images/caution.png +0 -0
  326. data/docbook-xsl/images/caution.svg +25 -0
  327. data/docbook-xsl/images/caution.tif +0 -0
  328. data/docbook-xsl/images/draft.png +0 -0
  329. data/docbook-xsl/images/home.gif +0 -0
  330. data/docbook-xsl/images/home.png +0 -0
  331. data/docbook-xsl/images/home.svg +26 -0
  332. data/docbook-xsl/images/important.gif +0 -0
  333. data/docbook-xsl/images/important.png +0 -0
  334. data/docbook-xsl/images/important.svg +25 -0
  335. data/docbook-xsl/images/important.tif +0 -0
  336. data/docbook-xsl/images/next.gif +0 -0
  337. data/docbook-xsl/images/next.png +0 -0
  338. data/docbook-xsl/images/next.svg +19 -0
  339. data/docbook-xsl/images/note.gif +0 -0
  340. data/docbook-xsl/images/note.png +0 -0
  341. data/docbook-xsl/images/note.svg +33 -0
  342. data/docbook-xsl/images/note.tif +0 -0
  343. data/docbook-xsl/images/prev.gif +0 -0
  344. data/docbook-xsl/images/prev.png +0 -0
  345. data/docbook-xsl/images/prev.svg +19 -0
  346. data/docbook-xsl/images/tip.gif +0 -0
  347. data/docbook-xsl/images/tip.png +0 -0
  348. data/docbook-xsl/images/tip.svg +31 -0
  349. data/docbook-xsl/images/tip.tif +0 -0
  350. data/docbook-xsl/images/toc-blank.png +0 -0
  351. data/docbook-xsl/images/toc-minus.png +0 -0
  352. data/docbook-xsl/images/toc-plus.png +0 -0
  353. data/docbook-xsl/images/up.gif +0 -0
  354. data/docbook-xsl/images/up.png +0 -0
  355. data/docbook-xsl/images/up.svg +19 -0
  356. data/docbook-xsl/images/warning.gif +0 -0
  357. data/docbook-xsl/images/warning.png +0 -0
  358. data/docbook-xsl/images/warning.svg +23 -0
  359. data/docbook-xsl/images/warning.tif +0 -0
  360. data/docbook-xsl/javahelp/javahelp.xsl +628 -0
  361. data/docbook-xsl/javahelp/profile-javahelp.xsl +550 -0
  362. data/docbook-xsl/lib/lib.xsl +480 -0
  363. data/docbook-xsl/manpages/ChangeLog.20020917 +195 -0
  364. data/docbook-xsl/manpages/block.xsl +393 -0
  365. data/docbook-xsl/manpages/charmap.groff.xsl +6013 -0
  366. data/docbook-xsl/manpages/docbook.xsl +302 -0
  367. data/docbook-xsl/manpages/endnotes.xsl +584 -0
  368. data/docbook-xsl/manpages/html-synop.xsl +1562 -0
  369. data/docbook-xsl/manpages/info.xsl +800 -0
  370. data/docbook-xsl/manpages/inline.xsl +219 -0
  371. data/docbook-xsl/manpages/lists.xsl +603 -0
  372. data/docbook-xsl/manpages/other.xsl +869 -0
  373. data/docbook-xsl/manpages/param.xml +3162 -0
  374. data/docbook-xsl/manpages/param.xsl +192 -0
  375. data/docbook-xsl/manpages/pi.xml +70 -0
  376. data/docbook-xsl/manpages/pi.xsl +79 -0
  377. data/docbook-xsl/manpages/profile-docbook.xsl +271 -0
  378. data/docbook-xsl/manpages/refentry.xsl +310 -0
  379. data/docbook-xsl/manpages/synop.xsl +432 -0
  380. data/docbook-xsl/manpages/table.xsl +633 -0
  381. data/docbook-xsl/manpages/utility.xsl +534 -0
  382. data/docbook-xsl/params/abstract.notitle.enabled.xml +22 -0
  383. data/docbook-xsl/params/abstract.properties.xml +32 -0
  384. data/docbook-xsl/params/abstract.title.properties.xml +39 -0
  385. data/docbook-xsl/params/active.toc.xml +29 -0
  386. data/docbook-xsl/params/ade.extensions.xml +32 -0
  387. data/docbook-xsl/params/admon.graphics.extension.xml +27 -0
  388. data/docbook-xsl/params/admon.graphics.path.xml +27 -0
  389. data/docbook-xsl/params/admon.graphics.xml +29 -0
  390. data/docbook-xsl/params/admon.style.xml +30 -0
  391. data/docbook-xsl/params/admon.textlabel.xml +32 -0
  392. data/docbook-xsl/params/admonition.properties.xml +25 -0
  393. data/docbook-xsl/params/admonition.title.properties.xml +32 -0
  394. data/docbook-xsl/params/alignment.xml +31 -0
  395. data/docbook-xsl/params/annotate.toc.xml +28 -0
  396. data/docbook-xsl/params/annotation.css.xml +71 -0
  397. data/docbook-xsl/params/annotation.graphic.close.xml +31 -0
  398. data/docbook-xsl/params/annotation.graphic.open.xml +28 -0
  399. data/docbook-xsl/params/annotation.js.xml +33 -0
  400. data/docbook-xsl/params/annotation.support.xml +29 -0
  401. data/docbook-xsl/params/appendix.autolabel.xml +73 -0
  402. data/docbook-xsl/params/arbortext.extensions.xml +30 -0
  403. data/docbook-xsl/params/article.appendix.title.properties.xml +33 -0
  404. data/docbook-xsl/params/author.othername.in.middle.xml +31 -0
  405. data/docbook-xsl/params/autolayout-file.xml +29 -0
  406. data/docbook-xsl/params/autotoc.label.in.hyperlink.xml +29 -0
  407. data/docbook-xsl/params/autotoc.label.separator.xml +27 -0
  408. data/docbook-xsl/params/axf.extensions.xml +33 -0
  409. data/docbook-xsl/params/banner.before.navigation.xml +25 -0
  410. data/docbook-xsl/params/base.dir.xml +29 -0
  411. data/docbook-xsl/params/biblioentry.item.separator.xml +26 -0
  412. data/docbook-xsl/params/biblioentry.properties.xml +28 -0
  413. data/docbook-xsl/params/bibliography.collection.xml +104 -0
  414. data/docbook-xsl/params/bibliography.numbered.xml +27 -0
  415. data/docbook-xsl/params/bibliography.style.xml +35 -0
  416. data/docbook-xsl/params/blockquote.properties.xml +34 -0
  417. data/docbook-xsl/params/blurb.on.titlepage.enabled.xml +31 -0
  418. data/docbook-xsl/params/body.attributes.xml +31 -0
  419. data/docbook-xsl/params/body.bg.color.xml +28 -0
  420. data/docbook-xsl/params/body.end.indent.xml +37 -0
  421. data/docbook-xsl/params/body.font.family.xml +32 -0
  422. data/docbook-xsl/params/body.font.master.xml +30 -0
  423. data/docbook-xsl/params/body.font.size.xml +31 -0
  424. data/docbook-xsl/params/body.margin.bottom.xml +29 -0
  425. data/docbook-xsl/params/body.margin.top.xml +28 -0
  426. data/docbook-xsl/params/body.start.indent.xml +62 -0
  427. data/docbook-xsl/params/bridgehead.in.toc.xml +28 -0
  428. data/docbook-xsl/params/bullet.image.xml +28 -0
  429. data/docbook-xsl/params/callout.defaultcolumn.xml +30 -0
  430. data/docbook-xsl/params/callout.graphics.extension.xml +33 -0
  431. data/docbook-xsl/params/callout.graphics.number.limit.xml +34 -0
  432. data/docbook-xsl/params/callout.graphics.path.xml +31 -0
  433. data/docbook-xsl/params/callout.graphics.xml +30 -0
  434. data/docbook-xsl/params/callout.icon.size.xml +28 -0
  435. data/docbook-xsl/params/callout.list.table.xml +32 -0
  436. data/docbook-xsl/params/callout.unicode.font.xml +29 -0
  437. data/docbook-xsl/params/callout.unicode.number.limit.xml +35 -0
  438. data/docbook-xsl/params/callout.unicode.start.character.xml +33 -0
  439. data/docbook-xsl/params/callout.unicode.xml +26 -0
  440. data/docbook-xsl/params/callouts.extension.xml +30 -0
  441. data/docbook-xsl/params/chapter.autolabel.xml +71 -0
  442. data/docbook-xsl/params/chunk.append.xml +30 -0
  443. data/docbook-xsl/params/chunk.first.sections.xml +31 -0
  444. data/docbook-xsl/params/chunk.quietly.xml +30 -0
  445. data/docbook-xsl/params/chunk.section.depth.xml +27 -0
  446. data/docbook-xsl/params/chunk.sections.xml +30 -0
  447. data/docbook-xsl/params/chunk.separate.lots.xml +36 -0
  448. data/docbook-xsl/params/chunk.toc.xml +30 -0
  449. data/docbook-xsl/params/chunk.tocs.and.lots.has.title.xml +28 -0
  450. data/docbook-xsl/params/chunk.tocs.and.lots.xml +32 -0
  451. data/docbook-xsl/params/chunker.output.cdata-section-elements.xml +30 -0
  452. data/docbook-xsl/params/chunker.output.doctype-public.xml +31 -0
  453. data/docbook-xsl/params/chunker.output.doctype-system.xml +31 -0
  454. data/docbook-xsl/params/chunker.output.encoding.xml +31 -0
  455. data/docbook-xsl/params/chunker.output.indent.xml +30 -0
  456. data/docbook-xsl/params/chunker.output.media-type.xml +35 -0
  457. data/docbook-xsl/params/chunker.output.method.xml +32 -0
  458. data/docbook-xsl/params/chunker.output.omit-xml-declaration.xml +30 -0
  459. data/docbook-xsl/params/chunker.output.standalone.xml +31 -0
  460. data/docbook-xsl/params/citerefentry.link.xml +29 -0
  461. data/docbook-xsl/params/collect.xref.targets.xml +33 -0
  462. data/docbook-xsl/params/column.count.back.xml +27 -0
  463. data/docbook-xsl/params/column.count.body.xml +27 -0
  464. data/docbook-xsl/params/column.count.front.xml +27 -0
  465. data/docbook-xsl/params/column.count.index.xml +27 -0
  466. data/docbook-xsl/params/column.count.lot.xml +28 -0
  467. data/docbook-xsl/params/column.count.titlepage.xml +27 -0
  468. data/docbook-xsl/params/column.gap.back.xml +28 -0
  469. data/docbook-xsl/params/column.gap.body.xml +28 -0
  470. data/docbook-xsl/params/column.gap.front.xml +28 -0
  471. data/docbook-xsl/params/column.gap.index.xml +28 -0
  472. data/docbook-xsl/params/column.gap.lot.xml +28 -0
  473. data/docbook-xsl/params/column.gap.titlepage.xml +29 -0
  474. data/docbook-xsl/params/compact.list.item.spacing.xml +28 -0
  475. data/docbook-xsl/params/component.label.includes.part.label.xml +39 -0
  476. data/docbook-xsl/params/component.title.properties.xml +40 -0
  477. data/docbook-xsl/params/component.titlepage.properties.xml +33 -0
  478. data/docbook-xsl/params/contrib.inline.enabled.xml +26 -0
  479. data/docbook-xsl/params/crop.mark.bleed.xml +28 -0
  480. data/docbook-xsl/params/crop.mark.offset.xml +28 -0
  481. data/docbook-xsl/params/crop.mark.width.xml +28 -0
  482. data/docbook-xsl/params/crop.marks.xml +28 -0
  483. data/docbook-xsl/params/css.decoration.xml +33 -0
  484. data/docbook-xsl/params/css.stylesheet.dir.xml +33 -0
  485. data/docbook-xsl/params/css.stylesheet.xml +29 -0
  486. data/docbook-xsl/params/current.docid.xml +27 -0
  487. data/docbook-xsl/params/currentpage.marker.xml +25 -0
  488. data/docbook-xsl/params/default.float.class.xml +34 -0
  489. data/docbook-xsl/params/default.image.width.xml +31 -0
  490. data/docbook-xsl/params/default.table.frame.xml +28 -0
  491. data/docbook-xsl/params/default.table.width.xml +26 -0
  492. data/docbook-xsl/params/default.units.xml +37 -0
  493. data/docbook-xsl/params/dingbat.font.family.xml +33 -0
  494. data/docbook-xsl/params/double.sided.xml +31 -0
  495. data/docbook-xsl/params/draft.mode.xml +36 -0
  496. data/docbook-xsl/params/draft.watermark.image.xml +27 -0
  497. data/docbook-xsl/params/dry-run.xml +27 -0
  498. data/docbook-xsl/params/dynamic.toc.xml +29 -0
  499. data/docbook-xsl/params/ebnf.assignment.xml +39 -0
  500. data/docbook-xsl/params/ebnf.statement.terminator.xml +32 -0
  501. data/docbook-xsl/params/ebnf.table.bgcolor.xml +30 -0
  502. data/docbook-xsl/params/ebnf.table.border.xml +26 -0
  503. data/docbook-xsl/params/eclipse.autolabel.xml +28 -0
  504. data/docbook-xsl/params/eclipse.plugin.id.xml +28 -0
  505. data/docbook-xsl/params/eclipse.plugin.name.xml +27 -0
  506. data/docbook-xsl/params/eclipse.plugin.provider.xml +27 -0
  507. data/docbook-xsl/params/editedby.enabled.xml +27 -0
  508. data/docbook-xsl/params/email.delimiters.enabled.xml +34 -0
  509. data/docbook-xsl/params/email.mailto.enabled.xml +29 -0
  510. data/docbook-xsl/params/emphasis.propagates.style.xml +26 -0
  511. data/docbook-xsl/params/entry.propagates.style.xml +30 -0
  512. data/docbook-xsl/params/epub.autolabel.xml +28 -0
  513. data/docbook-xsl/params/equation.properties.xml +27 -0
  514. data/docbook-xsl/params/example.properties.xml +27 -0
  515. data/docbook-xsl/params/feedback.href.xml +28 -0
  516. data/docbook-xsl/params/feedback.link.text.xml +28 -0
  517. data/docbook-xsl/params/feedback.with.ids.xml +27 -0
  518. data/docbook-xsl/params/figure.properties.xml +27 -0
  519. data/docbook-xsl/params/filename-prefix.xml +28 -0
  520. data/docbook-xsl/params/firstterm.only.link.xml +29 -0
  521. data/docbook-xsl/params/foil.properties.xml +37 -0
  522. data/docbook-xsl/params/foil.subtitle.properties.xml +36 -0
  523. data/docbook-xsl/params/foil.title.master.xml +29 -0
  524. data/docbook-xsl/params/foil.title.size.xml +32 -0
  525. data/docbook-xsl/params/foilgroup.properties.xml +31 -0
  526. data/docbook-xsl/params/foilgroup.toc.xml +29 -0
  527. data/docbook-xsl/params/footer.column.widths.xml +74 -0
  528. data/docbook-xsl/params/footer.content.properties.xml +34 -0
  529. data/docbook-xsl/params/footer.hr.xml +26 -0
  530. data/docbook-xsl/params/footer.rule.xml +27 -0
  531. data/docbook-xsl/params/footer.table.height.xml +32 -0
  532. data/docbook-xsl/params/footer.table.properties.xml +30 -0
  533. data/docbook-xsl/params/footers.on.blank.pages.xml +27 -0
  534. data/docbook-xsl/params/footnote.font.size.xml +28 -0
  535. data/docbook-xsl/params/footnote.mark.properties.xml +41 -0
  536. data/docbook-xsl/params/footnote.number.format.xml +33 -0
  537. data/docbook-xsl/params/footnote.number.symbols.xml +39 -0
  538. data/docbook-xsl/params/footnote.properties.xml +43 -0
  539. data/docbook-xsl/params/footnote.sep.leader.properties.xml +39 -0
  540. data/docbook-xsl/params/fop.extensions.xml +36 -0
  541. data/docbook-xsl/params/fop1.extensions.xml +34 -0
  542. data/docbook-xsl/params/formal.object.properties.xml +36 -0
  543. data/docbook-xsl/params/formal.procedures.xml +28 -0
  544. data/docbook-xsl/params/formal.title.placement.xml +41 -0
  545. data/docbook-xsl/params/formal.title.properties.xml +34 -0
  546. data/docbook-xsl/params/funcsynopsis.decoration.xml +30 -0
  547. data/docbook-xsl/params/funcsynopsis.style.xml +31 -0
  548. data/docbook-xsl/params/function.parens.xml +29 -0
  549. data/docbook-xsl/params/generate.id.attributes.xml +59 -0
  550. data/docbook-xsl/params/generate.index.xml +25 -0
  551. data/docbook-xsl/params/generate.legalnotice.link.xml +72 -0
  552. data/docbook-xsl/params/generate.manifest.xml +27 -0
  553. data/docbook-xsl/params/generate.meta.abstract.xml +29 -0
  554. data/docbook-xsl/params/generate.revhistory.link.xml +50 -0
  555. data/docbook-xsl/params/generate.section.toc.level.xml +35 -0
  556. data/docbook-xsl/params/generate.toc.xml +108 -0
  557. data/docbook-xsl/params/glossary.as.blocks.xml +38 -0
  558. data/docbook-xsl/params/glossary.collection.xml +252 -0
  559. data/docbook-xsl/params/glossary.sort.xml +32 -0
  560. data/docbook-xsl/params/glossentry.show.acronym.xml +37 -0
  561. data/docbook-xsl/params/glosslist.as.blocks.xml +27 -0
  562. data/docbook-xsl/params/glossterm.auto.link.xml +33 -0
  563. data/docbook-xsl/params/glossterm.separation.xml +28 -0
  564. data/docbook-xsl/params/glossterm.width.xml +28 -0
  565. data/docbook-xsl/params/graphic.default.extension.xml +29 -0
  566. data/docbook-xsl/params/graphical.admonition.properties.xml +42 -0
  567. data/docbook-xsl/params/graphics.dir.xml +33 -0
  568. data/docbook-xsl/params/graphicsize.extension.xml +30 -0
  569. data/docbook-xsl/params/graphicsize.use.img.src.path.xml +30 -0
  570. data/docbook-xsl/params/header.column.widths.xml +74 -0
  571. data/docbook-xsl/params/header.content.properties.xml +34 -0
  572. data/docbook-xsl/params/header.hr.xml +26 -0
  573. data/docbook-xsl/params/header.rule.xml +27 -0
  574. data/docbook-xsl/params/header.table.height.xml +32 -0
  575. data/docbook-xsl/params/header.table.properties.xml +30 -0
  576. data/docbook-xsl/params/headers.on.blank.pages.xml +27 -0
  577. data/docbook-xsl/params/hidetoc.image.xml +29 -0
  578. data/docbook-xsl/params/highlight.default.language.xml +27 -0
  579. data/docbook-xsl/params/highlight.source.xml +47 -0
  580. data/docbook-xsl/params/highlight.xslthl.config.xml +27 -0
  581. data/docbook-xsl/params/home.image.xml +27 -0
  582. data/docbook-xsl/params/html.append.xml +30 -0
  583. data/docbook-xsl/params/html.base.xml +30 -0
  584. data/docbook-xsl/params/html.cellpadding.xml +29 -0
  585. data/docbook-xsl/params/html.cellspacing.xml +29 -0
  586. data/docbook-xsl/params/html.cleanup.xml +34 -0
  587. data/docbook-xsl/params/html.ext.xml +29 -0
  588. data/docbook-xsl/params/html.extra.head.links.xml +31 -0
  589. data/docbook-xsl/params/html.head.legalnotice.link.multiple.xml +44 -0
  590. data/docbook-xsl/params/html.head.legalnotice.link.types.xml +75 -0
  591. data/docbook-xsl/params/html.longdesc.link.xml +39 -0
  592. data/docbook-xsl/params/html.longdesc.xml +28 -0
  593. data/docbook-xsl/params/html.stylesheet.type.xml +26 -0
  594. data/docbook-xsl/params/html.stylesheet.xml +36 -0
  595. data/docbook-xsl/params/htmlhelp.alias.file.xml +27 -0
  596. data/docbook-xsl/params/htmlhelp.autolabel.xml +28 -0
  597. data/docbook-xsl/params/htmlhelp.button.back.xml +27 -0
  598. data/docbook-xsl/params/htmlhelp.button.forward.xml +27 -0
  599. data/docbook-xsl/params/htmlhelp.button.hideshow.xml +27 -0
  600. data/docbook-xsl/params/htmlhelp.button.home.url.xml +27 -0
  601. data/docbook-xsl/params/htmlhelp.button.home.xml +27 -0
  602. data/docbook-xsl/params/htmlhelp.button.jump1.title.xml +27 -0
  603. data/docbook-xsl/params/htmlhelp.button.jump1.url.xml +27 -0
  604. data/docbook-xsl/params/htmlhelp.button.jump1.xml +23 -0
  605. data/docbook-xsl/params/htmlhelp.button.jump2.title.xml +27 -0
  606. data/docbook-xsl/params/htmlhelp.button.jump2.url.xml +27 -0
  607. data/docbook-xsl/params/htmlhelp.button.jump2.xml +27 -0
  608. data/docbook-xsl/params/htmlhelp.button.locate.xml +28 -0
  609. data/docbook-xsl/params/htmlhelp.button.next.xml +27 -0
  610. data/docbook-xsl/params/htmlhelp.button.options.xml +28 -0
  611. data/docbook-xsl/params/htmlhelp.button.prev.xml +28 -0
  612. data/docbook-xsl/params/htmlhelp.button.print.xml +28 -0
  613. data/docbook-xsl/params/htmlhelp.button.refresh.xml +27 -0
  614. data/docbook-xsl/params/htmlhelp.button.stop.xml +28 -0
  615. data/docbook-xsl/params/htmlhelp.button.zoom.xml +28 -0
  616. data/docbook-xsl/params/htmlhelp.chm.xml +27 -0
  617. data/docbook-xsl/params/htmlhelp.default.topic.xml +37 -0
  618. data/docbook-xsl/params/htmlhelp.display.progress.xml +28 -0
  619. data/docbook-xsl/params/htmlhelp.encoding.xml +28 -0
  620. data/docbook-xsl/params/htmlhelp.enhanced.decompilation.xml +27 -0
  621. data/docbook-xsl/params/htmlhelp.enumerate.images.xml +28 -0
  622. data/docbook-xsl/params/htmlhelp.force.map.and.alias.xml +26 -0
  623. data/docbook-xsl/params/htmlhelp.hhc.binary.xml +29 -0
  624. data/docbook-xsl/params/htmlhelp.hhc.folders.instead.books.xml +33 -0
  625. data/docbook-xsl/params/htmlhelp.hhc.section.depth.xml +27 -0
  626. data/docbook-xsl/params/htmlhelp.hhc.show.root.xml +29 -0
  627. data/docbook-xsl/params/htmlhelp.hhc.width.xml +28 -0
  628. data/docbook-xsl/params/htmlhelp.hhc.xml +27 -0
  629. data/docbook-xsl/params/htmlhelp.hhk.xml +27 -0
  630. data/docbook-xsl/params/htmlhelp.hhp.tail.xml +28 -0
  631. data/docbook-xsl/params/htmlhelp.hhp.window.xml +28 -0
  632. data/docbook-xsl/params/htmlhelp.hhp.windows.xml +29 -0
  633. data/docbook-xsl/params/htmlhelp.hhp.xml +28 -0
  634. data/docbook-xsl/params/htmlhelp.map.file.xml +25 -0
  635. data/docbook-xsl/params/htmlhelp.only.xml +32 -0
  636. data/docbook-xsl/params/htmlhelp.remember.window.position.xml +27 -0
  637. data/docbook-xsl/params/htmlhelp.show.advanced.search.xml +28 -0
  638. data/docbook-xsl/params/htmlhelp.show.favorities.xml +28 -0
  639. data/docbook-xsl/params/htmlhelp.show.menu.xml +28 -0
  640. data/docbook-xsl/params/htmlhelp.show.toolbar.text.xml +28 -0
  641. data/docbook-xsl/params/htmlhelp.title.xml +28 -0
  642. data/docbook-xsl/params/htmlhelp.use.hhk.xml +28 -0
  643. data/docbook-xsl/params/htmlhelp.window.geometry.xml +30 -0
  644. data/docbook-xsl/params/hyphenate.verbatim.characters.xml +30 -0
  645. data/docbook-xsl/params/hyphenate.verbatim.xml +45 -0
  646. data/docbook-xsl/params/hyphenate.xml +29 -0
  647. data/docbook-xsl/params/id.warnings.xml +25 -0
  648. data/docbook-xsl/params/ignore.image.scaling.xml +28 -0
  649. data/docbook-xsl/params/img.src.path.xml +40 -0
  650. data/docbook-xsl/params/index.div.title.properties.xml +39 -0
  651. data/docbook-xsl/params/index.entry.properties.xml +33 -0
  652. data/docbook-xsl/params/index.method.xml +162 -0
  653. data/docbook-xsl/params/index.number.separator.xml +54 -0
  654. data/docbook-xsl/params/index.on.role.xml +48 -0
  655. data/docbook-xsl/params/index.on.type.xml +52 -0
  656. data/docbook-xsl/params/index.page.number.properties.xml +31 -0
  657. data/docbook-xsl/params/index.prefer.titleabbrev.xml +29 -0
  658. data/docbook-xsl/params/index.preferred.page.properties.xml +32 -0
  659. data/docbook-xsl/params/index.range.separator.xml +57 -0
  660. data/docbook-xsl/params/index.term.separator.xml +54 -0
  661. data/docbook-xsl/params/informal.object.properties.xml +29 -0
  662. data/docbook-xsl/params/informalequation.properties.xml +27 -0
  663. data/docbook-xsl/params/informalexample.properties.xml +27 -0
  664. data/docbook-xsl/params/informalfigure.properties.xml +27 -0
  665. data/docbook-xsl/params/informaltable.properties.xml +32 -0
  666. data/docbook-xsl/params/inherit.keywords.xml +31 -0
  667. data/docbook-xsl/params/insert.link.page.number.xml +69 -0
  668. data/docbook-xsl/params/insert.olink.page.number.xml +83 -0
  669. data/docbook-xsl/params/insert.olink.pdf.frag.xml +68 -0
  670. data/docbook-xsl/params/insert.xref.page.number.xml +60 -0
  671. data/docbook-xsl/params/itemizedlist.label.properties.xml +26 -0
  672. data/docbook-xsl/params/itemizedlist.label.width.xml +28 -0
  673. data/docbook-xsl/params/itemizedlist.properties.xml +23 -0
  674. data/docbook-xsl/params/javahelp.encoding.xml +31 -0
  675. data/docbook-xsl/params/keep.relative.image.uris.xml +34 -0
  676. data/docbook-xsl/params/keyboard.nav.xml +29 -0
  677. data/docbook-xsl/params/l10n.gentext.default.language.xml +30 -0
  678. data/docbook-xsl/params/l10n.gentext.language.xml +33 -0
  679. data/docbook-xsl/params/l10n.gentext.use.xref.language.xml +53 -0
  680. data/docbook-xsl/params/l10n.lang.value.rfc.compliant.xml +57 -0
  681. data/docbook-xsl/params/label.from.part.xml +38 -0
  682. data/docbook-xsl/params/line-height.xml +27 -0
  683. data/docbook-xsl/params/linenumbering.everyNth.xml +29 -0
  684. data/docbook-xsl/params/linenumbering.extension.xml +30 -0
  685. data/docbook-xsl/params/linenumbering.separator.xml +30 -0
  686. data/docbook-xsl/params/linenumbering.width.xml +29 -0
  687. data/docbook-xsl/params/link.mailto.url.xml +29 -0
  688. data/docbook-xsl/params/list.block.properties.xml +25 -0
  689. data/docbook-xsl/params/list.block.spacing.xml +29 -0
  690. data/docbook-xsl/params/list.item.spacing.xml +26 -0
  691. data/docbook-xsl/params/make.graphic.viewport.xml +35 -0
  692. data/docbook-xsl/params/make.index.markup.xml +73 -0
  693. data/docbook-xsl/params/make.single.year.ranges.xml +28 -0
  694. data/docbook-xsl/params/make.valid.html.xml +35 -0
  695. data/docbook-xsl/params/make.year.ranges.xml +31 -0
  696. data/docbook-xsl/params/man.authors.section.enabled.xml +46 -0
  697. data/docbook-xsl/params/man.base.url.for.relative.links.xml +76 -0
  698. data/docbook-xsl/params/man.break.after.slash.xml +46 -0
  699. data/docbook-xsl/params/man.charmap.enabled.xml +55 -0
  700. data/docbook-xsl/params/man.charmap.subset.profile.english.xml +80 -0
  701. data/docbook-xsl/params/man.charmap.subset.profile.xml +297 -0
  702. data/docbook-xsl/params/man.charmap.uri.xml +42 -0
  703. data/docbook-xsl/params/man.charmap.use.subset.xml +80 -0
  704. data/docbook-xsl/params/man.copyright.section.enabled.xml +46 -0
  705. data/docbook-xsl/params/man.endnotes.are.numbered.xml +106 -0
  706. data/docbook-xsl/params/man.endnotes.list.enabled.xml +105 -0
  707. data/docbook-xsl/params/man.endnotes.list.heading.xml +36 -0
  708. data/docbook-xsl/params/man.font.funcprototype.xml +30 -0
  709. data/docbook-xsl/params/man.font.funcsynopsisinfo.xml +30 -0
  710. data/docbook-xsl/params/man.font.links.xml +64 -0
  711. data/docbook-xsl/params/man.font.table.headings.xml +30 -0
  712. data/docbook-xsl/params/man.font.table.title.xml +30 -0
  713. data/docbook-xsl/params/man.funcsynopsis.style.xml +26 -0
  714. data/docbook-xsl/params/man.hyphenate.computer.inlines.xml +53 -0
  715. data/docbook-xsl/params/man.hyphenate.filenames.xml +47 -0
  716. data/docbook-xsl/params/man.hyphenate.urls.xml +46 -0
  717. data/docbook-xsl/params/man.hyphenate.xml +59 -0
  718. data/docbook-xsl/params/man.indent.blurbs.xml +33 -0
  719. data/docbook-xsl/params/man.indent.lists.xml +35 -0
  720. data/docbook-xsl/params/man.indent.refsect.xml +70 -0
  721. data/docbook-xsl/params/man.indent.verbatims.xml +33 -0
  722. data/docbook-xsl/params/man.indent.width.xml +39 -0
  723. data/docbook-xsl/params/man.justify.xml +52 -0
  724. data/docbook-xsl/params/man.output.base.dir.xml +39 -0
  725. data/docbook-xsl/params/man.output.encoding.xml +53 -0
  726. data/docbook-xsl/params/man.output.in.separate.dir.xml +32 -0
  727. data/docbook-xsl/params/man.output.lang.in.name.enabled.xml +50 -0
  728. data/docbook-xsl/params/man.output.manifest.enabled.xml +27 -0
  729. data/docbook-xsl/params/man.output.manifest.filename.xml +29 -0
  730. data/docbook-xsl/params/man.output.quietly.xml +37 -0
  731. data/docbook-xsl/params/man.output.subdirs.enabled.xml +40 -0
  732. data/docbook-xsl/params/man.segtitle.suppress.xml +28 -0
  733. data/docbook-xsl/params/man.string.subst.map.local.post.xml +34 -0
  734. data/docbook-xsl/params/man.string.subst.map.local.pre.xml +34 -0
  735. data/docbook-xsl/params/man.string.subst.map.xml +162 -0
  736. data/docbook-xsl/params/man.subheading.divider.enabled.xml +37 -0
  737. data/docbook-xsl/params/man.subheading.divider.xml +37 -0
  738. data/docbook-xsl/params/man.table.footnotes.divider.xml +29 -0
  739. data/docbook-xsl/params/man.th.extra1.suppress.xml +32 -0
  740. data/docbook-xsl/params/man.th.extra2.max.length.xml +43 -0
  741. data/docbook-xsl/params/man.th.extra2.suppress.xml +44 -0
  742. data/docbook-xsl/params/man.th.extra3.max.length.xml +42 -0
  743. data/docbook-xsl/params/man.th.extra3.suppress.xml +34 -0
  744. data/docbook-xsl/params/man.th.title.max.length.xml +63 -0
  745. data/docbook-xsl/params/manifest.in.base.dir.xml +29 -0
  746. data/docbook-xsl/params/manifest.xml +29 -0
  747. data/docbook-xsl/params/manual.toc.xml +29 -0
  748. data/docbook-xsl/params/margin.note.float.type.xml +77 -0
  749. data/docbook-xsl/params/margin.note.properties.xml +54 -0
  750. data/docbook-xsl/params/margin.note.title.properties.xml +32 -0
  751. data/docbook-xsl/params/margin.note.width.xml +35 -0
  752. data/docbook-xsl/params/marker.section.level.xml +50 -0
  753. data/docbook-xsl/params/menuchoice.menu.separator.xml +42 -0
  754. data/docbook-xsl/params/menuchoice.separator.xml +32 -0
  755. data/docbook-xsl/params/minus.image.xml +29 -0
  756. data/docbook-xsl/params/monospace.font.family.xml +29 -0
  757. data/docbook-xsl/params/monospace.properties.xml +38 -0
  758. data/docbook-xsl/params/monospace.verbatim.properties.xml +27 -0
  759. data/docbook-xsl/params/multiframe.bottom.bgcolor.xml +28 -0
  760. data/docbook-xsl/params/multiframe.navigation.height.xml +28 -0
  761. data/docbook-xsl/params/multiframe.top.bgcolor.xml +28 -0
  762. data/docbook-xsl/params/multiframe.xml +31 -0
  763. data/docbook-xsl/params/nav.separator.xml +28 -0
  764. data/docbook-xsl/params/nav.table.summary.xml +27 -0
  765. data/docbook-xsl/params/navbgcolor.xml +26 -0
  766. data/docbook-xsl/params/navbodywidth.xml +26 -0
  767. data/docbook-xsl/params/navig.graphics.extension.xml +28 -0
  768. data/docbook-xsl/params/navig.graphics.path.xml +30 -0
  769. data/docbook-xsl/params/navig.graphics.xml +31 -0
  770. data/docbook-xsl/params/navig.showtitles.xml +32 -0
  771. data/docbook-xsl/params/navtocwidth.xml +26 -0
  772. data/docbook-xsl/params/next.image.xml +27 -0
  773. data/docbook-xsl/params/no.home.image.xml +27 -0
  774. data/docbook-xsl/params/no.next.image.xml +27 -0
  775. data/docbook-xsl/params/no.prev.image.xml +27 -0
  776. data/docbook-xsl/params/no.toc.image.xml +27 -0
  777. data/docbook-xsl/params/no.up.image.xml +27 -0
  778. data/docbook-xsl/params/nominal.image.depth.xml +27 -0
  779. data/docbook-xsl/params/nominal.image.width.xml +43 -0
  780. data/docbook-xsl/params/nominal.table.width.xml +30 -0
  781. data/docbook-xsl/params/nongraphical.admonition.properties.xml +41 -0
  782. data/docbook-xsl/params/normal.para.spacing.xml +26 -0
  783. data/docbook-xsl/params/olink.base.uri.xml +35 -0
  784. data/docbook-xsl/params/olink.debug.xml +36 -0
  785. data/docbook-xsl/params/olink.doctitle.xml +146 -0
  786. data/docbook-xsl/params/olink.fragid.xml +23 -0
  787. data/docbook-xsl/params/olink.lang.fallback.sequence.xml +83 -0
  788. data/docbook-xsl/params/olink.outline.ext.xml +28 -0
  789. data/docbook-xsl/params/olink.properties.xml +33 -0
  790. data/docbook-xsl/params/olink.pubid.xml +27 -0
  791. data/docbook-xsl/params/olink.resolver.xml +23 -0
  792. data/docbook-xsl/params/olink.sysid.xml +27 -0
  793. data/docbook-xsl/params/orderedlist.label.properties.xml +26 -0
  794. data/docbook-xsl/params/orderedlist.label.width.xml +28 -0
  795. data/docbook-xsl/params/orderedlist.properties.xml +24 -0
  796. data/docbook-xsl/params/othercredit.like.author.enabled.xml +31 -0
  797. data/docbook-xsl/params/output-root.xml +28 -0
  798. data/docbook-xsl/params/output.indent.xml +32 -0
  799. data/docbook-xsl/params/overlay.js.xml +28 -0
  800. data/docbook-xsl/params/overlay.logo.xml +28 -0
  801. data/docbook-xsl/params/overlay.xml +32 -0
  802. data/docbook-xsl/params/page.height.portrait.xml +69 -0
  803. data/docbook-xsl/params/page.height.xml +37 -0
  804. data/docbook-xsl/params/page.margin.bottom.xml +29 -0
  805. data/docbook-xsl/params/page.margin.inner.xml +35 -0
  806. data/docbook-xsl/params/page.margin.outer.xml +35 -0
  807. data/docbook-xsl/params/page.margin.top.xml +28 -0
  808. data/docbook-xsl/params/page.orientation.xml +32 -0
  809. data/docbook-xsl/params/page.width.portrait.xml +67 -0
  810. data/docbook-xsl/params/page.width.xml +36 -0
  811. data/docbook-xsl/params/pages.template.xml +29 -0
  812. data/docbook-xsl/params/paper.type.xml +71 -0
  813. data/docbook-xsl/params/para.propagates.style.xml +29 -0
  814. data/docbook-xsl/params/part.autolabel.xml +73 -0
  815. data/docbook-xsl/params/passivetex.extensions.xml +37 -0
  816. data/docbook-xsl/params/pgwide.properties.xml +52 -0
  817. data/docbook-xsl/params/phrase.propagates.style.xml +29 -0
  818. data/docbook-xsl/params/pixels.per.inch.xml +31 -0
  819. data/docbook-xsl/params/plus.image.xml +29 -0
  820. data/docbook-xsl/params/points.per.em.xml +29 -0
  821. data/docbook-xsl/params/preface.autolabel.xml +71 -0
  822. data/docbook-xsl/params/prefer.internal.olink.xml +78 -0
  823. data/docbook-xsl/params/preferred.mediaobject.role.xml +40 -0
  824. data/docbook-xsl/params/prev.image.xml +27 -0
  825. data/docbook-xsl/params/procedure.properties.xml +29 -0
  826. data/docbook-xsl/params/process.empty.source.toc.xml +39 -0
  827. data/docbook-xsl/params/process.source.toc.xml +39 -0
  828. data/docbook-xsl/params/profile.arch.xml +39 -0
  829. data/docbook-xsl/params/profile.attribute.xml +34 -0
  830. data/docbook-xsl/params/profile.audience.xml +38 -0
  831. data/docbook-xsl/params/profile.condition.xml +38 -0
  832. data/docbook-xsl/params/profile.conformance.xml +38 -0
  833. data/docbook-xsl/params/profile.lang.xml +38 -0
  834. data/docbook-xsl/params/profile.os.xml +38 -0
  835. data/docbook-xsl/params/profile.revision.xml +38 -0
  836. data/docbook-xsl/params/profile.revisionflag.xml +38 -0
  837. data/docbook-xsl/params/profile.role.xml +54 -0
  838. data/docbook-xsl/params/profile.security.xml +38 -0
  839. data/docbook-xsl/params/profile.separator.xml +27 -0
  840. data/docbook-xsl/params/profile.status.xml +38 -0
  841. data/docbook-xsl/params/profile.userlevel.xml +38 -0
  842. data/docbook-xsl/params/profile.value.xml +41 -0
  843. data/docbook-xsl/params/profile.vendor.xml +38 -0
  844. data/docbook-xsl/params/profile.wordsize.xml +38 -0
  845. data/docbook-xsl/params/punct.honorific.xml +28 -0
  846. data/docbook-xsl/params/qanda.defaultlabel.xml +44 -0
  847. data/docbook-xsl/params/qanda.in.toc.xml +34 -0
  848. data/docbook-xsl/params/qanda.inherit.numeration.xml +30 -0
  849. data/docbook-xsl/params/qanda.nested.in.toc.xml +29 -0
  850. data/docbook-xsl/params/qanda.title.level1.properties.xml +32 -0
  851. data/docbook-xsl/params/qanda.title.level2.properties.xml +32 -0
  852. data/docbook-xsl/params/qanda.title.level3.properties.xml +32 -0
  853. data/docbook-xsl/params/qanda.title.level4.properties.xml +32 -0
  854. data/docbook-xsl/params/qanda.title.level5.properties.xml +32 -0
  855. data/docbook-xsl/params/qanda.title.level6.properties.xml +34 -0
  856. data/docbook-xsl/params/qanda.title.properties.xml +37 -0
  857. data/docbook-xsl/params/qandadiv.autolabel.xml +26 -0
  858. data/docbook-xsl/params/rebuild-all.xml +33 -0
  859. data/docbook-xsl/params/refclass.suppress.xml +28 -0
  860. data/docbook-xsl/params/refentry.date.profile.enabled.xml +46 -0
  861. data/docbook-xsl/params/refentry.date.profile.xml +38 -0
  862. data/docbook-xsl/params/refentry.generate.name.xml +33 -0
  863. data/docbook-xsl/params/refentry.generate.title.xml +33 -0
  864. data/docbook-xsl/params/refentry.manual.fallback.profile.xml +48 -0
  865. data/docbook-xsl/params/refentry.manual.profile.enabled.xml +47 -0
  866. data/docbook-xsl/params/refentry.manual.profile.xml +72 -0
  867. data/docbook-xsl/params/refentry.meta.get.quietly.xml +37 -0
  868. data/docbook-xsl/params/refentry.pagebreak.xml +33 -0
  869. data/docbook-xsl/params/refentry.separator.xml +29 -0
  870. data/docbook-xsl/params/refentry.source.fallback.profile.xml +49 -0
  871. data/docbook-xsl/params/refentry.source.name.profile.enabled.xml +48 -0
  872. data/docbook-xsl/params/refentry.source.name.profile.xml +89 -0
  873. data/docbook-xsl/params/refentry.source.name.suppress.xml +42 -0
  874. data/docbook-xsl/params/refentry.title.properties.xml +59 -0
  875. data/docbook-xsl/params/refentry.version.profile.enabled.xml +47 -0
  876. data/docbook-xsl/params/refentry.version.profile.xml +41 -0
  877. data/docbook-xsl/params/refentry.version.suppress.xml +43 -0
  878. data/docbook-xsl/params/refentry.xref.manvolnum.xml +31 -0
  879. data/docbook-xsl/params/reference.autolabel.xml +67 -0
  880. data/docbook-xsl/params/region.after.extent.xml +29 -0
  881. data/docbook-xsl/params/region.before.extent.xml +29 -0
  882. data/docbook-xsl/params/revhistory.table.cell.properties.xml +28 -0
  883. data/docbook-xsl/params/revhistory.table.properties.xml +28 -0
  884. data/docbook-xsl/params/revhistory.title.properties.xml +28 -0
  885. data/docbook-xsl/params/root.filename.xml +29 -0
  886. data/docbook-xsl/params/root.properties.xml +43 -0
  887. data/docbook-xsl/params/rootid.xml +33 -0
  888. data/docbook-xsl/params/runinhead.default.title.end.punct.xml +27 -0
  889. data/docbook-xsl/params/runinhead.title.end.punct.xml +32 -0
  890. data/docbook-xsl/params/running.foot.properties.xml +34 -0
  891. data/docbook-xsl/params/sans.font.family.xml +29 -0
  892. data/docbook-xsl/params/saxon.callouts.xml +30 -0
  893. data/docbook-xsl/params/saxon.character.representation.xml +38 -0
  894. data/docbook-xsl/params/saxon.linenumbering.xml +32 -0
  895. data/docbook-xsl/params/saxon.tablecolumns.xml +30 -0
  896. data/docbook-xsl/params/script.dir.xml +33 -0
  897. data/docbook-xsl/params/section.autolabel.max.depth.xml +32 -0
  898. data/docbook-xsl/params/section.autolabel.xml +26 -0
  899. data/docbook-xsl/params/section.container.element.xml +62 -0
  900. data/docbook-xsl/params/section.label.includes.component.label.xml +27 -0
  901. data/docbook-xsl/params/section.level1.properties.xml +43 -0
  902. data/docbook-xsl/params/section.level2.properties.xml +43 -0
  903. data/docbook-xsl/params/section.level3.properties.xml +43 -0
  904. data/docbook-xsl/params/section.level4.properties.xml +43 -0
  905. data/docbook-xsl/params/section.level5.properties.xml +43 -0
  906. data/docbook-xsl/params/section.level6.properties.xml +43 -0
  907. data/docbook-xsl/params/section.properties.xml +35 -0
  908. data/docbook-xsl/params/section.title.level1.properties.xml +32 -0
  909. data/docbook-xsl/params/section.title.level2.properties.xml +33 -0
  910. data/docbook-xsl/params/section.title.level3.properties.xml +32 -0
  911. data/docbook-xsl/params/section.title.level4.properties.xml +32 -0
  912. data/docbook-xsl/params/section.title.level5.properties.xml +32 -0
  913. data/docbook-xsl/params/section.title.level6.properties.xml +33 -0
  914. data/docbook-xsl/params/section.title.properties.xml +39 -0
  915. data/docbook-xsl/params/segmentedlist.as.table.xml +28 -0
  916. data/docbook-xsl/params/sequential.links.xml +25 -0
  917. data/docbook-xsl/params/shade.verbatim.style.xml +36 -0
  918. data/docbook-xsl/params/shade.verbatim.xml +30 -0
  919. data/docbook-xsl/params/show.comments.xml +32 -0
  920. data/docbook-xsl/params/show.foil.number.xml +28 -0
  921. data/docbook-xsl/params/show.revisionflag.xml +42 -0
  922. data/docbook-xsl/params/showtoc.image.xml +29 -0
  923. data/docbook-xsl/params/side.float.properties.xml +50 -0
  924. data/docbook-xsl/params/sidebar.float.type.xml +73 -0
  925. data/docbook-xsl/params/sidebar.float.width.xml +35 -0
  926. data/docbook-xsl/params/sidebar.properties.xml +42 -0
  927. data/docbook-xsl/params/sidebar.title.properties.xml +32 -0
  928. data/docbook-xsl/params/simplesect.in.toc.xml +26 -0
  929. data/docbook-xsl/params/slide.font.family.xml +31 -0
  930. data/docbook-xsl/params/slide.title.font.family.xml +31 -0
  931. data/docbook-xsl/params/slides.js.xml +28 -0
  932. data/docbook-xsl/params/slides.properties.xml +31 -0
  933. data/docbook-xsl/params/spacing.paras.xml +30 -0
  934. data/docbook-xsl/params/speakernote.properties.xml +32 -0
  935. data/docbook-xsl/params/subscript.properties.xml +29 -0
  936. data/docbook-xsl/params/superscript.properties.xml +29 -0
  937. data/docbook-xsl/params/suppress.footer.navigation.xml +26 -0
  938. data/docbook-xsl/params/suppress.header.navigation.xml +27 -0
  939. data/docbook-xsl/params/suppress.homepage.title.xml +25 -0
  940. data/docbook-xsl/params/suppress.navigation.xml +28 -0
  941. data/docbook-xsl/params/symbol.font.family.xml +45 -0
  942. data/docbook-xsl/params/table.borders.with.css.xml +28 -0
  943. data/docbook-xsl/params/table.cell.border.color.xml +39 -0
  944. data/docbook-xsl/params/table.cell.border.style.xml +42 -0
  945. data/docbook-xsl/params/table.cell.border.thickness.xml +35 -0
  946. data/docbook-xsl/params/table.cell.padding.xml +32 -0
  947. data/docbook-xsl/params/table.entry.padding.xml +27 -0
  948. data/docbook-xsl/params/table.footnote.number.format.xml +33 -0
  949. data/docbook-xsl/params/table.footnote.number.symbols.xml +39 -0
  950. data/docbook-xsl/params/table.footnote.properties.xml +39 -0
  951. data/docbook-xsl/params/table.frame.border.color.xml +28 -0
  952. data/docbook-xsl/params/table.frame.border.style.xml +37 -0
  953. data/docbook-xsl/params/table.frame.border.thickness.xml +27 -0
  954. data/docbook-xsl/params/table.properties.xml +34 -0
  955. data/docbook-xsl/params/table.spacer.image.xml +26 -0
  956. data/docbook-xsl/params/table.table.properties.xml +36 -0
  957. data/docbook-xsl/params/tablecolumns.extension.xml +30 -0
  958. data/docbook-xsl/params/target.database.document.xml +37 -0
  959. data/docbook-xsl/params/targets.filename.xml +32 -0
  960. data/docbook-xsl/params/template.xml +27 -0
  961. data/docbook-xsl/params/tex.math.delims.xml +47 -0
  962. data/docbook-xsl/params/tex.math.file.xml +42 -0
  963. data/docbook-xsl/params/tex.math.in.alt.xml +83 -0
  964. data/docbook-xsl/params/text.home.xml +27 -0
  965. data/docbook-xsl/params/text.next.xml +27 -0
  966. data/docbook-xsl/params/text.prev.xml +27 -0
  967. data/docbook-xsl/params/text.toc.xml +27 -0
  968. data/docbook-xsl/params/text.up.xml +27 -0
  969. data/docbook-xsl/params/textbgcolor.xml +26 -0
  970. data/docbook-xsl/params/textdata.default.encoding.xml +32 -0
  971. data/docbook-xsl/params/textinsert.extension.xml +62 -0
  972. data/docbook-xsl/params/title.font.family.xml +33 -0
  973. data/docbook-xsl/params/title.margin.left.xml +64 -0
  974. data/docbook-xsl/params/titlefoil.html.xml +27 -0
  975. data/docbook-xsl/params/toc.bg.color.xml +27 -0
  976. data/docbook-xsl/params/toc.blank.graphic.xml +28 -0
  977. data/docbook-xsl/params/toc.blank.image.xml +27 -0
  978. data/docbook-xsl/params/toc.blank.text.xml +27 -0
  979. data/docbook-xsl/params/toc.hide.show.xml +33 -0
  980. data/docbook-xsl/params/toc.html.xml +27 -0
  981. data/docbook-xsl/params/toc.image.xml +27 -0
  982. data/docbook-xsl/params/toc.indent.width.xml +34 -0
  983. data/docbook-xsl/params/toc.line.properties.xml +42 -0
  984. data/docbook-xsl/params/toc.list.type.xml +30 -0
  985. data/docbook-xsl/params/toc.margin.properties.xml +33 -0
  986. data/docbook-xsl/params/toc.max.depth.xml +25 -0
  987. data/docbook-xsl/params/toc.pointer.graphic.xml +28 -0
  988. data/docbook-xsl/params/toc.pointer.image.xml +27 -0
  989. data/docbook-xsl/params/toc.pointer.text.xml +27 -0
  990. data/docbook-xsl/params/toc.row.height.xml +33 -0
  991. data/docbook-xsl/params/toc.section.depth.xml +28 -0
  992. data/docbook-xsl/params/toc.spacer.graphic.xml +28 -0
  993. data/docbook-xsl/params/toc.spacer.image.xml +27 -0
  994. data/docbook-xsl/params/toc.spacer.text.xml +27 -0
  995. data/docbook-xsl/params/toc.width.xml +28 -0
  996. data/docbook-xsl/params/ua.js.xml +28 -0
  997. data/docbook-xsl/params/ulink.footnotes.xml +34 -0
  998. data/docbook-xsl/params/ulink.hyphenate.chars.xml +37 -0
  999. data/docbook-xsl/params/ulink.hyphenate.xml +35 -0
  1000. data/docbook-xsl/params/ulink.show.xml +37 -0
  1001. data/docbook-xsl/params/ulink.target.xml +29 -0
  1002. data/docbook-xsl/params/up.image.xml +27 -0
  1003. data/docbook-xsl/params/use.embed.for.svg.xml +33 -0
  1004. data/docbook-xsl/params/use.extensions.xml +31 -0
  1005. data/docbook-xsl/params/use.id.as.filename.xml +30 -0
  1006. data/docbook-xsl/params/use.id.function.xml +32 -0
  1007. data/docbook-xsl/params/use.local.olink.style.xml +28 -0
  1008. data/docbook-xsl/params/use.role.as.xrefstyle.xml +93 -0
  1009. data/docbook-xsl/params/use.role.for.mediaobject.xml +56 -0
  1010. data/docbook-xsl/params/use.svg.xml +30 -0
  1011. data/docbook-xsl/params/variablelist.as.blocks.xml +62 -0
  1012. data/docbook-xsl/params/variablelist.as.table.xml +54 -0
  1013. data/docbook-xsl/params/variablelist.max.termlength.xml +46 -0
  1014. data/docbook-xsl/params/variablelist.term.break.after.xml +39 -0
  1015. data/docbook-xsl/params/variablelist.term.separator.xml +40 -0
  1016. data/docbook-xsl/params/verbatim.properties.xml +38 -0
  1017. data/docbook-xsl/params/wordml.template.xml +29 -0
  1018. data/docbook-xsl/params/writing.mode.xml +84 -0
  1019. data/docbook-xsl/params/xbCollapsibleLists.js.xml +28 -0
  1020. data/docbook-xsl/params/xbDOM.js.xml +28 -0
  1021. data/docbook-xsl/params/xbLibrary.js.xml +28 -0
  1022. data/docbook-xsl/params/xbStyle.js.xml +28 -0
  1023. data/docbook-xsl/params/xep.extensions.xml +31 -0
  1024. data/docbook-xsl/params/xep.index.item.properties.xml +36 -0
  1025. data/docbook-xsl/params/xref.label-page.separator.xml +38 -0
  1026. data/docbook-xsl/params/xref.label-title.separator.xml +36 -0
  1027. data/docbook-xsl/params/xref.properties.xml +29 -0
  1028. data/docbook-xsl/params/xref.title-page.separator.xml +36 -0
  1029. data/docbook-xsl/params/xref.with.number.and.title.xml +30 -0
  1030. data/docbook-xsl/profiling/profile-mode.xsl +239 -0
  1031. data/docbook-xsl/profiling/profile.xsl +49 -0
  1032. data/docbook-xsl/profiling/strip-attributes.xsl +27 -0
  1033. data/docbook-xsl/profiling/xsl2profile.xsl +159 -0
  1034. data/docbook-xsl/roundtrip/blocks-spec.xml +11 -0
  1035. data/docbook-xsl/roundtrip/blocks2dbk.dtd +76 -0
  1036. data/docbook-xsl/roundtrip/blocks2dbk.xsl +1732 -0
  1037. data/docbook-xsl/roundtrip/dbk2ooo.xsl +178 -0
  1038. data/docbook-xsl/roundtrip/dbk2pages.xsl +441 -0
  1039. data/docbook-xsl/roundtrip/dbk2wordml.xsl +401 -0
  1040. data/docbook-xsl/roundtrip/dbk2wp.xsl +1375 -0
  1041. data/docbook-xsl/roundtrip/normalise-common.xsl +39 -0
  1042. data/docbook-xsl/roundtrip/normalise2sections.xsl +1270 -0
  1043. data/docbook-xsl/roundtrip/pages2normalise.xsl +351 -0
  1044. data/docbook-xsl/roundtrip/param.xml +105 -0
  1045. data/docbook-xsl/roundtrip/param.xsl +18 -0
  1046. data/docbook-xsl/roundtrip/sections-spec.xml +38 -0
  1047. data/docbook-xsl/roundtrip/sections2blocks.xsl +263 -0
  1048. data/docbook-xsl/roundtrip/specifications.xml +1420 -0
  1049. data/docbook-xsl/roundtrip/template-pages.xml +2 -0
  1050. data/docbook-xsl/roundtrip/template.dot +0 -0
  1051. data/docbook-xsl/roundtrip/template.xml +3 -0
  1052. data/docbook-xsl/roundtrip/wordml2normalise.xsl +445 -0
  1053. data/docbook-xsl/template/titlepage.xml +478 -0
  1054. data/docbook-xsl/template/titlepage.xsl +1280 -0
  1055. data/docbook-xsl/tests/refentry.007.ns.xml +325 -0
  1056. data/docbook-xsl/tests/refentry.007.xml +340 -0
  1057. data/docbook-xsl/tools/bin/docbook-xsl-update +53 -0
  1058. data/docbook-xsl/tools/make/Makefile.DocBook +698 -0
  1059. data/docbook-xsl/tools/make/Makefile.combine +182 -0
  1060. data/docbook-xsl/tools/make/Makefile.docParam +59 -0
  1061. data/docbook-xsl/xhtml/admon.xsl +133 -0
  1062. data/docbook-xsl/xhtml/annotations.xsl +158 -0
  1063. data/docbook-xsl/xhtml/autoidx-kimber.xsl +139 -0
  1064. data/docbook-xsl/xhtml/autoidx-kosek.xsl +109 -0
  1065. data/docbook-xsl/xhtml/autoidx-ng.xsl +21 -0
  1066. data/docbook-xsl/xhtml/autoidx.xsl +588 -0
  1067. data/docbook-xsl/xhtml/autotoc.xsl +632 -0
  1068. data/docbook-xsl/xhtml/biblio-iso690.xsl +1300 -0
  1069. data/docbook-xsl/xhtml/biblio.xsl +1234 -0
  1070. data/docbook-xsl/xhtml/block.xsl +432 -0
  1071. data/docbook-xsl/xhtml/callout.xsl +188 -0
  1072. data/docbook-xsl/xhtml/changebars.xsl +78 -0
  1073. data/docbook-xsl/xhtml/chunk-changebars.xsl +96 -0
  1074. data/docbook-xsl/xhtml/chunk-code.xsl +639 -0
  1075. data/docbook-xsl/xhtml/chunk-common.xsl +1552 -0
  1076. data/docbook-xsl/xhtml/chunk.xsl +52 -0
  1077. data/docbook-xsl/xhtml/chunker.xsl +302 -0
  1078. data/docbook-xsl/xhtml/chunkfast.xsl +69 -0
  1079. data/docbook-xsl/xhtml/chunktoc.xsl +462 -0
  1080. data/docbook-xsl/xhtml/component.xsl +375 -0
  1081. data/docbook-xsl/xhtml/division.xsl +228 -0
  1082. data/docbook-xsl/xhtml/docbook.xsl +447 -0
  1083. data/docbook-xsl/xhtml/ebnf.xsl +328 -0
  1084. data/docbook-xsl/xhtml/footnote.xsl +301 -0
  1085. data/docbook-xsl/xhtml/formal.xsl +387 -0
  1086. data/docbook-xsl/xhtml/glossary.xsl +548 -0
  1087. data/docbook-xsl/xhtml/graphics.xsl +1436 -0
  1088. data/docbook-xsl/xhtml/highlight.xsl +70 -0
  1089. data/docbook-xsl/xhtml/html-rtf.xsl +321 -0
  1090. data/docbook-xsl/xhtml/html.xsl +263 -0
  1091. data/docbook-xsl/xhtml/htmltbl.xsl +57 -0
  1092. data/docbook-xsl/xhtml/index.xsl +224 -0
  1093. data/docbook-xsl/xhtml/info.xsl +44 -0
  1094. data/docbook-xsl/xhtml/inline.xsl +1457 -0
  1095. data/docbook-xsl/xhtml/keywords.xsl +36 -0
  1096. data/docbook-xsl/xhtml/lists.xsl +1081 -0
  1097. data/docbook-xsl/xhtml/maketoc.xsl +91 -0
  1098. data/docbook-xsl/xhtml/manifest.xsl +22 -0
  1099. data/docbook-xsl/xhtml/math.xsl +284 -0
  1100. data/docbook-xsl/xhtml/oldchunker.xsl +176 -0
  1101. data/docbook-xsl/xhtml/onechunk.xsl +36 -0
  1102. data/docbook-xsl/xhtml/param.xsl +424 -0
  1103. data/docbook-xsl/xhtml/pi.xsl +1203 -0
  1104. data/docbook-xsl/xhtml/profile-chunk-code.xsl +611 -0
  1105. data/docbook-xsl/xhtml/profile-chunk.xsl +52 -0
  1106. data/docbook-xsl/xhtml/profile-docbook.xsl +409 -0
  1107. data/docbook-xsl/xhtml/profile-onechunk.xsl +36 -0
  1108. data/docbook-xsl/xhtml/qandaset.xsl +371 -0
  1109. data/docbook-xsl/xhtml/refentry.xsl +309 -0
  1110. data/docbook-xsl/xhtml/sections.xsl +554 -0
  1111. data/docbook-xsl/xhtml/synop.xsl +1508 -0
  1112. data/docbook-xsl/xhtml/table.xsl +1102 -0
  1113. data/docbook-xsl/xhtml/task.xsl +73 -0
  1114. data/docbook-xsl/xhtml/titlepage.templates.xsl +3622 -0
  1115. data/docbook-xsl/xhtml/titlepage.xsl +1015 -0
  1116. data/docbook-xsl/xhtml/toc.xsl +159 -0
  1117. data/docbook-xsl/xhtml/verbatim.xsl +354 -0
  1118. data/docbook-xsl/xhtml/xref.xsl +1288 -0
  1119. data/example/LICENSE +22 -0
  1120. data/example/book/book.asc +62 -0
  1121. data/example/book/images/octocat_professor.png +0 -0
  1122. data/example/book/include/hello.c +10 -0
  1123. data/example/site/index.html +12 -0
  1124. data/example/site/page.html +8 -0
  1125. data/git-scribe.gemspec +36 -0
  1126. data/icons/README +5 -0
  1127. data/icons/callouts/1.png +0 -0
  1128. data/icons/callouts/10.png +0 -0
  1129. data/icons/callouts/11.png +0 -0
  1130. data/icons/callouts/12.png +0 -0
  1131. data/icons/callouts/13.png +0 -0
  1132. data/icons/callouts/14.png +0 -0
  1133. data/icons/callouts/15.png +0 -0
  1134. data/icons/callouts/2.png +0 -0
  1135. data/icons/callouts/3.png +0 -0
  1136. data/icons/callouts/4.png +0 -0
  1137. data/icons/callouts/5.png +0 -0
  1138. data/icons/callouts/6.png +0 -0
  1139. data/icons/callouts/7.png +0 -0
  1140. data/icons/callouts/8.png +0 -0
  1141. data/icons/callouts/9.png +0 -0
  1142. data/icons/caution.png +0 -0
  1143. data/icons/example.png +0 -0
  1144. data/icons/home.png +0 -0
  1145. data/icons/important.png +0 -0
  1146. data/icons/next.png +0 -0
  1147. data/icons/note.png +0 -0
  1148. data/icons/prev.png +0 -0
  1149. data/icons/tip.png +0 -0
  1150. data/icons/up.png +0 -0
  1151. data/icons/warning.png +0 -0
  1152. data/lib/decorator.rb +96 -0
  1153. data/lib/git-scribe.rb +65 -0
  1154. data/lib/git-scribe/check.rb +71 -0
  1155. data/lib/git-scribe/cli.rb +84 -0
  1156. data/lib/git-scribe/generate.rb +472 -0
  1157. data/lib/git-scribe/init.rb +16 -0
  1158. data/lib/git-scribe/version.rb +3 -0
  1159. data/lib/subcommand.rb +266 -0
  1160. data/site/default/book-docinfo.xml +23 -0
  1161. data/site/default/book.opf +30 -0
  1162. data/site/default/index.html +43 -0
  1163. data/site/default/master.css +281 -0
  1164. data/site/default/page.html +60 -0
  1165. data/stylesheets/scribe-quirks.css +0 -0
  1166. data/stylesheets/scribe.css +182 -0
  1167. data/template/.gitignore +1 -0
  1168. data/template/.gitscribe +7 -0
  1169. data/template/LICENSE +1 -0
  1170. data/template/README.asciidoc +9 -0
  1171. data/template/book/book.asc +58 -0
  1172. data/template/book/chapter2.asc +8 -0
  1173. data/template/book/images/cover.jpg +0 -0
  1174. data/template/book/images/octocat_professor.png +0 -0
  1175. data/template/book/include/hello.c +10 -0
  1176. data/test/check_test.rb +23 -0
  1177. data/test/gen_test.rb +184 -0
  1178. data/test/init_test.rb +36 -0
  1179. data/test/test_helper.rb +42 -0
  1180. data/vendor/saxon.jar +0 -0
  1181. data/vendor/xslthl-2.0.2.jar +0 -0
  1182. metadata +1296 -0
@@ -0,0 +1,180 @@
1
+ <?xml version='1.0'?>
2
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
4
+ xmlns:rx="http://www.renderx.com/XSL/Extensions"
5
+ version='1.0'>
6
+
7
+ <!-- ********************************************************************
8
+ $Id: xep.xsl 7531 2007-10-17 18:06:49Z dcramer $
9
+ ********************************************************************
10
+ (c) Stephane Bline Peregrine Systems 2001
11
+ Implementation of xep extensions:
12
+ * Pdf bookmarks (based on the XEP 2.5 implementation)
13
+ * Document information (XEP 2.5 meta information extensions)
14
+ ******************************************************************** -->
15
+
16
+ <!-- FIXME: Norm, I changed things so that the top-level element (book or set)
17
+ does not appear in the TOC. Is this the right thing? -->
18
+
19
+ <xsl:template name="xep-document-information">
20
+ <rx:meta-info>
21
+ <xsl:variable name="authors"
22
+ select="(//author|//editor|//corpauthor|//authorgroup)[1]"/>
23
+ <xsl:if test="$authors">
24
+ <xsl:variable name="author">
25
+ <xsl:choose>
26
+ <xsl:when test="$authors[self::authorgroup]">
27
+ <xsl:call-template name="person.name.list">
28
+ <xsl:with-param name="person.list"
29
+ select="$authors/*[self::author|self::corpauthor|
30
+ self::othercredit|self::editor]"/>
31
+ </xsl:call-template>
32
+ </xsl:when>
33
+ <xsl:when test="$authors[self::corpauthor]">
34
+ <xsl:value-of select="$authors"/>
35
+ </xsl:when>
36
+ <xsl:otherwise>
37
+ <xsl:call-template name="person.name">
38
+ <xsl:with-param name="node" select="$authors"/>
39
+ </xsl:call-template>
40
+ </xsl:otherwise>
41
+ </xsl:choose>
42
+ </xsl:variable>
43
+ <xsl:element name="rx:meta-field">
44
+ <xsl:attribute name="name">author</xsl:attribute>
45
+ <xsl:attribute name="value">
46
+ <xsl:value-of select="normalize-space($author)"/>
47
+ </xsl:attribute>
48
+ </xsl:element>
49
+ </xsl:if>
50
+
51
+ <xsl:variable name="title">
52
+ <xsl:apply-templates select="/*[1]" mode="label.markup"/>
53
+ <xsl:apply-templates select="/*[1]" mode="title.markup"/>
54
+ </xsl:variable>
55
+
56
+ <xsl:element name="rx:meta-field">
57
+ <xsl:attribute name="name">creator</xsl:attribute>
58
+ <xsl:attribute name="value">
59
+ <xsl:text>DocBook </xsl:text>
60
+ <xsl:value-of select="$DistroTitle"/>
61
+ <xsl:text> V</xsl:text>
62
+ <xsl:value-of select="$VERSION"/>
63
+ </xsl:attribute>
64
+ </xsl:element>
65
+
66
+ <xsl:element name="rx:meta-field">
67
+ <xsl:attribute name="name">title</xsl:attribute>
68
+ <xsl:attribute name="value">
69
+ <xsl:value-of select="normalize-space($title)"/>
70
+ </xsl:attribute>
71
+ </xsl:element>
72
+
73
+ <xsl:if test="//keyword">
74
+ <xsl:element name="rx:meta-field">
75
+ <xsl:attribute name="name">keywords</xsl:attribute>
76
+ <xsl:attribute name="value">
77
+ <xsl:for-each select="//keyword">
78
+ <xsl:value-of select="normalize-space(.)"/>
79
+ <xsl:if test="position() != last()">
80
+ <xsl:text>, </xsl:text>
81
+ </xsl:if>
82
+ </xsl:for-each>
83
+ </xsl:attribute>
84
+ </xsl:element>
85
+ </xsl:if>
86
+
87
+ <xsl:if test="//subjectterm">
88
+ <xsl:element name="rx:meta-field">
89
+ <xsl:attribute name="name">subject</xsl:attribute>
90
+ <xsl:attribute name="value">
91
+ <xsl:for-each select="//subjectterm">
92
+ <xsl:value-of select="normalize-space(.)"/>
93
+ <xsl:if test="position() != last()">
94
+ <xsl:text>, </xsl:text>
95
+ </xsl:if>
96
+ </xsl:for-each>
97
+ </xsl:attribute>
98
+ </xsl:element>
99
+ </xsl:if>
100
+ </rx:meta-info>
101
+ </xsl:template>
102
+
103
+ <!-- ********************************************************************
104
+ Pdf bookmarks
105
+ ******************************************************************** -->
106
+
107
+ <xsl:template match="*" mode="xep.outline">
108
+ <xsl:apply-templates select="*" mode="xep.outline"/>
109
+ </xsl:template>
110
+
111
+ <xsl:template match="set|book|part|reference|preface|chapter|appendix|article
112
+ |glossary|bibliography|index|setindex
113
+ |refentry|refsynopsisdiv
114
+ |refsect1|refsect2|refsect3|refsection
115
+ |sect1|sect2|sect3|sect4|sect5|section"
116
+ mode="xep.outline">
117
+ <xsl:variable name="id">
118
+ <xsl:call-template name="object.id"/>
119
+ </xsl:variable>
120
+ <xsl:variable name="bookmark-label">
121
+ <xsl:apply-templates select="." mode="object.title.markup"/>
122
+ </xsl:variable>
123
+
124
+ <!-- Put the root element bookmark at the same level as its children -->
125
+ <!-- If the object is a set or book, generate a bookmark for the toc -->
126
+ <xsl:choose>
127
+ <xsl:when test="self::index and $generate.index = 0"/>
128
+ <xsl:when test="parent::*">
129
+ <rx:bookmark internal-destination="{$id}">
130
+ <rx:bookmark-label>
131
+ <xsl:value-of select="normalize-space($bookmark-label)"/>
132
+ </rx:bookmark-label>
133
+ <xsl:apply-templates select="*" mode="xep.outline"/>
134
+ </rx:bookmark>
135
+ </xsl:when>
136
+ <xsl:otherwise>
137
+ <xsl:if test="$bookmark-label != ''">
138
+ <rx:bookmark internal-destination="{$id}">
139
+ <rx:bookmark-label>
140
+ <xsl:value-of select="normalize-space($bookmark-label)"/>
141
+ </rx:bookmark-label>
142
+ </rx:bookmark>
143
+ </xsl:if>
144
+
145
+ <xsl:variable name="toc.params">
146
+ <xsl:call-template name="find.path.params">
147
+ <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
148
+ </xsl:call-template>
149
+ </xsl:variable>
150
+ <xsl:if test="contains($toc.params, 'toc')
151
+ and set|book|part|reference|section|sect1|refentry
152
+ |article|bibliography|glossary|chapter
153
+ |appendix">
154
+ <rx:bookmark internal-destination="toc...{$id}">
155
+ <rx:bookmark-label>
156
+ <xsl:call-template name="gentext">
157
+ <xsl:with-param name="key" select="'TableofContents'"/>
158
+ </xsl:call-template>
159
+ </rx:bookmark-label>
160
+ </rx:bookmark>
161
+ </xsl:if>
162
+ <xsl:apply-templates select="*" mode="xep.outline"/>
163
+ </xsl:otherwise>
164
+ </xsl:choose>
165
+ </xsl:template>
166
+
167
+ <xsl:template name="xep-pis">
168
+ <xsl:if test="$crop.marks != 0">
169
+ <xsl:processing-instruction name="xep-pdf-crop-mark-width"><xsl:value-of select="$crop.mark.width"/></xsl:processing-instruction>
170
+ <xsl:processing-instruction name="xep-pdf-crop-offset"><xsl:value-of select="$crop.mark.offset"/></xsl:processing-instruction>
171
+ <xsl:processing-instruction name="xep-pdf-bleed"><xsl:value-of select="$crop.mark.bleed"/></xsl:processing-instruction>
172
+ </xsl:if>
173
+
174
+ <xsl:call-template name="user-xep-pis"/>
175
+ </xsl:template>
176
+
177
+ <!-- Placeholder for user defined PIs -->
178
+ <xsl:template name="user-xep-pis"/>
179
+
180
+ </xsl:stylesheet>
@@ -0,0 +1,1486 @@
1
+ <?xml version='1.0'?>
2
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
4
+ xmlns:exsl="http://exslt.org/common"
5
+ xmlns:xlink='http://www.w3.org/1999/xlink'
6
+ exclude-result-prefixes="exsl"
7
+ version='1.0'>
8
+
9
+ <!-- ********************************************************************
10
+ $Id: xref.xsl 7442 2007-09-13 07:42:22Z xmldoc $
11
+ ********************************************************************
12
+
13
+ This file is part of the XSL DocBook Stylesheet distribution.
14
+ See ../README or http://docbook.sf.net/release/xsl/current/ for
15
+ copyright and other information.
16
+
17
+ ******************************************************************** -->
18
+
19
+ <!-- Use internal variable for olink xlink role for consistency -->
20
+ <xsl:variable
21
+ name="xolink.role">http://docbook.org/xlink/role/olink</xsl:variable>
22
+
23
+ <!-- ==================================================================== -->
24
+
25
+ <xsl:template match="anchor">
26
+ <xsl:variable name="id">
27
+ <xsl:call-template name="object.id"/>
28
+ </xsl:variable>
29
+ <fo:inline id="{$id}"/>
30
+ </xsl:template>
31
+
32
+ <!-- ==================================================================== -->
33
+
34
+ <xsl:template match="xref" name="xref">
35
+ <xsl:param name="xhref" select="@xlink:href"/>
36
+ <!-- is the @xlink:href a local idref link? -->
37
+ <xsl:param name="xlink.idref">
38
+ <xsl:if test="starts-with($xhref,'#')
39
+ and (not(contains($xhref,'&#40;'))
40
+ or starts-with($xhref, '#xpointer&#40;id&#40;'))">
41
+ <xsl:call-template name="xpointer.idref">
42
+ <xsl:with-param name="xpointer" select="$xhref"/>
43
+ </xsl:call-template>
44
+ </xsl:if>
45
+ </xsl:param>
46
+ <xsl:param name="xlink.targets" select="key('id',$xlink.idref)"/>
47
+ <xsl:param name="linkend.targets" select="key('id',@linkend)"/>
48
+ <xsl:param name="target" select="($xlink.targets | $linkend.targets)[1]"/>
49
+ <xsl:param name="refelem" select="local-name($target)"/>
50
+
51
+ <xsl:variable name="xrefstyle">
52
+ <xsl:choose>
53
+ <xsl:when test="@role and not(@xrefstyle)
54
+ and $use.role.as.xrefstyle != 0">
55
+ <xsl:value-of select="@role"/>
56
+ </xsl:when>
57
+ <xsl:otherwise>
58
+ <xsl:value-of select="@xrefstyle"/>
59
+ </xsl:otherwise>
60
+ </xsl:choose>
61
+ </xsl:variable>
62
+
63
+ <xsl:variable name="content">
64
+ <fo:inline xsl:use-attribute-sets="xref.properties">
65
+ <xsl:choose>
66
+ <xsl:when test="@endterm">
67
+ <xsl:variable name="etargets" select="key('id',@endterm)"/>
68
+ <xsl:variable name="etarget" select="$etargets[1]"/>
69
+ <xsl:choose>
70
+ <xsl:when test="count($etarget) = 0">
71
+ <xsl:message>
72
+ <xsl:value-of select="count($etargets)"/>
73
+ <xsl:text>Endterm points to nonexistent ID: </xsl:text>
74
+ <xsl:value-of select="@endterm"/>
75
+ </xsl:message>
76
+ <xsl:text>???</xsl:text>
77
+ </xsl:when>
78
+ <xsl:otherwise>
79
+ <xsl:apply-templates select="$etarget" mode="endterm"/>
80
+ </xsl:otherwise>
81
+ </xsl:choose>
82
+ </xsl:when>
83
+
84
+ <xsl:when test="$target/@xreflabel">
85
+ <xsl:call-template name="xref.xreflabel">
86
+ <xsl:with-param name="target" select="$target"/>
87
+ </xsl:call-template>
88
+ </xsl:when>
89
+
90
+ <xsl:when test="$target">
91
+ <xsl:if test="not(parent::citation)">
92
+ <xsl:apply-templates select="$target" mode="xref-to-prefix"/>
93
+ </xsl:if>
94
+
95
+ <xsl:apply-templates select="$target" mode="xref-to">
96
+ <xsl:with-param name="referrer" select="."/>
97
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
98
+ </xsl:apply-templates>
99
+
100
+ <xsl:if test="not(parent::citation)">
101
+ <xsl:apply-templates select="$target" mode="xref-to-suffix"/>
102
+ </xsl:if>
103
+ </xsl:when>
104
+ <xsl:otherwise>
105
+ <xsl:message>
106
+ <xsl:text>ERROR: xref linking to </xsl:text>
107
+ <xsl:value-of select="@linkend|@xlink:href"/>
108
+ <xsl:text> has no generated link text.</xsl:text>
109
+ </xsl:message>
110
+ <xsl:text>???</xsl:text>
111
+ </xsl:otherwise>
112
+ </xsl:choose>
113
+ </fo:inline>
114
+ </xsl:variable>
115
+
116
+ <!-- Convert it into an active link -->
117
+ <xsl:call-template name="simple.xlink">
118
+ <xsl:with-param name="content" select="$content"/>
119
+ </xsl:call-template>
120
+
121
+ <!-- Add standard page reference? -->
122
+ <xsl:choose>
123
+ <xsl:when test="not($target)">
124
+ <!-- page numbers only for local targets -->
125
+ </xsl:when>
126
+ <xsl:when test="starts-with(normalize-space($xrefstyle), 'select:')
127
+ and contains($xrefstyle, 'nopage')">
128
+ <!-- negative xrefstyle in instance turns it off -->
129
+ </xsl:when>
130
+ <!-- positive xrefstyle already handles it -->
131
+ <xsl:when test="not(starts-with(normalize-space($xrefstyle), 'select:')
132
+ and (contains($xrefstyle, 'page')
133
+ or contains($xrefstyle, 'Page')))
134
+ and ( $insert.xref.page.number = 'yes'
135
+ or $insert.xref.page.number = '1')
136
+ or local-name($target) = 'para'">
137
+ <xsl:apply-templates select="$target" mode="page.citation">
138
+ <xsl:with-param name="id" select="$target/@id|$target/@xml:id"/>
139
+ </xsl:apply-templates>
140
+ </xsl:when>
141
+ </xsl:choose>
142
+ </xsl:template>
143
+
144
+ <!-- ==================================================================== -->
145
+
146
+ <!-- Handled largely like an xref -->
147
+ <!-- To be done: add support for begin, end, and units attributes -->
148
+ <xsl:template match="biblioref" name="biblioref">
149
+ <xsl:variable name="targets" select="key('id',@linkend)"/>
150
+ <xsl:variable name="target" select="$targets[1]"/>
151
+ <xsl:variable name="refelem" select="local-name($target)"/>
152
+
153
+ <xsl:call-template name="check.id.unique">
154
+ <xsl:with-param name="linkend" select="@linkend"/>
155
+ </xsl:call-template>
156
+
157
+ <xsl:choose>
158
+ <xsl:when test="$refelem=''">
159
+ <xsl:message>
160
+ <xsl:text>XRef to nonexistent id: </xsl:text>
161
+ <xsl:value-of select="@linkend"/>
162
+ </xsl:message>
163
+ <xsl:text>???</xsl:text>
164
+ </xsl:when>
165
+
166
+ <xsl:when test="@endterm">
167
+ <fo:basic-link internal-destination="{@linkend}"
168
+ xsl:use-attribute-sets="xref.properties">
169
+ <xsl:variable name="etargets" select="key('id',@endterm)"/>
170
+ <xsl:variable name="etarget" select="$etargets[1]"/>
171
+ <xsl:choose>
172
+ <xsl:when test="count($etarget) = 0">
173
+ <xsl:message>
174
+ <xsl:value-of select="count($etargets)"/>
175
+ <xsl:text>Endterm points to nonexistent ID: </xsl:text>
176
+ <xsl:value-of select="@endterm"/>
177
+ </xsl:message>
178
+ <xsl:text>???</xsl:text>
179
+ </xsl:when>
180
+ <xsl:otherwise>
181
+ <xsl:apply-templates select="$etarget" mode="endterm"/>
182
+ </xsl:otherwise>
183
+ </xsl:choose>
184
+ </fo:basic-link>
185
+ </xsl:when>
186
+
187
+ <xsl:when test="$target/@xreflabel">
188
+ <fo:basic-link internal-destination="{@linkend}"
189
+ xsl:use-attribute-sets="xref.properties">
190
+ <xsl:call-template name="xref.xreflabel">
191
+ <xsl:with-param name="target" select="$target"/>
192
+ </xsl:call-template>
193
+ </fo:basic-link>
194
+ </xsl:when>
195
+
196
+ <xsl:otherwise>
197
+ <xsl:if test="not(parent::citation)">
198
+ <xsl:apply-templates select="$target" mode="xref-to-prefix"/>
199
+ </xsl:if>
200
+
201
+ <fo:basic-link internal-destination="{@linkend}"
202
+ xsl:use-attribute-sets="xref.properties">
203
+ <xsl:apply-templates select="$target" mode="xref-to">
204
+ <xsl:with-param name="referrer" select="."/>
205
+ <xsl:with-param name="xrefstyle">
206
+ <xsl:choose>
207
+ <xsl:when test="@role and not(@xrefstyle) and $use.role.as.xrefstyle != 0">
208
+ <xsl:value-of select="@role"/>
209
+ </xsl:when>
210
+ <xsl:otherwise>
211
+ <xsl:value-of select="@xrefstyle"/>
212
+ </xsl:otherwise>
213
+ </xsl:choose>
214
+ </xsl:with-param>
215
+ </xsl:apply-templates>
216
+ </fo:basic-link>
217
+
218
+ <xsl:if test="not(parent::citation)">
219
+ <xsl:apply-templates select="$target" mode="xref-to-suffix"/>
220
+ </xsl:if>
221
+ </xsl:otherwise>
222
+ </xsl:choose>
223
+
224
+ </xsl:template>
225
+
226
+ <!-- ==================================================================== -->
227
+
228
+ <xsl:template match="*" mode="endterm">
229
+ <!-- Process the children of the endterm element -->
230
+ <xsl:variable name="endterm">
231
+ <xsl:apply-templates select="child::node()"/>
232
+ </xsl:variable>
233
+
234
+ <xsl:choose>
235
+ <xsl:when test="function-available('exsl:node-set')">
236
+ <xsl:apply-templates select="exsl:node-set($endterm)" mode="remove-ids"/>
237
+ </xsl:when>
238
+ <xsl:otherwise>
239
+ <xsl:copy-of select="$endterm"/>
240
+ </xsl:otherwise>
241
+ </xsl:choose>
242
+ </xsl:template>
243
+
244
+ <xsl:template match="*" mode="remove-ids">
245
+ <xsl:copy>
246
+ <xsl:for-each select="@*">
247
+ <xsl:choose>
248
+ <xsl:when test="name(.) != 'id'">
249
+ <xsl:copy/>
250
+ </xsl:when>
251
+ <xsl:otherwise>
252
+ <xsl:message>removing <xsl:value-of select="name(.)"/></xsl:message>
253
+ </xsl:otherwise>
254
+ </xsl:choose>
255
+ </xsl:for-each>
256
+ <xsl:apply-templates mode="remove-ids"/>
257
+ </xsl:copy>
258
+ </xsl:template>
259
+
260
+ <!--- ==================================================================== -->
261
+
262
+ <xsl:template match="*" mode="xref-to-prefix"/>
263
+ <xsl:template match="*" mode="xref-to-suffix"/>
264
+
265
+ <xsl:template match="*" mode="xref-to">
266
+ <xsl:param name="referrer"/>
267
+ <xsl:param name="xrefstyle"/>
268
+ <xsl:param name="verbose" select="1"/>
269
+
270
+
271
+ <xsl:if test="$verbose != 0">
272
+ <xsl:message>
273
+ <xsl:text>Don't know what gentext to create for xref to: "</xsl:text>
274
+ <xsl:value-of select="name(.)"/>
275
+ <xsl:text>"</xsl:text>
276
+ </xsl:message>
277
+ <xsl:text>???</xsl:text>
278
+ </xsl:if>
279
+ </xsl:template>
280
+
281
+ <xsl:template match="title" mode="xref-to">
282
+ <xsl:param name="referrer"/>
283
+ <xsl:param name="xrefstyle"/>
284
+ <xsl:param name="verbose" select="1"/>
285
+
286
+ <!-- if you xref to a title, xref to the parent... -->
287
+ <xsl:choose>
288
+ <!-- FIXME: how reliable is this? -->
289
+ <xsl:when test="contains(local-name(parent::*), 'info')">
290
+ <xsl:apply-templates select="parent::*[2]" mode="xref-to">
291
+ <xsl:with-param name="referrer" select="$referrer"/>
292
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
293
+ <xsl:with-param name="verbose" select="$verbose"/>
294
+ </xsl:apply-templates>
295
+ </xsl:when>
296
+ <xsl:otherwise>
297
+ <xsl:apply-templates select="parent::*" mode="xref-to">
298
+ <xsl:with-param name="referrer" select="$referrer"/>
299
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
300
+ <xsl:with-param name="verbose" select="$verbose"/>
301
+ </xsl:apply-templates>
302
+ </xsl:otherwise>
303
+ </xsl:choose>
304
+ </xsl:template>
305
+
306
+ <xsl:template match="abstract|article|authorblurb|bibliodiv|bibliomset
307
+ |biblioset|blockquote|calloutlist|caution|colophon
308
+ |constraintdef|formalpara|glossdiv|important|indexdiv
309
+ |itemizedlist|legalnotice|lot|msg|msgexplan|msgmain
310
+ |msgrel|msgset|msgsub|note|orderedlist|partintro
311
+ |productionset|qandadiv|refsynopsisdiv|segmentedlist
312
+ |set|setindex|sidebar|tip|toc|variablelist|warning"
313
+ mode="xref-to">
314
+ <xsl:param name="referrer"/>
315
+ <xsl:param name="xrefstyle"/>
316
+ <xsl:param name="verbose" select="1"/>
317
+
318
+ <!-- catch-all for things with (possibly optional) titles -->
319
+ <xsl:apply-templates select="." mode="object.xref.markup">
320
+ <xsl:with-param name="purpose" select="'xref'"/>
321
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
322
+ <xsl:with-param name="referrer" select="$referrer"/>
323
+ <xsl:with-param name="verbose" select="$verbose"/>
324
+ </xsl:apply-templates>
325
+ </xsl:template>
326
+
327
+ <xsl:template match="author|editor|othercredit|personname" mode="xref-to">
328
+ <xsl:param name="referrer"/>
329
+ <xsl:param name="xrefstyle"/>
330
+ <xsl:param name="verbose" select="1"/>
331
+
332
+ <xsl:call-template name="person.name"/>
333
+ </xsl:template>
334
+
335
+ <xsl:template match="authorgroup" mode="xref-to">
336
+ <xsl:param name="referrer"/>
337
+ <xsl:param name="xrefstyle"/>
338
+ <xsl:param name="verbose" select="1"/>
339
+
340
+ <xsl:call-template name="person.name.list"/>
341
+ </xsl:template>
342
+
343
+ <xsl:template match="figure|example|table|equation" mode="xref-to">
344
+ <xsl:param name="referrer"/>
345
+ <xsl:param name="xrefstyle"/>
346
+ <xsl:param name="verbose" select="1"/>
347
+
348
+ <xsl:apply-templates select="." mode="object.xref.markup">
349
+ <xsl:with-param name="purpose" select="'xref'"/>
350
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
351
+ <xsl:with-param name="referrer" select="$referrer"/>
352
+ <xsl:with-param name="verbose" select="$verbose"/>
353
+ </xsl:apply-templates>
354
+ </xsl:template>
355
+
356
+ <xsl:template match="procedure" mode="xref-to">
357
+ <xsl:param name="referrer"/>
358
+ <xsl:param name="xrefstyle"/>
359
+ <xsl:param name="verbose"/>
360
+
361
+ <xsl:apply-templates select="." mode="object.xref.markup">
362
+ <xsl:with-param name="purpose" select="'xref'"/>
363
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
364
+ <xsl:with-param name="referrer" select="$referrer"/>
365
+ <xsl:with-param name="verbose" select="$verbose"/>
366
+ </xsl:apply-templates>
367
+ </xsl:template>
368
+
369
+ <xsl:template match="task" mode="xref-to">
370
+ <xsl:param name="referrer"/>
371
+ <xsl:param name="xrefstyle"/>
372
+ <xsl:param name="verbose"/>
373
+
374
+ <xsl:apply-templates select="." mode="object.xref.markup">
375
+ <xsl:with-param name="purpose" select="'xref'"/>
376
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
377
+ <xsl:with-param name="referrer" select="$referrer"/>
378
+ <xsl:with-param name="verbose" select="$verbose"/>
379
+ </xsl:apply-templates>
380
+ </xsl:template>
381
+
382
+ <xsl:template match="cmdsynopsis" mode="xref-to">
383
+ <xsl:param name="referrer"/>
384
+ <xsl:param name="xrefstyle"/>
385
+ <xsl:param name="verbose" select="1"/>
386
+
387
+ <xsl:apply-templates select="(.//command)[1]" mode="xref"/>
388
+ </xsl:template>
389
+
390
+ <xsl:template match="funcsynopsis" mode="xref-to">
391
+ <xsl:param name="referrer"/>
392
+ <xsl:param name="xrefstyle"/>
393
+ <xsl:param name="verbose" select="1"/>
394
+
395
+ <xsl:apply-templates select="(.//function)[1]" mode="xref"/>
396
+ </xsl:template>
397
+
398
+ <xsl:template match="dedication|preface|chapter|appendix" mode="xref-to">
399
+ <xsl:param name="referrer"/>
400
+ <xsl:param name="xrefstyle"/>
401
+ <xsl:param name="verbose" select="1"/>
402
+
403
+ <xsl:apply-templates select="." mode="object.xref.markup">
404
+ <xsl:with-param name="purpose" select="'xref'"/>
405
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
406
+ <xsl:with-param name="referrer" select="$referrer"/>
407
+ <xsl:with-param name="verbose" select="$verbose"/>
408
+ </xsl:apply-templates>
409
+ </xsl:template>
410
+
411
+ <xsl:template match="bibliography" mode="xref-to">
412
+ <xsl:param name="referrer"/>
413
+ <xsl:param name="xrefstyle"/>
414
+ <xsl:param name="verbose" select="1"/>
415
+
416
+ <xsl:apply-templates select="." mode="object.xref.markup">
417
+ <xsl:with-param name="purpose" select="'xref'"/>
418
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
419
+ <xsl:with-param name="referrer" select="$referrer"/>
420
+ <xsl:with-param name="verbose" select="$verbose"/>
421
+ </xsl:apply-templates>
422
+ </xsl:template>
423
+
424
+ <xsl:template match="biblioentry|bibliomixed" mode="xref-to-prefix">
425
+ <xsl:text>[</xsl:text>
426
+ </xsl:template>
427
+
428
+ <xsl:template match="biblioentry|bibliomixed" mode="xref-to-suffix">
429
+ <xsl:text>]</xsl:text>
430
+ </xsl:template>
431
+
432
+ <xsl:template match="biblioentry|bibliomixed" mode="xref-to">
433
+ <xsl:param name="referrer"/>
434
+ <xsl:param name="xrefstyle"/>
435
+ <xsl:param name="verbose" select="1"/>
436
+
437
+ <!-- handles both biblioentry and bibliomixed -->
438
+ <xsl:choose>
439
+ <xsl:when test="string(.) = ''">
440
+ <xsl:variable name="bib" select="document($bibliography.collection,.)"/>
441
+ <xsl:variable name="id" select="(@id|@xml:id)[1]"/>
442
+ <xsl:variable name="entry" select="$bib/bibliography/
443
+ *[@id=$id or @xml:id=$id][1]"/>
444
+ <xsl:choose>
445
+ <xsl:when test="$entry">
446
+ <xsl:choose>
447
+ <xsl:when test="$bibliography.numbered != 0">
448
+ <xsl:number from="bibliography" count="biblioentry|bibliomixed"
449
+ level="any" format="1"/>
450
+ </xsl:when>
451
+ <xsl:when test="local-name($entry/*[1]) = 'abbrev'">
452
+ <xsl:apply-templates select="$entry/*[1]"/>
453
+ </xsl:when>
454
+ <xsl:otherwise>
455
+ <xsl:value-of select="(@id|@xml:id)[1]"/>
456
+ </xsl:otherwise>
457
+ </xsl:choose>
458
+ </xsl:when>
459
+ <xsl:otherwise>
460
+ <xsl:message>
461
+ <xsl:text>No bibliography entry: </xsl:text>
462
+ <xsl:value-of select="$id"/>
463
+ <xsl:text> found in </xsl:text>
464
+ <xsl:value-of select="$bibliography.collection"/>
465
+ </xsl:message>
466
+ <xsl:value-of select="(@id|@xml:id)[1]"/>
467
+ </xsl:otherwise>
468
+ </xsl:choose>
469
+ </xsl:when>
470
+ <xsl:otherwise>
471
+ <xsl:choose>
472
+ <xsl:when test="$bibliography.numbered != 0">
473
+ <xsl:number from="bibliography" count="biblioentry|bibliomixed"
474
+ level="any" format="1"/>
475
+ </xsl:when>
476
+ <xsl:when test="local-name(*[1]) = 'abbrev'">
477
+ <xsl:apply-templates select="*[1]"/>
478
+ </xsl:when>
479
+ <xsl:otherwise>
480
+ <xsl:value-of select="(@id|@xml:id)[1]"/>
481
+ </xsl:otherwise>
482
+ </xsl:choose>
483
+ </xsl:otherwise>
484
+ </xsl:choose>
485
+ </xsl:template>
486
+
487
+ <xsl:template match="glossary" mode="xref-to">
488
+ <xsl:param name="referrer"/>
489
+ <xsl:param name="xrefstyle"/>
490
+ <xsl:param name="verbose" select="1"/>
491
+
492
+ <xsl:apply-templates select="." mode="object.xref.markup">
493
+ <xsl:with-param name="purpose" select="'xref'"/>
494
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
495
+ <xsl:with-param name="referrer" select="$referrer"/>
496
+ <xsl:with-param name="verbose" select="$verbose"/>
497
+ </xsl:apply-templates>
498
+ </xsl:template>
499
+
500
+ <xsl:template match="glossentry" mode="xref-to">
501
+ <xsl:choose>
502
+ <xsl:when test="$glossentry.show.acronym = 'primary'">
503
+ <xsl:choose>
504
+ <xsl:when test="acronym|abbrev">
505
+ <xsl:apply-templates select="(acronym|abbrev)[1]"/>
506
+ </xsl:when>
507
+ <xsl:otherwise>
508
+ <xsl:apply-templates select="glossterm[1]" mode="xref-to"/>
509
+ </xsl:otherwise>
510
+ </xsl:choose>
511
+ </xsl:when>
512
+ <xsl:otherwise>
513
+ <xsl:apply-templates select="glossterm[1]" mode="xref-to"/>
514
+ </xsl:otherwise>
515
+ </xsl:choose>
516
+ </xsl:template>
517
+
518
+ <xsl:template match="glossterm" mode="xref-to">
519
+ <xsl:apply-templates/>
520
+ </xsl:template>
521
+
522
+ <xsl:template match="index" mode="xref-to">
523
+ <xsl:param name="referrer"/>
524
+ <xsl:param name="xrefstyle"/>
525
+ <xsl:param name="verbose" select="1"/>
526
+
527
+ <xsl:apply-templates select="." mode="object.xref.markup">
528
+ <xsl:with-param name="purpose" select="'xref'"/>
529
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
530
+ <xsl:with-param name="referrer" select="$referrer"/>
531
+ <xsl:with-param name="verbose" select="$verbose"/>
532
+ </xsl:apply-templates>
533
+ </xsl:template>
534
+
535
+ <xsl:template match="listitem" mode="xref-to">
536
+ <xsl:param name="referrer"/>
537
+ <xsl:param name="xrefstyle"/>
538
+ <xsl:param name="verbose" select="1"/>
539
+
540
+ <xsl:apply-templates select="." mode="object.xref.markup">
541
+ <xsl:with-param name="purpose" select="'xref'"/>
542
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
543
+ <xsl:with-param name="referrer" select="$referrer"/>
544
+ <xsl:with-param name="verbose" select="$verbose"/>
545
+ </xsl:apply-templates>
546
+ </xsl:template>
547
+
548
+ <xsl:template match="section|simplesect
549
+ |sect1|sect2|sect3|sect4|sect5
550
+ |refsect1|refsect2|refsect3|refsection" mode="xref-to">
551
+ <xsl:param name="referrer"/>
552
+ <xsl:param name="xrefstyle"/>
553
+ <xsl:param name="verbose" select="1"/>
554
+
555
+ <xsl:apply-templates select="." mode="object.xref.markup">
556
+ <xsl:with-param name="purpose" select="'xref'"/>
557
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
558
+ <xsl:with-param name="referrer" select="$referrer"/>
559
+ <xsl:with-param name="verbose" select="$verbose"/>
560
+ </xsl:apply-templates>
561
+ <!-- What about "in Chapter X"? -->
562
+ </xsl:template>
563
+
564
+ <xsl:template match="bridgehead" mode="xref-to">
565
+ <xsl:param name="referrer"/>
566
+ <xsl:param name="xrefstyle"/>
567
+ <xsl:param name="verbose" select="1"/>
568
+
569
+ <xsl:apply-templates select="." mode="object.xref.markup">
570
+ <xsl:with-param name="purpose" select="'xref'"/>
571
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
572
+ <xsl:with-param name="referrer" select="$referrer"/>
573
+ <xsl:with-param name="verbose" select="$verbose"/>
574
+ </xsl:apply-templates>
575
+ <!-- What about "in Chapter X"? -->
576
+ </xsl:template>
577
+
578
+ <xsl:template match="qandaset" mode="xref-to">
579
+ <xsl:param name="referrer"/>
580
+ <xsl:param name="xrefstyle"/>
581
+ <xsl:param name="verbose" select="1"/>
582
+
583
+ <xsl:apply-templates select="." mode="object.xref.markup">
584
+ <xsl:with-param name="purpose" select="'xref'"/>
585
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
586
+ <xsl:with-param name="referrer" select="$referrer"/>
587
+ <xsl:with-param name="verbose" select="$verbose"/>
588
+ </xsl:apply-templates>
589
+ </xsl:template>
590
+
591
+ <xsl:template match="qandadiv" mode="xref-to">
592
+ <xsl:param name="referrer"/>
593
+ <xsl:param name="xrefstyle"/>
594
+ <xsl:param name="verbose" select="1"/>
595
+
596
+ <xsl:apply-templates select="." mode="object.xref.markup">
597
+ <xsl:with-param name="purpose" select="'xref'"/>
598
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
599
+ <xsl:with-param name="referrer" select="$referrer"/>
600
+ <xsl:with-param name="verbose" select="$verbose"/>
601
+ </xsl:apply-templates>
602
+ </xsl:template>
603
+
604
+ <xsl:template match="qandaentry" mode="xref-to">
605
+ <xsl:param name="referrer"/>
606
+ <xsl:param name="xrefstyle"/>
607
+ <xsl:param name="verbose" select="1"/>
608
+
609
+ <xsl:apply-templates select="question[1]" mode="object.xref.markup">
610
+ <xsl:with-param name="purpose" select="'xref'"/>
611
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
612
+ <xsl:with-param name="referrer" select="$referrer"/>
613
+ <xsl:with-param name="verbose" select="$verbose"/>
614
+ </xsl:apply-templates>
615
+ </xsl:template>
616
+
617
+ <xsl:template match="question|answer" mode="xref-to">
618
+ <xsl:param name="referrer"/>
619
+ <xsl:param name="xrefstyle"/>
620
+ <xsl:param name="verbose" select="1"/>
621
+
622
+ <xsl:apply-templates select="." mode="object.xref.markup">
623
+ <xsl:with-param name="purpose" select="'xref'"/>
624
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
625
+ <xsl:with-param name="referrer" select="$referrer"/>
626
+ <xsl:with-param name="verbose" select="$verbose"/>
627
+ </xsl:apply-templates>
628
+ </xsl:template>
629
+
630
+ <xsl:template match="part|reference" mode="xref-to">
631
+ <xsl:param name="referrer"/>
632
+ <xsl:param name="xrefstyle"/>
633
+ <xsl:param name="verbose" select="1"/>
634
+
635
+ <xsl:apply-templates select="." mode="object.xref.markup">
636
+ <xsl:with-param name="purpose" select="'xref'"/>
637
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
638
+ <xsl:with-param name="referrer" select="$referrer"/>
639
+ <xsl:with-param name="verbose" select="$verbose"/>
640
+ </xsl:apply-templates>
641
+ </xsl:template>
642
+
643
+ <xsl:template match="refentry" mode="xref-to">
644
+ <xsl:param name="referrer"/>
645
+ <xsl:param name="xrefstyle"/>
646
+ <xsl:param name="verbose" select="1"/>
647
+
648
+ <xsl:choose>
649
+ <xsl:when test="refmeta/refentrytitle">
650
+ <xsl:apply-templates select="refmeta/refentrytitle"/>
651
+ </xsl:when>
652
+ <xsl:otherwise>
653
+ <xsl:apply-templates select="refnamediv/refname[1]"/>
654
+ </xsl:otherwise>
655
+ </xsl:choose>
656
+ <xsl:apply-templates select="refmeta/manvolnum"/>
657
+ </xsl:template>
658
+
659
+ <xsl:template match="refnamediv" mode="xref-to">
660
+ <xsl:param name="referrer"/>
661
+ <xsl:param name="xrefstyle"/>
662
+ <xsl:param name="verbose" select="1"/>
663
+
664
+ <xsl:apply-templates select="refname[1]" mode="xref-to">
665
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
666
+ <xsl:with-param name="referrer" select="$referrer"/>
667
+ <xsl:with-param name="verbose" select="$verbose"/>
668
+ </xsl:apply-templates>
669
+ </xsl:template>
670
+
671
+ <xsl:template match="refname" mode="xref-to">
672
+ <xsl:param name="referrer"/>
673
+ <xsl:param name="xrefstyle"/>
674
+ <xsl:param name="verbose" select="1"/>
675
+
676
+ <xsl:apply-templates mode="xref-to">
677
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
678
+ <xsl:with-param name="referrer" select="$referrer"/>
679
+ <xsl:with-param name="verbose" select="$verbose"/>
680
+ </xsl:apply-templates>
681
+ </xsl:template>
682
+
683
+ <xsl:template match="step" mode="xref-to">
684
+ <xsl:param name="referrer"/>
685
+ <xsl:param name="xrefstyle"/>
686
+ <xsl:param name="verbose" select="1"/>
687
+
688
+ <xsl:call-template name="gentext">
689
+ <xsl:with-param name="key" select="'Step'"/>
690
+ </xsl:call-template>
691
+ <xsl:text> </xsl:text>
692
+ <xsl:apply-templates select="." mode="number"/>
693
+ </xsl:template>
694
+
695
+ <xsl:template match="varlistentry" mode="xref-to">
696
+ <xsl:param name="referrer"/>
697
+ <xsl:param name="xrefstyle"/>
698
+ <xsl:param name="verbose" select="1"/>
699
+
700
+ <xsl:apply-templates select="term[1]" mode="xref-to">
701
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
702
+ <xsl:with-param name="referrer" select="$referrer"/>
703
+ <xsl:with-param name="verbose" select="$verbose"/>
704
+ </xsl:apply-templates>
705
+ </xsl:template>
706
+
707
+ <xsl:template match="varlistentry/term" mode="xref-to">
708
+ <xsl:param name="verbose" select="1"/>
709
+ <!-- to avoid the comma that will be generated if there are several terms -->
710
+ <xsl:apply-templates/>
711
+ </xsl:template>
712
+
713
+ <xsl:template match="co" mode="xref-to">
714
+ <xsl:param name="referrer"/>
715
+ <xsl:param name="xrefstyle"/>
716
+ <xsl:param name="verbose" select="1"/>
717
+
718
+ <xsl:apply-templates select="." mode="callout-bug"/>
719
+ </xsl:template>
720
+
721
+ <xsl:template match="area|areaset" mode="xref-to">
722
+ <xsl:param name="referrer"/>
723
+ <xsl:param name="xrefstyle"/>
724
+
725
+ <xsl:call-template name="callout-bug">
726
+ <xsl:with-param name="conum">
727
+ <xsl:apply-templates select="." mode="conumber"/>
728
+ </xsl:with-param>
729
+ </xsl:call-template>
730
+ </xsl:template>
731
+
732
+ <xsl:template match="book" mode="xref-to">
733
+ <xsl:param name="referrer"/>
734
+ <xsl:param name="xrefstyle"/>
735
+ <xsl:param name="verbose" select="1"/>
736
+
737
+ <xsl:apply-templates select="." mode="object.xref.markup">
738
+ <xsl:with-param name="purpose" select="'xref'"/>
739
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
740
+ <xsl:with-param name="referrer" select="$referrer"/>
741
+ <xsl:with-param name="verbose" select="$verbose"/>
742
+ </xsl:apply-templates>
743
+ </xsl:template>
744
+
745
+ <xsl:template match="para" mode="xref-to">
746
+ <xsl:param name="referrer"/>
747
+ <xsl:param name="xrefstyle"/>
748
+ <xsl:param name="verbose"/>
749
+
750
+ <xsl:variable name="context" select="(ancestor::simplesect
751
+ |ancestor::section
752
+ |ancestor::sect1
753
+ |ancestor::sect2
754
+ |ancestor::sect3
755
+ |ancestor::sect4
756
+ |ancestor::sect5
757
+ |ancestor::refsection
758
+ |ancestor::refsect1
759
+ |ancestor::refsect2
760
+ |ancestor::refsect3
761
+ |ancestor::chapter
762
+ |ancestor::appendix
763
+ |ancestor::preface
764
+ |ancestor::partintro
765
+ |ancestor::dedication
766
+ |ancestor::colophon
767
+ |ancestor::bibliography
768
+ |ancestor::index
769
+ |ancestor::glossary
770
+ |ancestor::glossentry
771
+ |ancestor::listitem
772
+ |ancestor::varlistentry)[last()]"/>
773
+
774
+ <xsl:apply-templates select="$context" mode="xref-to">
775
+ <xsl:with-param name="xrefstyle" select="$xrefstyle"/>
776
+ <xsl:with-param name="referrer" select="$referrer"/>
777
+ <xsl:with-param name="verbose" select="$verbose"/>
778
+ </xsl:apply-templates>
779
+ </xsl:template>
780
+
781
+ <!-- ==================================================================== -->
782
+
783
+ <xsl:template match="link" name="link">
784
+ <xsl:param name="linkend" select="@linkend"/>
785
+ <xsl:param name="targets" select="key('id',$linkend)"/>
786
+ <xsl:param name="target" select="$targets[1]"/>
787
+
788
+ <xsl:variable name="xrefstyle">
789
+ <xsl:choose>
790
+ <xsl:when test="@role and not(@xrefstyle)
791
+ and $use.role.as.xrefstyle != 0">
792
+ <xsl:value-of select="@role"/>
793
+ </xsl:when>
794
+ <xsl:otherwise>
795
+ <xsl:value-of select="@xrefstyle"/>
796
+ </xsl:otherwise>
797
+ </xsl:choose>
798
+ </xsl:variable>
799
+
800
+ <xsl:variable name="content">
801
+ <fo:inline xsl:use-attribute-sets="xref.properties">
802
+ <xsl:choose>
803
+ <xsl:when test="count(child::node()) &gt; 0">
804
+ <!-- If it has content, use it -->
805
+ <xsl:apply-templates/>
806
+ </xsl:when>
807
+ <!-- look for an endterm -->
808
+ <xsl:when test="@endterm">
809
+ <xsl:variable name="etargets" select="key('id',@endterm)"/>
810
+ <xsl:variable name="etarget" select="$etargets[1]"/>
811
+ <xsl:choose>
812
+ <xsl:when test="count($etarget) = 0">
813
+ <xsl:message>
814
+ <xsl:value-of select="count($etargets)"/>
815
+ <xsl:text>Endterm points to nonexistent ID: </xsl:text>
816
+ <xsl:value-of select="@endterm"/>
817
+ </xsl:message>
818
+ <xsl:text>???</xsl:text>
819
+ </xsl:when>
820
+ <xsl:otherwise>
821
+ <xsl:apply-templates select="$etarget" mode="endterm"/>
822
+ </xsl:otherwise>
823
+ </xsl:choose>
824
+ </xsl:when>
825
+ <!-- Use the xlink:href if no other text -->
826
+ <xsl:when test="@xlink:href">
827
+ <xsl:value-of select="@xlink:href"/>
828
+ </xsl:when>
829
+ <xsl:otherwise>
830
+ <xsl:message>
831
+ <xsl:text>Link element has no content and no Endterm. </xsl:text>
832
+ <xsl:text>Nothing to show in the link to </xsl:text>
833
+ <xsl:value-of select="$target"/>
834
+ </xsl:message>
835
+ <xsl:text>???</xsl:text>
836
+ </xsl:otherwise>
837
+ </xsl:choose>
838
+ </fo:inline>
839
+ </xsl:variable>
840
+
841
+ <xsl:call-template name="simple.xlink">
842
+ <xsl:with-param name="node" select="."/>
843
+ <xsl:with-param name="linkend" select="$linkend"/>
844
+ <xsl:with-param name="content" select="$content"/>
845
+ </xsl:call-template>
846
+
847
+ <!-- Add standard page reference? -->
848
+ <xsl:choose>
849
+ <!-- page numbering on link only enabled for @linkend -->
850
+ <!-- There is no link element in DB5 with xlink:href -->
851
+ <xsl:when test="not($linkend)">
852
+ </xsl:when>
853
+ <!-- negative xrefstyle in instance turns it off -->
854
+ <xsl:when test="starts-with(normalize-space($xrefstyle), 'select:')
855
+ and contains($xrefstyle, 'nopage')">
856
+ </xsl:when>
857
+ <xsl:when test="(starts-with(normalize-space($xrefstyle), 'select:')
858
+ and $insert.link.page.number = 'maybe'
859
+ and (contains($xrefstyle, 'page')
860
+ or contains($xrefstyle, 'Page')))
861
+ or ( $insert.link.page.number = 'yes'
862
+ or $insert.link.page.number = '1')
863
+ or local-name($target) = 'para'">
864
+ <xsl:apply-templates select="$target" mode="page.citation">
865
+ <xsl:with-param name="id" select="$linkend"/>
866
+ </xsl:apply-templates>
867
+ </xsl:when>
868
+ </xsl:choose>
869
+ </xsl:template>
870
+
871
+ <xsl:template match="ulink" name="ulink">
872
+ <xsl:param name="url" select="@url"/>
873
+
874
+ <xsl:variable name ="ulink.url">
875
+ <xsl:call-template name="fo-external-image">
876
+ <xsl:with-param name="filename" select="$url"/>
877
+ </xsl:call-template>
878
+ </xsl:variable>
879
+
880
+ <fo:basic-link xsl:use-attribute-sets="xref.properties"
881
+ external-destination="{$ulink.url}">
882
+ <xsl:choose>
883
+ <xsl:when test="count(child::node())=0">
884
+ <xsl:call-template name="hyphenate-url">
885
+ <xsl:with-param name="url" select="$url"/>
886
+ </xsl:call-template>
887
+ </xsl:when>
888
+ <xsl:otherwise>
889
+ <xsl:apply-templates/>
890
+ </xsl:otherwise>
891
+ </xsl:choose>
892
+ </fo:basic-link>
893
+ <!-- * Call the template for determining whether the URL for this -->
894
+ <!-- * hyperlink is displayed, and how to display it (either inline or -->
895
+ <!-- * as a numbered footnote). -->
896
+ <xsl:call-template name="hyperlink.url.display">
897
+ <xsl:with-param name="url" select="$url"/>
898
+ <xsl:with-param name="ulink.url" select="$ulink.url"/>
899
+ </xsl:call-template>
900
+ </xsl:template>
901
+
902
+ <xsl:template name="hyperlink.url.display">
903
+ <!-- * This template is called for all external hyperlinks (ulinks and -->
904
+ <!-- * for all simple xlinks); it determines whether the URL for the -->
905
+ <!-- * hyperlink is displayed, and how to display it (either inline or -->
906
+ <!-- * as a numbered footnote). -->
907
+ <xsl:param name="url"/>
908
+ <xsl:param name="ulink.url">
909
+ <!-- * ulink.url is just the value of the URL wrapped in 'url(...)' -->
910
+ <xsl:call-template name="fo-external-image">
911
+ <xsl:with-param name="filename" select="$url"/>
912
+ </xsl:call-template>
913
+ </xsl:param>
914
+
915
+ <xsl:if test="count(child::node()) != 0
916
+ and string(.) != $url
917
+ and $ulink.show != 0">
918
+ <!-- * Display the URL for this hyperlink only if it is non-empty, -->
919
+ <!-- * and the value of its content is not a URL that is the same as -->
920
+ <!-- * URL it links to, and if ulink.show is non-zero. -->
921
+ <xsl:choose>
922
+ <xsl:when test="$ulink.footnotes != 0 and not(ancestor::footnote)">
923
+ <!-- * ulink.show and ulink.footnote are both non-zero; that -->
924
+ <!-- * means we display the URL as a footnote (instead of inline) -->
925
+ <fo:footnote>
926
+ <xsl:call-template name="ulink.footnote.number"/>
927
+ <fo:footnote-body xsl:use-attribute-sets="footnote.properties">
928
+ <fo:block>
929
+ <xsl:call-template name="ulink.footnote.number"/>
930
+ <xsl:text> </xsl:text>
931
+ <fo:basic-link external-destination="{$ulink.url}">
932
+ <xsl:value-of select="$url"/>
933
+ </fo:basic-link>
934
+ </fo:block>
935
+ </fo:footnote-body>
936
+ </fo:footnote>
937
+ </xsl:when>
938
+ <xsl:otherwise>
939
+ <!-- * ulink.show is non-zero, but ulink.footnote is not; that -->
940
+ <!-- * means we display the URL inline -->
941
+ <fo:inline hyphenate="false">
942
+ <!-- * put square brackets around the URL -->
943
+ <xsl:text> [</xsl:text>
944
+ <fo:basic-link external-destination="{$ulink.url}">
945
+ <xsl:call-template name="hyphenate-url">
946
+ <xsl:with-param name="url" select="$url"/>
947
+ </xsl:call-template>
948
+ </fo:basic-link>
949
+ <xsl:text>]</xsl:text>
950
+ </fo:inline>
951
+ </xsl:otherwise>
952
+ </xsl:choose>
953
+ </xsl:if>
954
+
955
+ </xsl:template>
956
+
957
+ <xsl:template name="ulink.footnote.number">
958
+ <fo:inline xsl:use-attribute-sets="footnote.mark.properties">
959
+ <xsl:choose>
960
+ <xsl:when test="$fop.extensions != 0">
961
+ <xsl:attribute name="vertical-align">super</xsl:attribute>
962
+ </xsl:when>
963
+ <xsl:otherwise>
964
+ <xsl:attribute name="baseline-shift">super</xsl:attribute>
965
+ </xsl:otherwise>
966
+ </xsl:choose>
967
+ <xsl:variable name="fnum">
968
+ <!-- * Determine the footnote number to display for this hyperlink, -->
969
+ <!-- * by counting all foonotes, ulinks, and any elements that have -->
970
+ <!-- * an xlink:href attribute that meets the following criteria: -->
971
+ <!-- * -->
972
+ <!-- * - the content of the element is not a URI that is the same -->
973
+ <!-- * URI as the value of the href attribute -->
974
+ <!-- * - the href attribute is not an internal ID reference (does -->
975
+ <!-- * not start with a hash sign) -->
976
+ <!-- * - the href is not part of an olink reference (the element -->
977
+ <!-- * - does not have an xlink:role attribute that indicates it is -->
978
+ <!-- * an olink, and the href does not contain a hash sign) -->
979
+ <!-- * - the element either has no xlink:type attribute or has -->
980
+ <!-- * an xlink:type attribute whose value is 'simple' -->
981
+ <!-- FIXME: list in @from is probably not complete -->
982
+ <xsl:number level="any"
983
+ from="chapter|appendix|preface|article|refentry|bibliography[not(parent::article)]"
984
+ count="footnote[not(@label)][not(ancestor::tgroup)]
985
+ |ulink[node()][@url != .][not(ancestor::footnote)]
986
+ |*[node()][@xlink:href][not(@xlink:href = .)][not(starts-with(@xlink:href,'#'))]
987
+ [not(contains(@xlink:href,'#') and @xlink:role = $xolink.role)]
988
+ [not(@xlink:type) or @xlink:type='simple']
989
+ [not(ancestor::footnote)]"
990
+ format="1"/>
991
+ </xsl:variable>
992
+ <xsl:choose>
993
+ <xsl:when test="string-length($footnote.number.symbols) &gt;= $fnum">
994
+ <xsl:value-of select="substring($footnote.number.symbols, $fnum, 1)"/>
995
+ </xsl:when>
996
+ <xsl:otherwise>
997
+ <xsl:number value="$fnum" format="{$footnote.number.format}"/>
998
+ </xsl:otherwise>
999
+ </xsl:choose>
1000
+ </fo:inline>
1001
+ </xsl:template>
1002
+
1003
+ <xsl:template name="hyphenate-url">
1004
+ <xsl:param name="url" select="''"/>
1005
+ <xsl:choose>
1006
+ <xsl:when test="$ulink.hyphenate = ''">
1007
+ <xsl:value-of select="$url"/>
1008
+ </xsl:when>
1009
+ <xsl:when test="string-length($url) &gt; 1">
1010
+ <xsl:variable name="char" select="substring($url, 1, 1)"/>
1011
+ <xsl:value-of select="$char"/>
1012
+ <xsl:if test="contains($ulink.hyphenate.chars, $char)">
1013
+ <!-- Do not hyphen in-between // -->
1014
+ <xsl:if test="not($char = '/' and substring($url,2,1) = '/')">
1015
+ <xsl:copy-of select="$ulink.hyphenate"/>
1016
+ </xsl:if>
1017
+ </xsl:if>
1018
+ <!-- recurse to the next character -->
1019
+ <xsl:call-template name="hyphenate-url">
1020
+ <xsl:with-param name="url" select="substring($url, 2)"/>
1021
+ </xsl:call-template>
1022
+ </xsl:when>
1023
+ <xsl:otherwise>
1024
+ <xsl:value-of select="$url"/>
1025
+ </xsl:otherwise>
1026
+ </xsl:choose>
1027
+ </xsl:template>
1028
+
1029
+ <xsl:template match="olink" name="olink">
1030
+ <!-- olink content may be passed in from xlink olink -->
1031
+ <xsl:param name="content" select="NOTANELEMENT"/>
1032
+
1033
+ <xsl:call-template name="anchor"/>
1034
+
1035
+ <xsl:variable name="localinfo" select="@localinfo"/>
1036
+
1037
+ <xsl:choose>
1038
+ <!-- olinks resolved by stylesheet and target database -->
1039
+ <xsl:when test="@targetdoc or @targetptr or
1040
+ (@xlink:role=$xolink.role and
1041
+ contains(@xlink:href, '#') )" >
1042
+
1043
+ <xsl:variable name="targetdoc.att">
1044
+ <xsl:choose>
1045
+ <xsl:when test="@targetdoc != ''">
1046
+ <xsl:value-of select="@targetdoc"/>
1047
+ </xsl:when>
1048
+ <xsl:when test="@xlink:role=$xolink.role and
1049
+ contains(@xlink:href, '#')" >
1050
+ <xsl:value-of select="substring-before(@xlink:href, '#')"/>
1051
+ </xsl:when>
1052
+ </xsl:choose>
1053
+ </xsl:variable>
1054
+
1055
+ <xsl:variable name="targetptr.att">
1056
+ <xsl:choose>
1057
+ <xsl:when test="@targetptr != ''">
1058
+ <xsl:value-of select="@targetptr"/>
1059
+ </xsl:when>
1060
+ <xsl:when test="@xlink:role=$xolink.role and
1061
+ contains(@xlink:href, '#')" >
1062
+ <xsl:value-of select="substring-after(@xlink:href, '#')"/>
1063
+ </xsl:when>
1064
+ </xsl:choose>
1065
+ </xsl:variable>
1066
+
1067
+ <xsl:variable name="olink.lang">
1068
+ <xsl:call-template name="l10n.language">
1069
+ <xsl:with-param name="xref-context" select="true()"/>
1070
+ </xsl:call-template>
1071
+ </xsl:variable>
1072
+
1073
+ <xsl:variable name="target.database.filename">
1074
+ <xsl:call-template name="select.target.database">
1075
+ <xsl:with-param name="targetdoc.att" select="$targetdoc.att"/>
1076
+ <xsl:with-param name="targetptr.att" select="$targetptr.att"/>
1077
+ <xsl:with-param name="olink.lang" select="$olink.lang"/>
1078
+ </xsl:call-template>
1079
+ </xsl:variable>
1080
+
1081
+ <xsl:variable name="target.database"
1082
+ select="document($target.database.filename, /)"/>
1083
+
1084
+ <xsl:if test="$olink.debug != 0">
1085
+ <xsl:message>
1086
+ <xsl:text>Olink debug: root element of target.database is '</xsl:text>
1087
+ <xsl:value-of select="local-name($target.database/*[1])"/>
1088
+ <xsl:text>'.</xsl:text>
1089
+ </xsl:message>
1090
+ </xsl:if>
1091
+
1092
+ <xsl:variable name="olink.key">
1093
+ <xsl:call-template name="select.olink.key">
1094
+ <xsl:with-param name="targetdoc.att" select="$targetdoc.att"/>
1095
+ <xsl:with-param name="targetptr.att" select="$targetptr.att"/>
1096
+ <xsl:with-param name="olink.lang" select="$olink.lang"/>
1097
+ <xsl:with-param name="target.database" select="$target.database"/>
1098
+ </xsl:call-template>
1099
+ </xsl:variable>
1100
+
1101
+ <xsl:if test="string-length($olink.key) = 0">
1102
+ <xsl:message>
1103
+ <xsl:text>Error: unresolved olink: </xsl:text>
1104
+ <xsl:text>targetdoc/targetptr = '</xsl:text>
1105
+ <xsl:value-of select="$targetdoc.att"/>
1106
+ <xsl:text>/</xsl:text>
1107
+ <xsl:value-of select="$targetptr.att"/>
1108
+ <xsl:text>'.</xsl:text>
1109
+ </xsl:message>
1110
+ </xsl:if>
1111
+
1112
+ <xsl:variable name="href">
1113
+ <xsl:call-template name="make.olink.href">
1114
+ <xsl:with-param name="olink.key" select="$olink.key"/>
1115
+ <xsl:with-param name="target.database" select="$target.database"/>
1116
+ </xsl:call-template>
1117
+ </xsl:variable>
1118
+
1119
+ <!-- Olink that points to internal id can be a link -->
1120
+ <xsl:variable name="linkend">
1121
+ <xsl:call-template name="olink.as.linkend">
1122
+ <xsl:with-param name="olink.key" select="$olink.key"/>
1123
+ <xsl:with-param name="olink.lang" select="$olink.lang"/>
1124
+ <xsl:with-param name="target.database" select="$target.database"/>
1125
+ </xsl:call-template>
1126
+ </xsl:variable>
1127
+
1128
+ <xsl:variable name="hottext">
1129
+ <xsl:choose>
1130
+ <xsl:when test="$content">
1131
+ <xsl:copy-of select="$content"/>
1132
+ </xsl:when>
1133
+ <xsl:otherwise>
1134
+ <xsl:call-template name="olink.hottext">
1135
+ <xsl:with-param name="olink.key" select="$olink.key"/>
1136
+ <xsl:with-param name="olink.lang" select="$olink.lang"/>
1137
+ <xsl:with-param name="target.database" select="$target.database"/>
1138
+ </xsl:call-template>
1139
+ </xsl:otherwise>
1140
+ </xsl:choose>
1141
+ </xsl:variable>
1142
+
1143
+ <xsl:variable name="olink.docname.citation">
1144
+ <xsl:call-template name="olink.document.citation">
1145
+ <xsl:with-param name="olink.key" select="$olink.key"/>
1146
+ <xsl:with-param name="target.database" select="$target.database"/>
1147
+ <xsl:with-param name="olink.lang" select="$olink.lang"/>
1148
+ </xsl:call-template>
1149
+ </xsl:variable>
1150
+
1151
+ <xsl:variable name="olink.page.citation">
1152
+ <xsl:call-template name="olink.page.citation">
1153
+ <xsl:with-param name="olink.key" select="$olink.key"/>
1154
+ <xsl:with-param name="target.database" select="$target.database"/>
1155
+ <xsl:with-param name="olink.lang" select="$olink.lang"/>
1156
+ <xsl:with-param name="linkend" select="$linkend"/>
1157
+ </xsl:call-template>
1158
+ </xsl:variable>
1159
+
1160
+ <xsl:choose>
1161
+ <xsl:when test="$linkend != ''">
1162
+ <fo:basic-link internal-destination="{$linkend}"
1163
+ xsl:use-attribute-sets="xref.properties">
1164
+ <xsl:copy-of select="$hottext"/>
1165
+ <xsl:copy-of select="$olink.page.citation"/>
1166
+ </fo:basic-link>
1167
+ </xsl:when>
1168
+ <xsl:when test="$href != ''">
1169
+ <xsl:choose>
1170
+ <xsl:when test="$xep.extensions != 0">
1171
+ <fo:basic-link external-destination="url({$href})"
1172
+ xsl:use-attribute-sets="olink.properties">
1173
+ <xsl:copy-of select="$hottext"/>
1174
+ </fo:basic-link>
1175
+ <xsl:copy-of select="$olink.page.citation"/>
1176
+ <xsl:copy-of select="$olink.docname.citation"/>
1177
+ </xsl:when>
1178
+ <xsl:when test="$axf.extensions != 0">
1179
+ <fo:basic-link external-destination="{$href}"
1180
+ xsl:use-attribute-sets="olink.properties">
1181
+ <xsl:copy-of select="$hottext"/>
1182
+ </fo:basic-link>
1183
+ <xsl:copy-of select="$olink.page.citation"/>
1184
+ <xsl:copy-of select="$olink.docname.citation"/>
1185
+ </xsl:when>
1186
+ <xsl:otherwise>
1187
+ <fo:basic-link external-destination="{$href}"
1188
+ xsl:use-attribute-sets="olink.properties">
1189
+ <xsl:copy-of select="$hottext"/>
1190
+ </fo:basic-link>
1191
+ <xsl:copy-of select="$olink.page.citation"/>
1192
+ <xsl:copy-of select="$olink.docname.citation"/>
1193
+ </xsl:otherwise>
1194
+ </xsl:choose>
1195
+ </xsl:when>
1196
+ <xsl:otherwise>
1197
+ <xsl:copy-of select="$hottext"/>
1198
+ <xsl:copy-of select="$olink.page.citation"/>
1199
+ <xsl:copy-of select="$olink.docname.citation"/>
1200
+ </xsl:otherwise>
1201
+ </xsl:choose>
1202
+ </xsl:when>
1203
+
1204
+ <!-- olink never implemented in FO for old olink entity syntax -->
1205
+ <xsl:otherwise>
1206
+ <xsl:apply-templates/>
1207
+ </xsl:otherwise>
1208
+ </xsl:choose>
1209
+ </xsl:template>
1210
+
1211
+ <xsl:template match="*" mode="insert.olink.docname.markup">
1212
+ <xsl:param name="docname" select="''"/>
1213
+
1214
+ <fo:inline font-style="italic">
1215
+ <xsl:value-of select="$docname"/>
1216
+ </fo:inline>
1217
+
1218
+ </xsl:template>
1219
+
1220
+ <!-- This prevents error message when processing olinks with xrefstyle -->
1221
+ <xsl:template match="olink" mode="object.xref.template"/>
1222
+
1223
+
1224
+ <xsl:template name="olink.as.linkend">
1225
+ <xsl:param name="olink.key" select="''"/>
1226
+ <xsl:param name="olink.lang" select="''"/>
1227
+ <xsl:param name="target.database" select="NotANode"/>
1228
+
1229
+ <xsl:variable name="targetdoc">
1230
+ <xsl:value-of select="substring-before($olink.key, '/')"/>
1231
+ </xsl:variable>
1232
+
1233
+ <xsl:variable name="targetptr">
1234
+ <xsl:value-of
1235
+ select="substring-before(substring-after($olink.key, '/'), '/')"/>
1236
+ </xsl:variable>
1237
+
1238
+ <xsl:variable name="target.lang">
1239
+ <xsl:variable name="candidate">
1240
+ <xsl:for-each select="$target.database" >
1241
+ <xsl:value-of
1242
+ select="key('targetptr-key', $olink.key)/@lang" />
1243
+ </xsl:for-each>
1244
+ </xsl:variable>
1245
+ <xsl:choose>
1246
+ <xsl:when test="$candidate != ''">
1247
+ <xsl:value-of select="$candidate"/>
1248
+ </xsl:when>
1249
+ <xsl:otherwise>
1250
+ <xsl:value-of select="$olink.lang"/>
1251
+ </xsl:otherwise>
1252
+ </xsl:choose>
1253
+ </xsl:variable>
1254
+
1255
+ <xsl:if test="$current.docid = $targetdoc and
1256
+ $olink.lang = $target.lang">
1257
+ <xsl:variable name="targets" select="key('id',$targetptr)"/>
1258
+ <xsl:variable name="target" select="$targets[1]"/>
1259
+ <xsl:if test="$target">
1260
+ <xsl:value-of select="$targetptr"/>
1261
+ </xsl:if>
1262
+ </xsl:if>
1263
+
1264
+ </xsl:template>
1265
+
1266
+
1267
+ <xsl:template name="olink.outline">
1268
+ <xsl:param name="outline.base.uri"/>
1269
+ <xsl:param name="localinfo"/>
1270
+ <xsl:param name="return" select="href"/>
1271
+
1272
+ <xsl:message terminate="yes">Fatal error: olink.outline template: what is this supposed to do?</xsl:message>
1273
+ </xsl:template>
1274
+
1275
+ <!-- ==================================================================== -->
1276
+
1277
+ <xsl:template name="title.xref">
1278
+ <xsl:param name="target" select="."/>
1279
+ <xsl:choose>
1280
+ <xsl:when test="local-name($target) = 'figure'
1281
+ or local-name($target) = 'example'
1282
+ or local-name($target) = 'equation'
1283
+ or local-name($target) = 'table'
1284
+ or local-name($target) = 'dedication'
1285
+ or local-name($target) = 'preface'
1286
+ or local-name($target) = 'bibliography'
1287
+ or local-name($target) = 'glossary'
1288
+ or local-name($target) = 'index'
1289
+ or local-name($target) = 'setindex'
1290
+ or local-name($target) = 'colophon'">
1291
+ <xsl:call-template name="gentext.startquote"/>
1292
+ <xsl:apply-templates select="$target" mode="title.markup"/>
1293
+ <xsl:call-template name="gentext.endquote"/>
1294
+ </xsl:when>
1295
+ <xsl:otherwise>
1296
+ <fo:inline font-style="italic">
1297
+ <xsl:apply-templates select="$target" mode="title.markup"/>
1298
+ </fo:inline>
1299
+ </xsl:otherwise>
1300
+ </xsl:choose>
1301
+ </xsl:template>
1302
+
1303
+ <xsl:template name="number.xref">
1304
+ <xsl:param name="target" select="."/>
1305
+ <xsl:apply-templates select="$target" mode="label.markup"/>
1306
+ </xsl:template>
1307
+
1308
+ <!-- ==================================================================== -->
1309
+
1310
+ <xsl:template name="xref.xreflabel">
1311
+ <!-- called to process an xreflabel...you might use this to make -->
1312
+ <!-- xreflabels come out in the right font for different targets, -->
1313
+ <!-- for example. -->
1314
+ <xsl:param name="target" select="."/>
1315
+ <xsl:value-of select="$target/@xreflabel"/>
1316
+ </xsl:template>
1317
+
1318
+ <!-- ==================================================================== -->
1319
+
1320
+ <xsl:template match="title" mode="xref">
1321
+ <xsl:apply-templates/>
1322
+ </xsl:template>
1323
+
1324
+ <xsl:template match="command" mode="xref">
1325
+ <xsl:call-template name="inline.boldseq"/>
1326
+ </xsl:template>
1327
+
1328
+ <xsl:template match="function" mode="xref">
1329
+ <xsl:call-template name="inline.monoseq"/>
1330
+ </xsl:template>
1331
+
1332
+ <xsl:template match="*" mode="page.citation">
1333
+ <xsl:param name="id" select="'???'"/>
1334
+
1335
+ <fo:basic-link internal-destination="{$id}"
1336
+ xsl:use-attribute-sets="xref.properties">
1337
+ <fo:inline keep-together.within-line="always">
1338
+ <xsl:call-template name="substitute-markup">
1339
+ <xsl:with-param name="template">
1340
+ <xsl:call-template name="gentext.template">
1341
+ <xsl:with-param name="name" select="'page.citation'"/>
1342
+ <xsl:with-param name="context" select="'xref'"/>
1343
+ </xsl:call-template>
1344
+ </xsl:with-param>
1345
+ </xsl:call-template>
1346
+ </fo:inline>
1347
+ </fo:basic-link>
1348
+ </xsl:template>
1349
+
1350
+ <xsl:template match="*" mode="pagenumber.markup">
1351
+ <xsl:variable name="id">
1352
+ <xsl:call-template name="object.id"/>
1353
+ </xsl:variable>
1354
+ <fo:page-number-citation ref-id="{$id}"/>
1355
+ </xsl:template>
1356
+
1357
+ <!-- ==================================================================== -->
1358
+
1359
+ <xsl:template match="*" mode="insert.title.markup">
1360
+ <xsl:param name="purpose"/>
1361
+ <xsl:param name="xrefstyle"/>
1362
+ <xsl:param name="title"/>
1363
+
1364
+ <xsl:choose>
1365
+ <!-- FIXME: what about the case where titleabbrev is inside the info? -->
1366
+ <xsl:when test="$purpose = 'xref' and titleabbrev">
1367
+ <xsl:apply-templates select="." mode="titleabbrev.markup"/>
1368
+ </xsl:when>
1369
+ <xsl:otherwise>
1370
+ <xsl:copy-of select="$title"/>
1371
+ </xsl:otherwise>
1372
+ </xsl:choose>
1373
+ </xsl:template>
1374
+
1375
+ <xsl:template match="chapter|appendix" mode="insert.title.markup">
1376
+ <xsl:param name="purpose"/>
1377
+ <xsl:param name="xrefstyle"/>
1378
+ <xsl:param name="title"/>
1379
+
1380
+ <xsl:choose>
1381
+ <xsl:when test="$purpose = 'xref'">
1382
+ <fo:inline font-style="italic">
1383
+ <xsl:copy-of select="$title"/>
1384
+ </fo:inline>
1385
+ </xsl:when>
1386
+ <xsl:otherwise>
1387
+ <xsl:copy-of select="$title"/>
1388
+ </xsl:otherwise>
1389
+ </xsl:choose>
1390
+ </xsl:template>
1391
+
1392
+ <xsl:template match="*" mode="insert.subtitle.markup">
1393
+ <xsl:param name="purpose"/>
1394
+ <xsl:param name="xrefstyle"/>
1395
+ <xsl:param name="subtitle"/>
1396
+
1397
+ <xsl:copy-of select="$subtitle"/>
1398
+ </xsl:template>
1399
+
1400
+ <xsl:template match="*" mode="insert.label.markup">
1401
+ <xsl:param name="purpose"/>
1402
+ <xsl:param name="xrefstyle"/>
1403
+ <xsl:param name="label"/>
1404
+
1405
+ <xsl:copy-of select="$label"/>
1406
+ </xsl:template>
1407
+
1408
+ <xsl:template match="*" mode="insert.pagenumber.markup">
1409
+ <xsl:param name="purpose"/>
1410
+ <xsl:param name="xrefstyle"/>
1411
+ <xsl:param name="pagenumber"/>
1412
+
1413
+ <xsl:copy-of select="$pagenumber"/>
1414
+ </xsl:template>
1415
+
1416
+ <xsl:template match="*" mode="insert.direction.markup">
1417
+ <xsl:param name="purpose"/>
1418
+ <xsl:param name="xrefstyle"/>
1419
+ <xsl:param name="direction"/>
1420
+
1421
+ <xsl:copy-of select="$direction"/>
1422
+ </xsl:template>
1423
+
1424
+ <xsl:template match="olink" mode="pagenumber.markup">
1425
+ <!-- Local olinks can use page-citation -->
1426
+ <xsl:variable name="targetdoc.att" select="@targetdoc"/>
1427
+ <xsl:variable name="targetptr.att" select="@targetptr"/>
1428
+
1429
+ <xsl:variable name="olink.lang">
1430
+ <xsl:call-template name="l10n.language">
1431
+ <xsl:with-param name="xref-context" select="true()"/>
1432
+ </xsl:call-template>
1433
+ </xsl:variable>
1434
+
1435
+ <xsl:variable name="target.database.filename">
1436
+ <xsl:call-template name="select.target.database">
1437
+ <xsl:with-param name="targetdoc.att" select="$targetdoc.att"/>
1438
+ <xsl:with-param name="targetptr.att" select="$targetptr.att"/>
1439
+ <xsl:with-param name="olink.lang" select="$olink.lang"/>
1440
+ </xsl:call-template>
1441
+ </xsl:variable>
1442
+
1443
+ <xsl:variable name="target.database"
1444
+ select="document($target.database.filename, /)"/>
1445
+
1446
+ <xsl:if test="$olink.debug != 0">
1447
+ <xsl:message>
1448
+ <xsl:text>Olink debug: root element of target.database is '</xsl:text>
1449
+ <xsl:value-of select="local-name($target.database/*[1])"/>
1450
+ <xsl:text>'.</xsl:text>
1451
+ </xsl:message>
1452
+ </xsl:if>
1453
+
1454
+ <xsl:variable name="olink.key">
1455
+ <xsl:call-template name="select.olink.key">
1456
+ <xsl:with-param name="targetdoc.att" select="$targetdoc.att"/>
1457
+ <xsl:with-param name="targetptr.att" select="$targetptr.att"/>
1458
+ <xsl:with-param name="olink.lang" select="$olink.lang"/>
1459
+ <xsl:with-param name="target.database" select="$target.database"/>
1460
+ </xsl:call-template>
1461
+ </xsl:variable>
1462
+
1463
+ <!-- Olink that points to internal id can be a link -->
1464
+ <xsl:variable name="linkend">
1465
+ <xsl:call-template name="olink.as.linkend">
1466
+ <xsl:with-param name="olink.key" select="$olink.key"/>
1467
+ <xsl:with-param name="olink.lang" select="$olink.lang"/>
1468
+ <xsl:with-param name="target.database" select="$target.database"/>
1469
+ </xsl:call-template>
1470
+ </xsl:variable>
1471
+
1472
+ <xsl:choose>
1473
+ <xsl:when test="$linkend != ''">
1474
+ <fo:page-number-citation ref-id="{$linkend}"/>
1475
+ </xsl:when>
1476
+ <xsl:otherwise>
1477
+ <xsl:message>
1478
+ <xsl:text>Olink error: no page number linkend for local olink '</xsl:text>
1479
+ <xsl:value-of select="$olink.key"/>
1480
+ <xsl:text>'</xsl:text>
1481
+ </xsl:message>
1482
+ </xsl:otherwise>
1483
+ </xsl:choose>
1484
+ </xsl:template>
1485
+
1486
+ </xsl:stylesheet>