lfs-print.xsl 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version='1.0' encoding='ISO-8859-1'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:fo="http://www.w3.org/1999/XSL/Format"
  4. version="1.0">
  5. <!-- We use FO and FOP as the processor -->
  6. <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/fo/docbook.xsl"/>
  7. <xsl:param name="fop.extensions" select="1"/>
  8. <xsl:param name="draft.mode" select="'no'"/>
  9. <!-- Including our others customized templates -->
  10. <xsl:include href="print/lfs-index.xsl"/>
  11. <xsl:include href="print/lfs-pagesetup.xsl"/>
  12. <!-- Probably want to make the paper size configurable -->
  13. <xsl:param name="paper.type" select="'A4'"/>
  14. <!-- Printing Style -->
  15. <xsl:param name="double.sided" select="1"/>
  16. <xsl:param name="hyphenate">true</xsl:param>
  17. <xsl:param name="alignment">justify</xsl:param>
  18. <!-- Hyphenate links -->
  19. <xsl:param name="ulink.hyphenate" select="' '"></xsl:param>
  20. <!-- Font size -->
  21. <xsl:param name="body.font.master">8</xsl:param>
  22. <xsl:param name="body.font.size">10pt</xsl:param>
  23. <!-- TOC stuff -->
  24. <xsl:param name="generate.toc">
  25. book toc
  26. part nop
  27. </xsl:param>
  28. <xsl:param name="toc.section.depth">1</xsl:param>
  29. <xsl:param name="generate.section.toc.level" select="-1"></xsl:param>
  30. <xsl:param name="toc.indent.width" select="18"></xsl:param>
  31. <!-- Page number in Xref-->
  32. <xsl:param name="insert.xref.page.number">yes</xsl:param> <xsl:template match="*" mode="page.citation">
  33. <xsl:param name="id" select="'???'"/>
  34. <fo:inline keep-together.within-line="always">
  35. <xsl:text>[p</xsl:text>
  36. <fo:page-number-citation ref-id="{$id}"/>
  37. <xsl:text>]</xsl:text>
  38. </fo:inline>
  39. </xsl:template>
  40. <!-- Prevent duplicate e-mails in the Acknowledgments pages-->
  41. <xsl:param name="ulink.show" select="0"/>
  42. </xsl:stylesheet>