| 1 | <?xml version='1.0' encoding='ISO-8859-1'?>
 | 
|---|
| 2 | 
 | 
|---|
| 3 | <!--
 | 
|---|
| 4 | $LastChangedBy$
 | 
|---|
| 5 | $Date$
 | 
|---|
| 6 | -->
 | 
|---|
| 7 | 
 | 
|---|
| 8 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 | 
|---|
| 9 |                 xmlns:fo="http://www.w3.org/1999/XSL/Format"
 | 
|---|
| 10 |                 version="1.0">
 | 
|---|
| 11 | 
 | 
|---|
| 12 |    <!-- Stylesheet for FO output used to generate PDF
 | 
|---|
| 13 |         Sets global params and include customization stylesheets. -->
 | 
|---|
| 14 | 
 | 
|---|
| 15 |     <!-- Upstream FO templates. Profiled version is not supported by
 | 
|---|
| 16 |          xsltproc, thus pofiling must be done in two steps (see Makefile) -->
 | 
|---|
| 17 |   <xsl:import href="docbook-xsl-snapshot/fo/docbook.xsl"/>
 | 
|---|
| 18 | 
 | 
|---|
| 19 |     <!-- Uncomment the next for debugging the raw FO code.
 | 
|---|
| 20 |          Note that FOP will complaints about a lot of paragraph overflows
 | 
|---|
| 21 |          due that verbatim output is also indented.
 | 
|---|
| 22 |          Remember to comment the "rm $(BASEDIR)/lfs-pdf.fo" in
 | 
|---|
| 23 |          the Makefile. -->
 | 
|---|
| 24 |   <!--<xsl:output  encoding="UTF-8" indent="yes" />-->
 | 
|---|
| 25 | 
 | 
|---|
| 26 |     <!-- Including our others customized templates. -->
 | 
|---|
| 27 |   <xsl:include href="common.xsl"/>
 | 
|---|
| 28 |   <xsl:include href="pdf/lfs-admon.xsl"/>
 | 
|---|
| 29 |   <xsl:include href="pdf/lfs-index.xsl"/>
 | 
|---|
| 30 |   <xsl:include href="pdf/lfs-lists.xsl"/>
 | 
|---|
| 31 |   <xsl:include href="pdf/lfs-mixed.xsl"/>
 | 
|---|
| 32 |   <xsl:include href="pdf/lfs-pagesetup.xsl"/>
 | 
|---|
| 33 |   <xsl:include href="pdf/lfs-xref.xsl"/>
 | 
|---|
| 34 | 
 | 
|---|
| 35 |     <!-- Activating FOP-1 extensions. We use FOP-0.93 as the FO procesor. -->
 | 
|---|
| 36 |   <xsl:param name="fop1.extensions" select="1"/>
 | 
|---|
| 37 | 
 | 
|---|
| 38 |     <!-- Desactivate draft mode at all. -->
 | 
|---|
| 39 |   <xsl:param name="draft.mode" select="'no'"/>
 | 
|---|
| 40 | 
 | 
|---|
| 41 |    <!-- Paper size -->
 | 
|---|
| 42 |   <xsl:param name="paper.type" select="'USletter'"/>
 | 
|---|
| 43 | 
 | 
|---|
| 44 |     <!-- Paper size required by the publisher
 | 
|---|
| 45 |   <xsl:param name="paper.type" select="'Customized'"/>
 | 
|---|
| 46 |   <xsl:param name="page.width">7.25in</xsl:param>
 | 
|---|
| 47 |   <xsl:param name="page.height">9.25in</xsl:param>
 | 
|---|
| 48 |     -->
 | 
|---|
| 49 | 
 | 
|---|
| 50 |     <!-- Is the document to be printed double sided? 1 = yes, 0 = no -->
 | 
|---|
| 51 |     <!-- Change "double.sided" to "1" for published versions. -->
 | 
|---|
| 52 |   <xsl:param name="double.sided" select="0"/>
 | 
|---|
| 53 | 
 | 
|---|
| 54 |     <!-- Hyphenate? -->
 | 
|---|
| 55 |   <xsl:param name="hyphenate">false</xsl:param>
 | 
|---|
| 56 | 
 | 
|---|
| 57 |     <!-- Allow URLs to be automatically hyphenated.
 | 
|---|
| 58 |          We have expanded the support to several inline tags.
 | 
|---|
| 59 |          See pdf/lfs-mixed.xsl -->
 | 
|---|
| 60 |   <xsl:param name="ulink.hyphenate" select="'​'"/>
 | 
|---|
| 61 | 
 | 
|---|
| 62 |     <!-- List of characters to allow ulink URLs, and supported inline tags,
 | 
|---|
| 63 |          to be automatically hyphenated on.
 | 
|---|
| 64 |          Note: the / character is in the list but FOP-0.93 ignores it. -->
 | 
|---|
| 65 |   <xsl:param name="ulink.hyphenate.chars" select="'/._-'"/>
 | 
|---|
| 66 | 
 | 
|---|
| 67 |     <!-- Specify the default text alignment. -->
 | 
|---|
| 68 |   <xsl:param name="alignment">justify</xsl:param>
 | 
|---|
| 69 | 
 | 
|---|
| 70 |     <!-- Specifies the default point size for body text.
 | 
|---|
| 71 |          Used for titles size calculation. -->
 | 
|---|
| 72 |   <xsl:param name="body.font.master">9</xsl:param>
 | 
|---|
| 73 | 
 | 
|---|
| 74 |     <!-- Specifies the default font size for body text. -->
 | 
|---|
| 75 |   <xsl:param name="body.font.size">12pt</xsl:param>
 | 
|---|
| 76 | 
 | 
|---|
| 77 |     <!-- Control generation of ToCs and LoTs -->
 | 
|---|
| 78 |   <xsl:param name="generate.toc">
 | 
|---|
| 79 |     book      toc,title
 | 
|---|
| 80 |     part      nop
 | 
|---|
| 81 |   </xsl:param>
 | 
|---|
| 82 | 
 | 
|---|
| 83 |     <!-- How deep should recursive sections appear in the TOC? -->
 | 
|---|
| 84 |   <xsl:param name="toc.section.depth">1</xsl:param>
 | 
|---|
| 85 | 
 | 
|---|
| 86 |     <!-- Amount of indentation for TOC entries. -->
 | 
|---|
| 87 |   <xsl:param name="toc.indent.width" select="18"/>
 | 
|---|
| 88 | 
 | 
|---|
| 89 |     <!-- Turns page numbers in xrefs on and off. -->
 | 
|---|
| 90 |   <xsl:param name="insert.xref.page.number">no</xsl:param>
 | 
|---|
| 91 | 
 | 
|---|
| 92 |     <!-- Display URLs after ulinks? 1 = yes, 0 = no
 | 
|---|
| 93 |          Set to 0 to prevent duplicate e-mails in the Acknowledgments pages. -->
 | 
|---|
| 94 |   <xsl:param name="ulink.show" select="0"/>
 | 
|---|
| 95 | 
 | 
|---|
| 96 |     <!-- Processing instruction for hard page breaks.
 | 
|---|
| 97 |          FOP-0.93 supports now @keep-*.*, @orphans, and @widows attributes,
 | 
|---|
| 98 |          that solves several page break issues.
 | 
|---|
| 99 |          It also supports the soft page break procesing instruction included
 | 
|---|
| 100 |          in the DocBook stylesheets.
 | 
|---|
| 101 |          But some times we may need hard page breaks for final book versions. -->
 | 
|---|
| 102 |     <!-- To know how to use all that page break features, see
 | 
|---|
| 103 |          http://www.sagehill.net/docbookxsl/PageBreaking.html -->
 | 
|---|
| 104 |   <xsl:template match="processing-instruction('hard-pagebreak')">
 | 
|---|
| 105 |     <fo:block break-before='page'/>
 | 
|---|
| 106 |   </xsl:template>
 | 
|---|
| 107 | 
 | 
|---|
| 108 | </xsl:stylesheet>
 | 
|---|