lfs-chunked2.xsl 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version='1.0' encoding='ISO-8859-1'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns="http://www.w3.org/1999/xhtml"
  4. version="1.0">
  5. <!-- Second level chunked output template.
  6. Sets global params and include customized elements templates-->
  7. <!-- Upstream XHTML presentation templates -->
  8. <xsl:import href="docbook-xsl-snapshot/xhtml/docbook.xsl"/>
  9. <!-- Use ISO-8859-1 for output instead of default UTF-8 -->
  10. <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/>
  11. <!-- Including our customized elements templates -->
  12. <xsl:include href="lfs-common.xsl"/>
  13. <xsl:include href="xhtml/lfs-admon.xsl"/>
  14. <xsl:include href="xhtml/lfs-mixed.xsl"/>
  15. <xsl:include href="xhtml/lfs-sections.xsl"/>
  16. <xsl:include href="xhtml/lfs-titles.xsl"/>
  17. <xsl:include href="xhtml/lfs-toc.xsl"/>
  18. <xsl:include href="xhtml/lfs-xref.xsl"/>
  19. <!-- The CSS Stylesheets. We set here relative path from sub-dirs HTML files.
  20. The path from top-level HTML files (index.html, partX.html, etc) MUST be
  21. fixed via a sed in the Makefile-->
  22. <!-- Master CSS Stylesheet -->
  23. <xsl:param name="html.stylesheet" select="'../stylesheets/lfs.css'"/>
  24. <!-- Print CSS Stylesheet -->
  25. <!-- The original template is in {docbook-xsl}/xhtml/docbook.xsl -->
  26. <xsl:template name='user.head.content'>
  27. <link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print"/>
  28. </xsl:template>
  29. <!-- Dropping some unwanted style attributes -->
  30. <xsl:param name="ulink.target" select="''"></xsl:param>
  31. <xsl:param name="css.decoration" select="0"></xsl:param>
  32. <!-- No XML declaration -->
  33. <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
  34. <!-- Control generation of ToCs and LoTs -->
  35. <xsl:param name="generate.toc">
  36. book toc,title
  37. preface toc
  38. part toc
  39. chapter toc
  40. appendix nop
  41. sect1 nop
  42. sect2 nop
  43. sect3 nop
  44. sect4 nop
  45. sect5 nop
  46. section nop
  47. </xsl:param>
  48. <!-- How deep should recursive sections appear in the TOC? -->
  49. <xsl:param name="toc.section.depth">1</xsl:param>
  50. <!-- How maximaly deep should be each TOC? -->
  51. <xsl:param name="toc.max.depth">3</xsl:param>
  52. </xsl:stylesheet>