html.xsl 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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/docbook.xsl"/>
  21. <!--###################################################
  22. HTML Settings
  23. ################################################### -->
  24. <xsl:param name="html.stylesheet">../styles/html.css</xsl:param>
  25. <!-- These extensions are required for table printing and other stuff -->
  26. <xsl:param name="use.extensions">1</xsl:param>
  27. <xsl:param name="tablecolumns.extension">0</xsl:param>
  28. <xsl:param name="callout.extensions">1</xsl:param>
  29. <xsl:param name="graphicsize.extension">0</xsl:param>
  30. <!--###################################################
  31. Table Of Contents
  32. ################################################### -->
  33. <!-- Generate the TOCs for named components only -->
  34. <xsl:param name="generate.toc">
  35. book toc
  36. </xsl:param>
  37. <!-- Show only Sections up to level 3 in the TOCs -->
  38. <xsl:param name="toc.section.depth">3</xsl:param>
  39. <!--###################################################
  40. Labels
  41. ################################################### -->
  42. <!-- Label Chapters and Sections (numbering) -->
  43. <xsl:param name="chapter.autolabel">1</xsl:param>
  44. <xsl:param name="section.autolabel" select="1"/>
  45. <xsl:param name="section.label.includes.component.label" select="1"/>
  46. <!--###################################################
  47. Callouts
  48. ################################################### -->
  49. <!-- Use images for callouts instead of (1) (2) (3) -->
  50. <xsl:param name="callout.graphics">1</xsl:param>
  51. <xsl:param name="callout.graphics.path">&callout_gfx_path;</xsl:param>
  52. <!-- Place callout marks at this column in annotated areas -->
  53. <xsl:param name="callout.defaultcolumn">90</xsl:param>
  54. <!--###################################################
  55. Admonitions
  56. ################################################### -->
  57. <!-- Use nice graphics for admonitions -->
  58. <xsl:param name="admon.graphics">'1'</xsl:param>
  59. <xsl:param name="admon.graphics.path">&admon_gfx_path;</xsl:param>
  60. <!--###################################################
  61. Misc
  62. ################################################### -->
  63. <!-- Placement of titles -->
  64. <xsl:param name="formal.title.placement">
  65. figure after
  66. example before
  67. equation before
  68. table before
  69. procedure before
  70. </xsl:param>
  71. </xsl:stylesheet>