2
0

html_chunk.xsl 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?xml version="1.0"?>
  2. <!--
  3. This is the XSL HTML configuration file for the Hibernate
  4. Reference Documentation.
  5. It took me days to figure out this stuff and fix most of
  6. the obvious bugs in the DocBook XSL distribution, so if you
  7. use this stylesheet, give some credit back to the Hibernate
  8. project.
  9. christian.bauer@bluemars.de
  10. -->
  11. <!DOCTYPE xsl:stylesheet [
  12. <!ENTITY db_xsl_path "../lib/docbook-xsl/">
  13. <!ENTITY callout_gfx_path "../images/callouts/">
  14. <!ENTITY admon_gfx_path "../images/admons/">
  15. ]>
  16. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  17. version="1.0"
  18. xmlns="http://www.w3.org/TR/xhtml1/transitional"
  19. exclude-result-prefixes="#default">
  20. <xsl:import href="&db_xsl_path;/html/chunk.xsl"/>
  21. <!--###################################################
  22. HTML Settings
  23. ################################################### -->
  24. <xsl:param name="chunk.section.depth">'5'</xsl:param>
  25. <xsl:param name="use.id.as.filename">'1'</xsl:param>
  26. <xsl:param name="html.stylesheet">../styles/html.css</xsl:param>
  27. <!-- These extensions are required for table printing and other stuff -->
  28. <xsl:param name="use.extensions">1</xsl:param>
  29. <xsl:param name="tablecolumns.extension">0</xsl:param>
  30. <xsl:param name="callout.extensions">1</xsl:param>
  31. <xsl:param name="graphicsize.extension">0</xsl:param>
  32. <!--###################################################
  33. Table Of Contents
  34. ################################################### -->
  35. <!-- Generate the TOCs for named components only -->
  36. <xsl:param name="generate.toc">
  37. book toc
  38. </xsl:param>
  39. <!-- Show only Sections up to level 3 in the TOCs -->
  40. <xsl:param name="toc.section.depth">3</xsl:param>
  41. <!--###################################################
  42. Labels
  43. ################################################### -->
  44. <!-- Label Chapters and Sections (numbering) -->
  45. <xsl:param name="chapter.autolabel">1</xsl:param>
  46. <xsl:param name="section.autolabel" select="1"/>
  47. <xsl:param name="section.label.includes.component.label" select="1"/>
  48. <!--###################################################
  49. Callouts
  50. ################################################### -->
  51. <!-- Use images for callouts instead of (1) (2) (3) -->
  52. <xsl:param name="callout.graphics">1</xsl:param>
  53. <xsl:param name="callout.graphics.path">&callout_gfx_path;</xsl:param>
  54. <!-- Place callout marks at this column in annotated areas -->
  55. <xsl:param name="callout.defaultcolumn">90</xsl:param>
  56. <!--###################################################
  57. Admonitions
  58. ################################################### -->
  59. <!-- Use nice graphics for admonitions -->
  60. <xsl:param name="admon.graphics">'1'</xsl:param>
  61. <xsl:param name="admon.graphics.path">&admon_gfx_path;</xsl:param>
  62. <!--###################################################
  63. Misc
  64. ################################################### -->
  65. <!-- Placement of titles -->
  66. <xsl:param name="formal.title.placement">
  67. figure after
  68. example before
  69. equation before
  70. table before
  71. procedure before
  72. </xsl:param>
  73. </xsl:stylesheet>