lfs-pdf.xsl 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. <!-- Stylesheet for FO output used to generate PDF -->
  6. <!-- Upstream FO templates. Profiled version is not supported by
  7. xsltproc, thus pofiling must be done in two steps (see Makefile) -->
  8. <xsl:import href="docbook-xsl-snapshot/fo/docbook.xsl"/>
  9. <!-- Including our others customized templates -->
  10. <xsl:include href="pdf/lfs-admon.xsl"/>
  11. <xsl:include href="pdf/lfs-index.xsl"/>
  12. <xsl:include href="pdf/lfs-mixed.xsl"/>
  13. <xsl:include href="pdf/lfs-pagesetup.xsl"/>
  14. <xsl:include href="pdf/lfs-sections.xsl"/>
  15. <xsl:include href="pdf/lfs-xref.xsl"/>
  16. <!-- Activating FOP-1 extensions. We use FOP-0.93 as the FO procesor. -->
  17. <xsl:param name="fop1.extensions" select="1"/>
  18. <!-- This file contains our localization strings (for internationalization) -->
  19. <xsl:param name="local.l10n.xml" select="document('lfs-l10n.xml')"/>
  20. <!-- Desactivate draft mode at all. -->
  21. <xsl:param name="draft.mode" select="'no'"/>
  22. <!-- Paper size -->
  23. <xsl:param name="paper.type" select="'USletter'"/>
  24. <!-- Paper size required by the publisher
  25. <xsl:param name="paper.type" select="'Customized'"/>
  26. <xsl:param name="page.width">7.25in</xsl:param>
  27. <xsl:param name="page.height">9.25in</xsl:param>
  28. -->
  29. <!-- Is the document to be printed double sided? 1 = yes, 0 = no -->
  30. <!-- Change "double.sided" to "1" for published versions -->
  31. <xsl:param name="double.sided" select="0"/>
  32. <!-- Hyphenate? -->
  33. <xsl:param name="hyphenate">false</xsl:param>
  34. <!-- Specify the default text alignment -->
  35. <xsl:param name="alignment">justify</xsl:param>
  36. <!-- Specifies the default point size for body text.
  37. Used for titles size calculation. -->
  38. <xsl:param name="body.font.master">9</xsl:param>
  39. <!-- Specifies the default font size for body text -->
  40. <xsl:param name="body.font.size">12pt</xsl:param>
  41. <!-- Control generation of ToCs and LoTs -->
  42. <xsl:param name="generate.toc">
  43. book toc
  44. part nop
  45. </xsl:param>
  46. <!-- How deep should recursive sections appear in the TOC? -->
  47. <xsl:param name="toc.section.depth">1</xsl:param>
  48. <!-- Amount of indentation for TOC entries -->
  49. <xsl:param name="toc.indent.width" select="18"></xsl:param>
  50. <!-- Turns page numbers in xrefs on and off -->
  51. <xsl:param name="insert.xref.page.number">no</xsl:param>
  52. <!-- Display URLs after ulinks? 1 = yes, 0 = no
  53. Set to 0 tp prevent duplicate e-mails in the Acknowledgments pages -->
  54. <xsl:param name="ulink.show" select="0"/>
  55. </xsl:stylesheet>