chunk-slave.xsl 2.3 KB

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