lfs-chunked2.xsl 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 LFS book type to be processed (lfs, blfs, clfs, or hlfs) -->
  20. <xsl:param name="book-type">lfs</xsl:param>
  21. <!-- The CSS Stylesheets. We set here relative path from sub-dirs HTML files.
  22. The path from top-level HTML files (index.html, partX.html, etc) MUST be
  23. fixed via a sed in the Makefile-->
  24. <!-- Master CSS Stylesheet -->
  25. <xsl:param name="html.stylesheet" select="'../stylesheets/lfs.css'"/>
  26. <!-- Print CSS Stylesheet -->
  27. <!-- The original template is in {docbook-xsl}/xhtml/docbook.xsl -->
  28. <xsl:template name='user.head.content'>
  29. <link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print"/>
  30. </xsl:template>
  31. <!-- Dropping some unwanted style attributes -->
  32. <xsl:param name="ulink.target" select="''"/>
  33. <xsl:param name="css.decoration" select="0"/>
  34. <!-- No XML declaration -->
  35. <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
  36. <!-- Control generation of ToCs and LoTs -->
  37. <xsl:param name="generate.toc">
  38. book toc,title
  39. preface toc
  40. part toc
  41. chapter toc
  42. appendix nop
  43. sect1 nop
  44. sect2 nop
  45. sect3 nop
  46. sect4 nop
  47. sect5 nop
  48. section nop
  49. </xsl:param>
  50. <!-- How deep should recursive sections appear in the TOC? -->
  51. <xsl:param name="toc.section.depth">1</xsl:param>
  52. <!-- How maximaly deep should be each TOC? -->
  53. <xsl:param name="toc.max.depth">3</xsl:param>
  54. </xsl:stylesheet>