lfs-pdf.xsl 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. <!-- Processing instruction for hard page breaks.
  56. FOP-0.93 supports now @keep-together.* attributes, that solves
  57. some page break issues. It also supports the soft page breack
  58. procesing instruction included in the DocBook stylesheets.
  59. But some times we may need hard page breaks. -->
  60. <!-- To know how to use all that page break features, see
  61. http://www.sagehill.net/docbookxsl/PageBreaking.html -->
  62. <xsl:template match="processing-instruction('hard-pagebreak')">
  63. <fo:block break-before='page'/>
  64. </xsl:template>
  65. </xsl:stylesheet>