docbook.xsl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. <?xml version="1.0" encoding="ASCII"?>
  2. <!--This file was created automatically by html2xhtml-->
  3. <!--from the HTML stylesheets.-->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ng="http://docbook.org/docbook-ng" xmlns:db="http://docbook.org/ns/docbook" xmlns:exsl="http://exslt.org/common" xmlns:exslt="http://exslt.org/common" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="db ng exsl exslt" version="1.0">
  5. <xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>
  6. <!-- ********************************************************************
  7. $Id: docbook.xsl 9605 2012-09-18 10:48:54Z tom_schr $
  8. ********************************************************************
  9. This file is part of the XSL DocBook Stylesheet distribution.
  10. See ../README or http://docbook.sf.net/release/xsl/current/ for
  11. copyright and other information.
  12. ******************************************************************** -->
  13. <!-- ==================================================================== -->
  14. <xsl:include href="../VERSION.xsl"/>
  15. <xsl:include href="param.xsl"/>
  16. <xsl:include href="../lib/lib.xsl"/>
  17. <xsl:include href="../common/l10n.xsl"/>
  18. <xsl:include href="../common/common.xsl"/>
  19. <xsl:include href="../common/utility.xsl"/>
  20. <xsl:include href="../common/labels.xsl"/>
  21. <xsl:include href="../common/titles.xsl"/>
  22. <xsl:include href="../common/subtitles.xsl"/>
  23. <xsl:include href="../common/gentext.xsl"/>
  24. <xsl:include href="../common/targets.xsl"/>
  25. <xsl:include href="../common/olink.xsl"/>
  26. <xsl:include href="../common/pi.xsl"/>
  27. <xsl:include href="autotoc.xsl"/>
  28. <xsl:include href="autoidx.xsl"/>
  29. <xsl:include href="lists.xsl"/>
  30. <xsl:include href="callout.xsl"/>
  31. <xsl:include href="verbatim.xsl"/>
  32. <xsl:include href="graphics.xsl"/>
  33. <xsl:include href="xref.xsl"/>
  34. <xsl:include href="formal.xsl"/>
  35. <xsl:include href="table.xsl"/>
  36. <xsl:include href="htmltbl.xsl"/>
  37. <xsl:include href="sections.xsl"/>
  38. <xsl:include href="inline.xsl"/>
  39. <xsl:include href="footnote.xsl"/>
  40. <xsl:include href="html.xsl"/>
  41. <xsl:include href="info.xsl"/>
  42. <xsl:include href="keywords.xsl"/>
  43. <xsl:include href="division.xsl"/>
  44. <xsl:include href="toc.xsl"/>
  45. <xsl:include href="index.xsl"/>
  46. <xsl:include href="refentry.xsl"/>
  47. <xsl:include href="math.xsl"/>
  48. <xsl:include href="admon.xsl"/>
  49. <xsl:include href="component.xsl"/>
  50. <xsl:include href="biblio.xsl"/>
  51. <xsl:include href="biblio-iso690.xsl"/>
  52. <xsl:include href="glossary.xsl"/>
  53. <xsl:include href="block.xsl"/>
  54. <xsl:include href="task.xsl"/>
  55. <xsl:include href="qandaset.xsl"/>
  56. <xsl:include href="synop.xsl"/>
  57. <xsl:include href="titlepage.xsl"/>
  58. <xsl:include href="titlepage.templates.xsl"/>
  59. <xsl:include href="pi.xsl"/>
  60. <xsl:include href="ebnf.xsl"/>
  61. <xsl:include href="chunker.xsl"/>
  62. <xsl:include href="html-rtf.xsl"/>
  63. <xsl:include href="annotations.xsl"/>
  64. <xsl:include href="../common/stripns.xsl"/>
  65. <xsl:param name="stylesheet.result.type" select="'xhtml'"/>
  66. <xsl:param name="htmlhelp.output" select="0"/>
  67. <!-- ==================================================================== -->
  68. <xsl:key name="id" match="*" use="@id|@xml:id"/>
  69. <xsl:key name="gid" match="*" use="generate-id()"/>
  70. <!-- ==================================================================== -->
  71. <xsl:template match="*">
  72. <xsl:message>
  73. <xsl:text>Element </xsl:text>
  74. <xsl:value-of select="local-name(.)"/>
  75. <xsl:text> in namespace '</xsl:text>
  76. <xsl:value-of select="namespace-uri(.)"/>
  77. <xsl:text>' encountered</xsl:text>
  78. <xsl:if test="parent::*">
  79. <xsl:text> in </xsl:text>
  80. <xsl:value-of select="name(parent::*)"/>
  81. </xsl:if>
  82. <xsl:text>, but no template matches.</xsl:text>
  83. </xsl:message>
  84. <span style="color: red">
  85. <xsl:text>&lt;</xsl:text>
  86. <xsl:value-of select="name(.)"/>
  87. <xsl:text>&gt;</xsl:text>
  88. <xsl:apply-templates/>
  89. <xsl:text>&lt;/</xsl:text>
  90. <xsl:value-of select="name(.)"/>
  91. <xsl:text>&gt;</xsl:text>
  92. </span>
  93. </xsl:template>
  94. <xsl:template match="text()">
  95. <xsl:value-of select="."/>
  96. </xsl:template>
  97. <xsl:template name="body.attributes">
  98. <!-- no apply-templates; make it empty -->
  99. </xsl:template>
  100. <xsl:template name="head.content.base">
  101. <xsl:param name="node" select="."/>
  102. <base href="{$html.base}"/>
  103. </xsl:template>
  104. <xsl:template name="head.content.abstract">
  105. <xsl:param name="node" select="."/>
  106. <xsl:variable name="info" select="(articleinfo |bookinfo |prefaceinfo |chapterinfo |appendixinfo |sectioninfo |sect1info |sect2info |sect3info |sect4info |sect5info |referenceinfo |refentryinfo |partinfo |info |docinfo)[1]"/>
  107. <xsl:if test="$info and $info/abstract">
  108. <meta name="description">
  109. <xsl:attribute name="content">
  110. <xsl:for-each select="$info/abstract[1]/*">
  111. <xsl:value-of select="normalize-space(.)"/>
  112. <xsl:if test="position() &lt; last()">
  113. <xsl:text> </xsl:text>
  114. </xsl:if>
  115. </xsl:for-each>
  116. </xsl:attribute>
  117. </meta>
  118. </xsl:if>
  119. </xsl:template>
  120. <xsl:template name="head.content.link.made">
  121. <xsl:param name="node" select="."/>
  122. <link rev="made" href="{$link.mailto.url}"/>
  123. </xsl:template>
  124. <xsl:template name="head.content.generator">
  125. <xsl:param name="node" select="."/>
  126. <meta name="generator" content="DocBook {$DistroTitle} V{$VERSION}"/>
  127. </xsl:template>
  128. <xsl:template name="head.content.style">
  129. <xsl:param name="node" select="."/>
  130. <style type="text/css"><xsl:text>
  131. body { background-image: url('</xsl:text>
  132. <xsl:value-of select="$draft.watermark.image"/><xsl:text>');
  133. background-repeat: no-repeat;
  134. background-position: top left;
  135. /* The following properties make the watermark "fixed" on the page. */
  136. /* I think that's just a bit too distracting for the reader... */
  137. /* background-attachment: fixed; */
  138. /* background-position: center center; */
  139. }</xsl:text>
  140. </style>
  141. </xsl:template>
  142. <xsl:template name="head.content">
  143. <xsl:param name="node" select="."/>
  144. <xsl:param name="title">
  145. <xsl:apply-templates select="$node" mode="object.title.markup.textonly"/>
  146. </xsl:param>
  147. <xsl:call-template name="user.head.title">
  148. <xsl:with-param name="title" select="$title"/>
  149. <xsl:with-param name="node" select="$node"/>
  150. </xsl:call-template>
  151. <xsl:if test="$html.base != ''">
  152. <xsl:call-template name="head.content.base">
  153. <xsl:with-param name="node" select="$node"/>
  154. </xsl:call-template>
  155. </xsl:if>
  156. <!-- Insert links to CSS files or insert literal style elements -->
  157. <xsl:call-template name="generate.css"/>
  158. <xsl:if test="$html.stylesheet != ''">
  159. <xsl:call-template name="output.html.stylesheets">
  160. <xsl:with-param name="stylesheets" select="normalize-space($html.stylesheet)"/>
  161. </xsl:call-template>
  162. </xsl:if>
  163. <xsl:if test="$html.script != ''">
  164. <xsl:call-template name="output.html.scripts">
  165. <xsl:with-param name="scripts" select="normalize-space($html.script)"/>
  166. </xsl:call-template>
  167. </xsl:if>
  168. <xsl:if test="$link.mailto.url != ''">
  169. <xsl:call-template name="head.content.link.made">
  170. <xsl:with-param name="node" select="$node"/>
  171. </xsl:call-template>
  172. </xsl:if>
  173. <xsl:call-template name="head.content.generator">
  174. <xsl:with-param name="node" select="$node"/>
  175. </xsl:call-template>
  176. <xsl:if test="$generate.meta.abstract != 0">
  177. <xsl:call-template name="head.content.abstract">
  178. <xsl:with-param name="node" select="$node"/>
  179. </xsl:call-template>
  180. </xsl:if>
  181. <xsl:if test="($draft.mode = 'yes' or ($draft.mode = 'maybe' and ancestor-or-self::*[@status][1]/@status = 'draft')) and $draft.watermark.image != ''">
  182. <xsl:call-template name="head.content.style">
  183. <xsl:with-param name="node" select="$node"/>
  184. </xsl:call-template>
  185. </xsl:if>
  186. <xsl:apply-templates select="." mode="head.keywords.content"/>
  187. </xsl:template>
  188. <xsl:template name="output.html.stylesheets">
  189. <xsl:param name="stylesheets" select="''"/>
  190. <xsl:choose>
  191. <xsl:when test="contains($stylesheets, ' ')">
  192. <xsl:variable name="css.filename" select="substring-before($stylesheets, ' ')"/>
  193. <xsl:call-template name="make.css.link">
  194. <xsl:with-param name="css.filename" select="$css.filename"/>
  195. </xsl:call-template>
  196. <xsl:call-template name="output.html.stylesheets">
  197. <xsl:with-param name="stylesheets" select="substring-after($stylesheets, ' ')"/>
  198. </xsl:call-template>
  199. </xsl:when>
  200. <xsl:when test="$stylesheets != ''">
  201. <xsl:call-template name="make.css.link">
  202. <xsl:with-param name="css.filename" select="$stylesheets"/>
  203. </xsl:call-template>
  204. </xsl:when>
  205. </xsl:choose>
  206. </xsl:template>
  207. <xsl:template name="output.html.scripts">
  208. <xsl:param name="scripts" select="''"/>
  209. <xsl:choose>
  210. <xsl:when test="contains($scripts, ' ')">
  211. <xsl:variable name="script.filename" select="substring-before($scripts, ' ')"/>
  212. <xsl:call-template name="make.script.link">
  213. <xsl:with-param name="script.filename" select="$script.filename"/>
  214. </xsl:call-template>
  215. <xsl:call-template name="output.html.scripts">
  216. <xsl:with-param name="scripts" select="substring-after($scripts, ' ')"/>
  217. </xsl:call-template>
  218. </xsl:when>
  219. <xsl:when test="$scripts != ''">
  220. <xsl:call-template name="make.script.link">
  221. <xsl:with-param name="script.filename" select="$scripts"/>
  222. </xsl:call-template>
  223. </xsl:when>
  224. </xsl:choose>
  225. </xsl:template>
  226. <!-- ============================================================ -->
  227. <xsl:template match="*" mode="head.keywords.content">
  228. <xsl:apply-templates select="chapterinfo/keywordset" mode="html.header"/>
  229. <xsl:apply-templates select="appendixinfo/keywordset" mode="html.header"/>
  230. <xsl:apply-templates select="prefaceinfo/keywordset" mode="html.header"/>
  231. <xsl:apply-templates select="bookinfo/keywordset" mode="html.header"/>
  232. <xsl:apply-templates select="setinfo/keywordset" mode="html.header"/>
  233. <xsl:apply-templates select="articleinfo/keywordset" mode="html.header"/>
  234. <xsl:apply-templates select="artheader/keywordset" mode="html.header"/>
  235. <xsl:apply-templates select="sect1info/keywordset" mode="html.header"/>
  236. <xsl:apply-templates select="sect2info/keywordset" mode="html.header"/>
  237. <xsl:apply-templates select="sect3info/keywordset" mode="html.header"/>
  238. <xsl:apply-templates select="sect4info/keywordset" mode="html.header"/>
  239. <xsl:apply-templates select="sect5info/keywordset" mode="html.header"/>
  240. <xsl:apply-templates select="sectioninfo/keywordset" mode="html.header"/>
  241. <xsl:apply-templates select="refsect1info/keywordset" mode="html.header"/>
  242. <xsl:apply-templates select="refsect2info/keywordset" mode="html.header"/>
  243. <xsl:apply-templates select="refsect3info/keywordset" mode="html.header"/>
  244. <xsl:apply-templates select="bibliographyinfo/keywordset" mode="html.header"/>
  245. <xsl:apply-templates select="glossaryinfo/keywordset" mode="html.header"/>
  246. <xsl:apply-templates select="indexinfo/keywordset" mode="html.header"/>
  247. <xsl:apply-templates select="refentryinfo/keywordset" mode="html.header"/>
  248. <xsl:apply-templates select="partinfo/keywordset" mode="html.header"/>
  249. <xsl:apply-templates select="referenceinfo/keywordset" mode="html.header"/>
  250. <xsl:apply-templates select="docinfo/keywordset" mode="html.header"/>
  251. <xsl:apply-templates select="info/keywordset" mode="html.header"/>
  252. <xsl:if test="$inherit.keywords != 0 and parent::*">
  253. <xsl:apply-templates select="parent::*" mode="head.keywords.content"/>
  254. </xsl:if>
  255. </xsl:template>
  256. <!-- ============================================================ -->
  257. <xsl:template name="system.head.content">
  258. <xsl:param name="node" select="."/>
  259. <!-- FIXME: When chunking, only the annotations actually used
  260. in this chunk should be referenced. I don't think it
  261. does any harm to reference them all, but it adds
  262. unnecessary bloat to each chunk. -->
  263. <xsl:if test="$annotation.support != 0 and //annotation">
  264. <xsl:call-template name="add.annotation.links"/>
  265. <script type="text/javascript">
  266. <xsl:text>
  267. // Create PopupWindow objects</xsl:text>
  268. <xsl:for-each select="//annotation">
  269. <xsl:text>
  270. var popup_</xsl:text>
  271. <xsl:value-of select="generate-id(.)"/>
  272. <xsl:text> = new PopupWindow("popup-</xsl:text>
  273. <xsl:value-of select="generate-id(.)"/>
  274. <xsl:text>");
  275. </xsl:text>
  276. <xsl:text>popup_</xsl:text>
  277. <xsl:value-of select="generate-id(.)"/>
  278. <xsl:text>.offsetY = 15;
  279. </xsl:text>
  280. <xsl:text>popup_</xsl:text>
  281. <xsl:value-of select="generate-id(.)"/>
  282. <xsl:text>.autoHide();
  283. </xsl:text>
  284. </xsl:for-each>
  285. </script>
  286. <style type="text/css">
  287. <xsl:value-of select="$annotation.css"/>
  288. </style>
  289. </xsl:if>
  290. <!-- system.head.content is like user.head.content, except that
  291. it is called before head.content. This is important because it
  292. means, for example, that <style> elements output by system.head.content
  293. have a lower CSS precedence than the users stylesheet. -->
  294. </xsl:template>
  295. <!-- ============================================================ -->
  296. <xsl:template name="user.preroot">
  297. <!-- Pre-root output, can be used to output comments and PIs. -->
  298. <!-- This must not output any element content! -->
  299. </xsl:template>
  300. <xsl:template name="user.head.title">
  301. <xsl:param name="node" select="."/>
  302. <xsl:param name="title"/>
  303. <title>
  304. <xsl:copy-of select="$title"/>
  305. </title>
  306. </xsl:template>
  307. <xsl:template name="user.head.content">
  308. <xsl:param name="node" select="."/>
  309. </xsl:template>
  310. <xsl:template name="user.header.navigation">
  311. <xsl:param name="node" select="."/>
  312. <xsl:param name="prev" select="/foo"/>
  313. <xsl:param name="next" select="/foo"/>
  314. <xsl:param name="nav.context"/>
  315. </xsl:template>
  316. <xsl:template name="user.header.content">
  317. <xsl:param name="node" select="."/>
  318. </xsl:template>
  319. <xsl:template name="user.footer.content">
  320. <xsl:param name="node" select="."/>
  321. </xsl:template>
  322. <xsl:template name="user.footer.navigation">
  323. <xsl:param name="node" select="."/>
  324. <xsl:param name="prev" select="/foo"/>
  325. <xsl:param name="next" select="/foo"/>
  326. <xsl:param name="nav.context"/>
  327. </xsl:template>
  328. <!-- To use the same stripped nodeset everywhere, it should
  329. be created as a global variable here.
  330. Used by docbook.xsl, chunk-code.xsl and chunkfast.xsl -->
  331. <xsl:variable name="no.namespace">
  332. <xsl:if test="$exsl.node.set.available != 0 and (*/self::ng:* or */self::db:*)">
  333. <xsl:apply-templates select="/*" mode="stripNS"/>
  334. </xsl:if>
  335. </xsl:variable>
  336. <xsl:template match="/">
  337. <!-- * Get a title for current doc so that we let the user -->
  338. <!-- * know what document we are processing at this point. -->
  339. <xsl:variable name="doc.title">
  340. <xsl:call-template name="get.doc.title"/>
  341. </xsl:variable>
  342. <xsl:choose>
  343. <!-- Hack! If someone hands us a DocBook V5.x or DocBook NG document,
  344. toss the namespace and continue. Use the docbook5 namespaced
  345. stylesheets for DocBook5 if you don't want to use this feature.-->
  346. <!-- include extra test for Xalan quirk -->
  347. <xsl:when test="$exsl.node.set.available != 0 and (*/self::ng:* or */self::db:*)">
  348. <xsl:call-template name="log.message">
  349. <xsl:with-param name="level">Note</xsl:with-param>
  350. <xsl:with-param name="source" select="$doc.title"/>
  351. <xsl:with-param name="context-desc">
  352. <xsl:text>namesp. cut</xsl:text>
  353. </xsl:with-param>
  354. <xsl:with-param name="message">
  355. <xsl:text>stripped namespace before processing</xsl:text>
  356. </xsl:with-param>
  357. </xsl:call-template>
  358. <!-- DEBUG: to save stripped document.
  359. <xsl:message>Saving stripped document.</xsl:message>
  360. <xsl:call-template name="write.chunk">
  361. <xsl:with-param name="filename" select="'/tmp/stripped.xml'"/>
  362. <xsl:with-param name="method" select="'xml'"/>
  363. <xsl:with-param name="content">
  364. <xsl:copy-of select="exsl:node-set($no.namespace)"/>
  365. </xsl:with-param>
  366. </xsl:call-template>
  367. -->
  368. <xsl:call-template name="log.message">
  369. <xsl:with-param name="level">Note</xsl:with-param>
  370. <xsl:with-param name="source" select="$doc.title"/>
  371. <xsl:with-param name="context-desc">
  372. <xsl:text>namesp. cut</xsl:text>
  373. </xsl:with-param>
  374. <xsl:with-param name="message">
  375. <xsl:text>processing stripped document</xsl:text>
  376. </xsl:with-param>
  377. </xsl:call-template>
  378. <xsl:apply-templates select="exsl:node-set($no.namespace)"/>
  379. </xsl:when>
  380. <!-- Can't process unless namespace removed -->
  381. <xsl:when test="*/self::ng:* or */self::db:*">
  382. <xsl:message terminate="yes">
  383. <xsl:text>Unable to strip the namespace from DB5 document,</xsl:text>
  384. <xsl:text> cannot proceed.</xsl:text>
  385. </xsl:message>
  386. </xsl:when>
  387. <xsl:otherwise>
  388. <xsl:choose>
  389. <xsl:when test="$rootid != ''">
  390. <xsl:choose>
  391. <xsl:when test="count(key('id',$rootid)) = 0">
  392. <xsl:message terminate="yes">
  393. <xsl:text>ID '</xsl:text>
  394. <xsl:value-of select="$rootid"/>
  395. <xsl:text>' not found in document.</xsl:text>
  396. </xsl:message>
  397. </xsl:when>
  398. <xsl:otherwise>
  399. <xsl:if test="$collect.xref.targets = 'yes' or $collect.xref.targets = 'only'">
  400. <xsl:apply-templates select="key('id', $rootid)" mode="collect.targets"/>
  401. </xsl:if>
  402. <xsl:if test="$collect.xref.targets != 'only'">
  403. <xsl:apply-templates select="key('id',$rootid)" mode="process.root"/>
  404. <xsl:if test="$tex.math.in.alt != ''">
  405. <xsl:apply-templates select="key('id',$rootid)" mode="collect.tex.math"/>
  406. </xsl:if>
  407. </xsl:if>
  408. </xsl:otherwise>
  409. </xsl:choose>
  410. </xsl:when>
  411. <xsl:otherwise>
  412. <xsl:if test="$collect.xref.targets = 'yes' or $collect.xref.targets = 'only'">
  413. <xsl:apply-templates select="/" mode="collect.targets"/>
  414. </xsl:if>
  415. <xsl:if test="$collect.xref.targets != 'only'">
  416. <xsl:apply-templates select="/" mode="process.root"/>
  417. <xsl:if test="$tex.math.in.alt != ''">
  418. <xsl:apply-templates select="/" mode="collect.tex.math"/>
  419. </xsl:if>
  420. </xsl:if>
  421. </xsl:otherwise>
  422. </xsl:choose>
  423. </xsl:otherwise>
  424. </xsl:choose>
  425. </xsl:template>
  426. <xsl:template match="*" mode="process.root">
  427. <xsl:variable name="doc" select="self::*"/>
  428. <xsl:call-template name="user.preroot"/>
  429. <xsl:call-template name="root.messages"/>
  430. <html>
  431. <xsl:call-template name="root.attributes"/>
  432. <head>
  433. <xsl:call-template name="system.head.content">
  434. <xsl:with-param name="node" select="$doc"/>
  435. </xsl:call-template>
  436. <xsl:call-template name="head.content">
  437. <xsl:with-param name="node" select="$doc"/>
  438. </xsl:call-template>
  439. <xsl:call-template name="user.head.content">
  440. <xsl:with-param name="node" select="$doc"/>
  441. </xsl:call-template>
  442. </head>
  443. <body>
  444. <xsl:call-template name="body.attributes"/>
  445. <xsl:call-template name="user.header.content">
  446. <xsl:with-param name="node" select="$doc"/>
  447. </xsl:call-template>
  448. <xsl:apply-templates select="."/>
  449. <xsl:call-template name="user.footer.content">
  450. <xsl:with-param name="node" select="$doc"/>
  451. </xsl:call-template>
  452. </body>
  453. </html>
  454. <xsl:value-of select="$html.append"/>
  455. <!-- Generate any css files only once, not once per chunk -->
  456. <xsl:call-template name="generate.css.files"/>
  457. </xsl:template>
  458. <xsl:template name="root.attributes">
  459. <!-- customize to add attributes to <html> element -->
  460. </xsl:template>
  461. <xsl:template name="root.messages">
  462. <!-- redefine this any way you'd like to output messages -->
  463. <!-- DO NOT OUTPUT ANYTHING FROM THIS TEMPLATE -->
  464. </xsl:template>
  465. <!-- ==================================================================== -->
  466. <xsl:template name="chunk">
  467. <xsl:param name="node" select="."/>
  468. <!-- The default is that we are not chunking... -->
  469. <xsl:text>0</xsl:text>
  470. </xsl:template>
  471. </xsl:stylesheet>