lfs-print.xsl 2.0 KB

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