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