chunk-slave.xsl 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version='1.0' encoding='ISO-8859-1'?>
  2. <!--
  3. $LastChangedBy$
  4. $Date$
  5. -->
  6. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  7. xmlns="http://www.w3.org/1999/xhtml"
  8. version="1.0">
  9. <!-- Second level chunked output template.
  10. Sets global params and include customized elements templates. -->
  11. <!-- Upstream XHTML presentation templates -->
  12. <xsl:import href="docbook-xsl-1.78.1/xhtml/docbook.xsl"/>
  13. <!-- Use ISO-8859-1 for output instead of default UTF-8 -->
  14. <xsl:param name="chunker.output.encoding" select="'ISO-8859-1'"/>
  15. <!-- Including our customized elements templates -->
  16. <xsl:include href="common.xsl"/>
  17. <xsl:include href="xhtml/lfs-admon.xsl"/>
  18. <xsl:include href="xhtml/lfs-mixed.xsl"/>
  19. <xsl:include href="xhtml/lfs-sections.xsl"/>
  20. <xsl:include href="xhtml/lfs-titles.xsl"/>
  21. <xsl:include href="xhtml/lfs-toc.xsl"/>
  22. <xsl:include href="xhtml/lfs-xref.xsl"/>
  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. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  29. </xsl:template>
  30. <!-- Drop some unwanted style attributes -->
  31. <xsl:param name="ulink.target" select="''"/>
  32. <xsl:param name="css.decoration" select="0"/>
  33. <!-- No XML declaration -->
  34. <xsl:param name="chunker.output.omit-xml-declaration" select="'yes'"/>
  35. <!-- Control generation of ToCs and LoTs -->
  36. <xsl:param name="generate.toc">
  37. book toc,title
  38. preface toc
  39. part toc
  40. chapter toc
  41. appendix nop
  42. sect1 nop
  43. sect2 nop
  44. sect3 nop
  45. sect4 nop
  46. sect5 nop
  47. section nop
  48. </xsl:param>
  49. <!-- How deep should recursive sections appear in the TOC? -->
  50. <xsl:param name="toc.section.depth">1</xsl:param>
  51. <!-- How deep, at most, should each TOC be? -->
  52. <xsl:param name="toc.max.depth">3</xsl:param>
  53. </xsl:stylesheet>