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