html.xsl 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. This is the XSL HTML configuration file for the Spring
  4. Reference Documentation.
  5. -->
  6. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  7. xmlns:fo="http://www.w3.org/1999/XSL/Format"
  8. version="1.0">
  9. <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
  10. <!--###################################################
  11. HTML Settings
  12. ################################################### -->
  13. <xsl:param name="html.stylesheet">html.css</xsl:param>
  14. <!-- These extensions are required for table printing and other stuff -->
  15. <xsl:param name="use.extensions">1</xsl:param>
  16. <xsl:param name="tablecolumns.extension">0</xsl:param>
  17. <xsl:param name="callout.extensions">1</xsl:param>
  18. <xsl:param name="graphicsize.extension">0</xsl:param>
  19. <!--###################################################
  20. Table Of Contents
  21. ################################################### -->
  22. <!-- Generate the TOCs for named components only -->
  23. <xsl:param name="generate.toc">
  24. book toc
  25. </xsl:param>
  26. <!-- Show only Sections up to level 3 in the TOCs -->
  27. <xsl:param name="toc.section.depth">3</xsl:param>
  28. <!--###################################################
  29. Labels
  30. ################################################### -->
  31. <!-- Label Chapters and Sections (numbering) -->
  32. <xsl:param name="chapter.autolabel">1</xsl:param>
  33. <xsl:param name="section.autolabel" select="1"/>
  34. <xsl:param name="section.label.includes.component.label" select="1"/>
  35. <!--###################################################
  36. Callouts
  37. ################################################### -->
  38. <!-- Use images for callouts instead of (1) (2) (3) -->
  39. <xsl:param name="callout.graphics">0</xsl:param>
  40. <!-- Place callout marks at this column in annotated areas -->
  41. <xsl:param name="callout.defaultcolumn">90</xsl:param>
  42. <!--###################################################
  43. Admonitions
  44. ################################################### -->
  45. <!-- Use nice graphics for admonitions -->
  46. <xsl:param name="admon.graphics">0</xsl:param>
  47. <!--###################################################
  48. Misc
  49. ################################################### -->
  50. <!-- Placement of titles -->
  51. <xsl:param name="formal.title.placement">
  52. figure after
  53. example before
  54. equation before
  55. table before
  56. procedure before
  57. </xsl:param>
  58. <!--
  59. <xsl:template match="author" mode="titlepage.mode">
  60. <xsl:if test="name(preceding-sibling::*[1]) = 'author'">
  61. <xsl:text>, </xsl:text>
  62. </xsl:if>
  63. <span class="{name(.)}">
  64. <xsl:call-template name="person.name"/>
  65. <xsl:apply-templates mode="titlepage.mode" select="./contrib"/>
  66. <xsl:apply-templates mode="titlepage.mode" select="./affiliation"/>
  67. </span>
  68. </xsl:template>
  69. <xsl:template match="authorgroup" mode="titlepage.mode">
  70. <div class="{name(.)}">
  71. <h2>Authors</h2>
  72. <p/>
  73. <xsl:apply-templates mode="titlepage.mode"/>
  74. </div>
  75. </xsl:template>
  76. -->
  77. </xsl:stylesheet>