profile-docbook.xsl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508
  1. <?xml version="1.0" encoding="US-ASCII"?>
  2. <!--This file was created automatically by xsl2profile-->
  3. <!--from the DocBook XSL 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" exslt:dummy="dummy" ng:dummy="dummy" db:dummy="dummy" extension-element-prefixes="exslt" exclude-result-prefixes="db ng exsl exslt exslt" version="1.0">
  5. <xsl:output method="html" encoding="ISO-8859-1" indent="no"/>
  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="'html'"/>
  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. <xsl:attribute name="bgcolor">white</xsl:attribute>
  99. <xsl:attribute name="text">black</xsl:attribute>
  100. <xsl:attribute name="link">#0000FF</xsl:attribute>
  101. <xsl:attribute name="vlink">#840084</xsl:attribute>
  102. <xsl:attribute name="alink">#0000FF</xsl:attribute>
  103. <xsl:if test="starts-with($writing.mode, 'rl')">
  104. <xsl:attribute name="dir">rtl</xsl:attribute>
  105. </xsl:if>
  106. </xsl:template>
  107. <xsl:template name="head.content.base">
  108. <xsl:param name="node" select="."/>
  109. <base href="{$html.base}"/>
  110. </xsl:template>
  111. <xsl:template name="head.content.abstract">
  112. <xsl:param name="node" select="."/>
  113. <xsl:variable name="info" select="(articleinfo |bookinfo |prefaceinfo |chapterinfo |appendixinfo |sectioninfo |sect1info |sect2info |sect3info |sect4info |sect5info |referenceinfo |refentryinfo |partinfo |info |docinfo)[1]"/>
  114. <xsl:if test="$info and $info/abstract">
  115. <meta name="description">
  116. <xsl:attribute name="content">
  117. <xsl:for-each select="$info/abstract[1]/*">
  118. <xsl:value-of select="normalize-space(.)"/>
  119. <xsl:if test="position() &lt; last()">
  120. <xsl:text> </xsl:text>
  121. </xsl:if>
  122. </xsl:for-each>
  123. </xsl:attribute>
  124. </meta>
  125. </xsl:if>
  126. </xsl:template>
  127. <xsl:template name="head.content.link.made">
  128. <xsl:param name="node" select="."/>
  129. <link rev="made" href="{$link.mailto.url}"/>
  130. </xsl:template>
  131. <xsl:template name="head.content.generator">
  132. <xsl:param name="node" select="."/>
  133. <meta name="generator" content="DocBook {$DistroTitle} V{$VERSION}"/>
  134. </xsl:template>
  135. <xsl:template name="head.content.style">
  136. <xsl:param name="node" select="."/>
  137. <style type="text/css"><xsl:text>
  138. body { background-image: url('</xsl:text>
  139. <xsl:value-of select="$draft.watermark.image"/><xsl:text>');
  140. background-repeat: no-repeat;
  141. background-position: top left;
  142. /* The following properties make the watermark "fixed" on the page. */
  143. /* I think that's just a bit too distracting for the reader... */
  144. /* background-attachment: fixed; */
  145. /* background-position: center center; */
  146. }</xsl:text>
  147. </style>
  148. </xsl:template>
  149. <xsl:template name="head.content">
  150. <xsl:param name="node" select="."/>
  151. <xsl:param name="title">
  152. <xsl:apply-templates select="$node" mode="object.title.markup.textonly"/>
  153. </xsl:param>
  154. <xsl:call-template name="user.head.title">
  155. <xsl:with-param name="title" select="$title"/>
  156. <xsl:with-param name="node" select="$node"/>
  157. </xsl:call-template>
  158. <xsl:if test="$html.base != ''">
  159. <xsl:call-template name="head.content.base">
  160. <xsl:with-param name="node" select="$node"/>
  161. </xsl:call-template>
  162. </xsl:if>
  163. <!-- Insert links to CSS files or insert literal style elements -->
  164. <xsl:call-template name="generate.css"/>
  165. <xsl:if test="$html.stylesheet != ''">
  166. <xsl:call-template name="output.html.stylesheets">
  167. <xsl:with-param name="stylesheets" select="normalize-space($html.stylesheet)"/>
  168. </xsl:call-template>
  169. </xsl:if>
  170. <xsl:if test="$html.script != ''">
  171. <xsl:call-template name="output.html.scripts">
  172. <xsl:with-param name="scripts" select="normalize-space($html.script)"/>
  173. </xsl:call-template>
  174. </xsl:if>
  175. <xsl:if test="$link.mailto.url != ''">
  176. <xsl:call-template name="head.content.link.made">
  177. <xsl:with-param name="node" select="$node"/>
  178. </xsl:call-template>
  179. </xsl:if>
  180. <xsl:call-template name="head.content.generator">
  181. <xsl:with-param name="node" select="$node"/>
  182. </xsl:call-template>
  183. <xsl:if test="$generate.meta.abstract != 0">
  184. <xsl:call-template name="head.content.abstract">
  185. <xsl:with-param name="node" select="$node"/>
  186. </xsl:call-template>
  187. </xsl:if>
  188. <xsl:if test="($draft.mode = 'yes' or ($draft.mode = 'maybe' and ancestor-or-self::*[@status][1]/@status = 'draft')) and $draft.watermark.image != ''">
  189. <xsl:call-template name="head.content.style">
  190. <xsl:with-param name="node" select="$node"/>
  191. </xsl:call-template>
  192. </xsl:if>
  193. <xsl:apply-templates select="." mode="head.keywords.content"/>
  194. </xsl:template>
  195. <xsl:template name="output.html.stylesheets">
  196. <xsl:param name="stylesheets" select="''"/>
  197. <xsl:choose>
  198. <xsl:when test="contains($stylesheets, ' ')">
  199. <xsl:variable name="css.filename" select="substring-before($stylesheets, ' ')"/>
  200. <xsl:call-template name="make.css.link">
  201. <xsl:with-param name="css.filename" select="$css.filename"/>
  202. </xsl:call-template>
  203. <xsl:call-template name="output.html.stylesheets">
  204. <xsl:with-param name="stylesheets" select="substring-after($stylesheets, ' ')"/>
  205. </xsl:call-template>
  206. </xsl:when>
  207. <xsl:when test="$stylesheets != ''">
  208. <xsl:call-template name="make.css.link">
  209. <xsl:with-param name="css.filename" select="$stylesheets"/>
  210. </xsl:call-template>
  211. </xsl:when>
  212. </xsl:choose>
  213. </xsl:template>
  214. <xsl:template name="output.html.scripts">
  215. <xsl:param name="scripts" select="''"/>
  216. <xsl:choose>
  217. <xsl:when test="contains($scripts, ' ')">
  218. <xsl:variable name="script.filename" select="substring-before($scripts, ' ')"/>
  219. <xsl:call-template name="make.script.link">
  220. <xsl:with-param name="script.filename" select="$script.filename"/>
  221. </xsl:call-template>
  222. <xsl:call-template name="output.html.scripts">
  223. <xsl:with-param name="scripts" select="substring-after($scripts, ' ')"/>
  224. </xsl:call-template>
  225. </xsl:when>
  226. <xsl:when test="$scripts != ''">
  227. <xsl:call-template name="make.script.link">
  228. <xsl:with-param name="script.filename" select="$scripts"/>
  229. </xsl:call-template>
  230. </xsl:when>
  231. </xsl:choose>
  232. </xsl:template>
  233. <!-- ============================================================ -->
  234. <xsl:template match="*" mode="head.keywords.content">
  235. <xsl:apply-templates select="chapterinfo/keywordset" mode="html.header"/>
  236. <xsl:apply-templates select="appendixinfo/keywordset" mode="html.header"/>
  237. <xsl:apply-templates select="prefaceinfo/keywordset" mode="html.header"/>
  238. <xsl:apply-templates select="bookinfo/keywordset" mode="html.header"/>
  239. <xsl:apply-templates select="setinfo/keywordset" mode="html.header"/>
  240. <xsl:apply-templates select="articleinfo/keywordset" mode="html.header"/>
  241. <xsl:apply-templates select="artheader/keywordset" mode="html.header"/>
  242. <xsl:apply-templates select="sect1info/keywordset" mode="html.header"/>
  243. <xsl:apply-templates select="sect2info/keywordset" mode="html.header"/>
  244. <xsl:apply-templates select="sect3info/keywordset" mode="html.header"/>
  245. <xsl:apply-templates select="sect4info/keywordset" mode="html.header"/>
  246. <xsl:apply-templates select="sect5info/keywordset" mode="html.header"/>
  247. <xsl:apply-templates select="sectioninfo/keywordset" mode="html.header"/>
  248. <xsl:apply-templates select="refsect1info/keywordset" mode="html.header"/>
  249. <xsl:apply-templates select="refsect2info/keywordset" mode="html.header"/>
  250. <xsl:apply-templates select="refsect3info/keywordset" mode="html.header"/>
  251. <xsl:apply-templates select="bibliographyinfo/keywordset" mode="html.header"/>
  252. <xsl:apply-templates select="glossaryinfo/keywordset" mode="html.header"/>
  253. <xsl:apply-templates select="indexinfo/keywordset" mode="html.header"/>
  254. <xsl:apply-templates select="refentryinfo/keywordset" mode="html.header"/>
  255. <xsl:apply-templates select="partinfo/keywordset" mode="html.header"/>
  256. <xsl:apply-templates select="referenceinfo/keywordset" mode="html.header"/>
  257. <xsl:apply-templates select="docinfo/keywordset" mode="html.header"/>
  258. <xsl:apply-templates select="info/keywordset" mode="html.header"/>
  259. <xsl:if test="$inherit.keywords != 0 and parent::*">
  260. <xsl:apply-templates select="parent::*" mode="head.keywords.content"/>
  261. </xsl:if>
  262. </xsl:template>
  263. <!-- ============================================================ -->
  264. <xsl:template name="system.head.content">
  265. <xsl:param name="node" select="."/>
  266. <!-- FIXME: When chunking, only the annotations actually used
  267. in this chunk should be referenced. I don't think it
  268. does any harm to reference them all, but it adds
  269. unnecessary bloat to each chunk. -->
  270. <xsl:if test="$annotation.support != 0 and //annotation">
  271. <xsl:call-template name="add.annotation.links"/>
  272. <script type="text/javascript">
  273. <xsl:text>
  274. // Create PopupWindow objects</xsl:text>
  275. <xsl:for-each select="//annotation">
  276. <xsl:text>
  277. var popup_</xsl:text>
  278. <xsl:value-of select="generate-id(.)"/>
  279. <xsl:text> = new PopupWindow("popup-</xsl:text>
  280. <xsl:value-of select="generate-id(.)"/>
  281. <xsl:text>");
  282. </xsl:text>
  283. <xsl:text>popup_</xsl:text>
  284. <xsl:value-of select="generate-id(.)"/>
  285. <xsl:text>.offsetY = 15;
  286. </xsl:text>
  287. <xsl:text>popup_</xsl:text>
  288. <xsl:value-of select="generate-id(.)"/>
  289. <xsl:text>.autoHide();
  290. </xsl:text>
  291. </xsl:for-each>
  292. </script>
  293. <style type="text/css">
  294. <xsl:value-of select="$annotation.css"/>
  295. </style>
  296. </xsl:if>
  297. <!-- system.head.content is like user.head.content, except that
  298. it is called before head.content. This is important because it
  299. means, for example, that <style> elements output by system.head.content
  300. have a lower CSS precedence than the users stylesheet. -->
  301. </xsl:template>
  302. <!-- ============================================================ -->
  303. <xsl:template name="user.preroot">
  304. <!-- Pre-root output, can be used to output comments and PIs. -->
  305. <!-- This must not output any element content! -->
  306. </xsl:template>
  307. <xsl:template name="user.head.title">
  308. <xsl:param name="node" select="."/>
  309. <xsl:param name="title"/>
  310. <title>
  311. <xsl:copy-of select="$title"/>
  312. </title>
  313. </xsl:template>
  314. <xsl:template name="user.head.content">
  315. <xsl:param name="node" select="."/>
  316. </xsl:template>
  317. <xsl:template name="user.header.navigation">
  318. <xsl:param name="node" select="."/>
  319. <xsl:param name="prev" select="/foo"/>
  320. <xsl:param name="next" select="/foo"/>
  321. <xsl:param name="nav.context"/>
  322. </xsl:template>
  323. <xsl:template name="user.header.content">
  324. <xsl:param name="node" select="."/>
  325. </xsl:template>
  326. <xsl:template name="user.footer.content">
  327. <xsl:param name="node" select="."/>
  328. </xsl:template>
  329. <xsl:template name="user.footer.navigation">
  330. <xsl:param name="node" select="."/>
  331. <xsl:param name="prev" select="/foo"/>
  332. <xsl:param name="next" select="/foo"/>
  333. <xsl:param name="nav.context"/>
  334. </xsl:template>
  335. <!-- To use the same stripped nodeset everywhere, it should
  336. be created as a global variable here.
  337. Used by docbook.xsl, chunk-code.xsl and chunkfast.xsl -->
  338. <xsl:variable name="no.namespace">
  339. <xsl:if test="$exsl.node.set.available != 0 and (*/self::ng:* or */self::db:*)">
  340. <xsl:apply-templates select="/*" mode="stripNS"/>
  341. </xsl:if>
  342. </xsl:variable>
  343. <xslo:include xmlns:xslo="http://www.w3.org/1999/XSL/Transform" href="../profiling/profile-mode.xsl"/><xslo:variable xmlns:xslo="http://www.w3.org/1999/XSL/Transform" name="profiled-content"><xslo:choose><xslo:when test="*/self::ng:* or */self::db:*"><xslo:message>Note: namesp. cut : stripped namespace before processing</xslo:message><xslo:variable name="stripped-content"><xslo:apply-templates select="/" mode="stripNS"/></xslo:variable><xslo:message>Note: namesp. cut : processing stripped document</xslo:message><xslo:apply-templates select="exslt:node-set($stripped-content)" mode="profile"/></xslo:when><xslo:otherwise><xslo:apply-templates select="/" mode="profile"/></xslo:otherwise></xslo:choose></xslo:variable><xslo:variable xmlns:xslo="http://www.w3.org/1999/XSL/Transform" name="profiled-nodes" select="exslt:node-set($profiled-content)"/><xsl:template match="/">
  344. <!-- * Get a title for current doc so that we let the user -->
  345. <!-- * know what document we are processing at this point. -->
  346. <xsl:variable name="doc.title">
  347. <xsl:call-template name="get.doc.title"/>
  348. </xsl:variable>
  349. <xsl:choose>
  350. <!-- Hack! If someone hands us a DocBook V5.x or DocBook NG document,
  351. toss the namespace and continue. Use the docbook5 namespaced
  352. stylesheets for DocBook5 if you don't want to use this feature.-->
  353. <!-- include extra test for Xalan quirk -->
  354. <xsl:when test="false()"/>
  355. <!-- Can't process unless namespace removed -->
  356. <xsl:when test="false()"/>
  357. <xsl:otherwise>
  358. <xsl:choose>
  359. <xsl:when test="$rootid != ''">
  360. <xsl:choose>
  361. <xsl:when test="count($profiled-nodes//*[@id=$rootid or @xml:id=$rootid]) = 0">
  362. <xsl:message terminate="yes">
  363. <xsl:text>ID '</xsl:text>
  364. <xsl:value-of select="$rootid"/>
  365. <xsl:text>' not found in document.</xsl:text>
  366. </xsl:message>
  367. </xsl:when>
  368. <xsl:otherwise>
  369. <xsl:if test="$collect.xref.targets = 'yes' or $collect.xref.targets = 'only'">
  370. <xsl:apply-templates select="key('id', $rootid)" mode="collect.targets"/>
  371. </xsl:if>
  372. <xsl:if test="$collect.xref.targets != 'only'">
  373. <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid or @xml:id=$rootid]" mode="process.root"/>
  374. <xsl:if test="$tex.math.in.alt != ''">
  375. <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid or @xml:id=$rootid]" mode="collect.tex.math"/>
  376. </xsl:if>
  377. </xsl:if>
  378. </xsl:otherwise>
  379. </xsl:choose>
  380. </xsl:when>
  381. <xsl:otherwise>
  382. <xsl:if test="$collect.xref.targets = 'yes' or $collect.xref.targets = 'only'">
  383. <xsl:apply-templates select="$profiled-nodes" mode="collect.targets"/>
  384. </xsl:if>
  385. <xsl:if test="$collect.xref.targets != 'only'">
  386. <xsl:apply-templates select="$profiled-nodes" mode="process.root"/>
  387. <xsl:if test="$tex.math.in.alt != ''">
  388. <xsl:apply-templates select="$profiled-nodes" mode="collect.tex.math"/>
  389. </xsl:if>
  390. </xsl:if>
  391. </xsl:otherwise>
  392. </xsl:choose>
  393. </xsl:otherwise>
  394. </xsl:choose>
  395. </xsl:template>
  396. <xsl:template match="*" mode="process.root">
  397. <xsl:variable name="doc" select="self::*"/>
  398. <xsl:call-template name="user.preroot"/>
  399. <xsl:call-template name="root.messages"/>
  400. <html>
  401. <xsl:call-template name="root.attributes"/>
  402. <head>
  403. <xsl:call-template name="system.head.content">
  404. <xsl:with-param name="node" select="$doc"/>
  405. </xsl:call-template>
  406. <xsl:call-template name="head.content">
  407. <xsl:with-param name="node" select="$doc"/>
  408. </xsl:call-template>
  409. <xsl:call-template name="user.head.content">
  410. <xsl:with-param name="node" select="$doc"/>
  411. </xsl:call-template>
  412. </head>
  413. <body>
  414. <xsl:call-template name="body.attributes"/>
  415. <xsl:call-template name="user.header.content">
  416. <xsl:with-param name="node" select="$doc"/>
  417. </xsl:call-template>
  418. <xsl:apply-templates select="."/>
  419. <xsl:call-template name="user.footer.content">
  420. <xsl:with-param name="node" select="$doc"/>
  421. </xsl:call-template>
  422. </body>
  423. </html>
  424. <xsl:value-of select="$html.append"/>
  425. <!-- Generate any css files only once, not once per chunk -->
  426. <xsl:call-template name="generate.css.files"/>
  427. </xsl:template>
  428. <xsl:template name="root.attributes">
  429. <!-- customize to add attributes to <html> element -->
  430. </xsl:template>
  431. <xsl:template name="root.messages">
  432. <!-- redefine this any way you'd like to output messages -->
  433. <!-- DO NOT OUTPUT ANYTHING FROM THIS TEMPLATE -->
  434. </xsl:template>
  435. <!-- ==================================================================== -->
  436. <xsl:template name="chunk">
  437. <xsl:param name="node" select="."/>
  438. <!-- The default is that we are not chunking... -->
  439. <xsl:text>0</xsl:text>
  440. </xsl:template>
  441. </xsl:stylesheet>