chunk-slave.xsl 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. </xsl:template>
  29. <!-- Drop some unwanted style attributes -->
  30. <xsl:param name="ulink.target" select="''"/>
  31. <xsl:param name="css.decoration" select="0"/>
  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 deep, at most, should each TOC be? -->
  51. <xsl:param name="toc.max.depth">3</xsl:param>
  52. </xsl:stylesheet>