html.xsl 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <?xml version='1.0'?>
  2. <xsl:stylesheet
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  4. <!-- Produce a single file when building parts of documentation -->
  5. <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/onechunk.xsl"/>
  6. <!-- Common XHTML customization -->
  7. <xsl:import href="html.common.xsl"/>
  8. <!-- Display all subsections in in the toc of READMEs -->
  9. <!-- Enable TOC for sections -->
  10. <xsl:param name="toc.section.depth">4</xsl:param>
  11. <xsl:param name="generate.section.toc.level">4</xsl:param>
  12. <!-- This is the default value of generate.toc modified so that we get TOC
  13. in documents whose root element is root, but only for the root
  14. section element. Non-root section or sectX elements have been removed
  15. so that they never generate a TOC. -->
  16. <xsl:param name="generate.toc">
  17. appendix toc,title
  18. article/appendix nop
  19. article toc,title
  20. book toc,title,figure,table,example,equation
  21. chapter toc,title
  22. part toc,title
  23. preface toc,title
  24. qandadiv toc
  25. qandaset toc
  26. reference toc,title
  27. /section toc
  28. set toc,title
  29. </xsl:param>
  30. </xsl:stylesheet>