[2a26a4f5] | 1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
[c873d807] | 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 |
|
---|
[872a378] | 30 | <!-- Activate FOP-1 extensions. We use FOP-0.93 as the FO processor. -->
|
---|
[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.
|
---|
[2a26a4f5] | 54 | See pdf/lfs-mixed.xsl.
|
---|
| 55 | Note: the argument in select= is a zero-width space
|
---|
[b8d33a5] | 56 | (unicode 200b)-->
|
---|
| 57 | <xsl:param name="ulink.hyphenate" select="'​'"/>
|
---|
[c873d807] | 58 |
|
---|
[15c7d39] | 59 | <!-- List of characters to allow ulink URLs, and supported inline tags,
|
---|
| 60 | to be automatically hyphenated on.
|
---|
| 61 | Note: the / character is in the list but FOP-0.93 ignores it. -->
|
---|
[c873d807] | 62 | <xsl:param name="ulink.hyphenate.chars" select="'/._-'"/>
|
---|
| 63 |
|
---|
[15c7d39] | 64 | <!-- Specify the default text alignment. -->
|
---|
[c873d807] | 65 | <xsl:param name="alignment">justify</xsl:param>
|
---|
| 66 |
|
---|
[15c7d39] | 67 | <!-- Specify the default point size for body text.
|
---|
| 68 | Used for calculating the size of titles. -->
|
---|
[c873d807] | 69 | <xsl:param name="body.font.master">9</xsl:param>
|
---|
| 70 |
|
---|
[15c7d39] | 71 | <!-- Specifies the default font size for body text. -->
|
---|
[c873d807] | 72 | <xsl:param name="body.font.size">12pt</xsl:param>
|
---|
| 73 |
|
---|
[15c7d39] | 74 | <!-- Control generation of ToCs and LoTs -->
|
---|
[c873d807] | 75 | <xsl:param name="generate.toc">
|
---|
| 76 | book toc,title
|
---|
| 77 | part nop
|
---|
| 78 | </xsl:param>
|
---|
| 79 |
|
---|
[15c7d39] | 80 | <!-- How deep should recursive sections appear in the TOC? -->
|
---|
[c873d807] | 81 | <xsl:param name="toc.section.depth">1</xsl:param>
|
---|
| 82 |
|
---|
[15c7d39] | 83 | <!-- Amount of indentation for TOC entries. -->
|
---|
[c873d807] | 84 | <xsl:param name="toc.indent.width" select="18"/>
|
---|
| 85 |
|
---|
[15c7d39] | 86 | <!-- Turns page numbers in xrefs on and off. -->
|
---|
[c873d807] | 87 | <xsl:param name="insert.xref.page.number">no</xsl:param>
|
---|
| 88 |
|
---|
[15c7d39] | 89 | <!-- Display URLs after ulinks? 1 = yes, 0 = no
|
---|
| 90 | Set to 0 to prevent duplicate e-mails in the Acknowledgments pages. -->
|
---|
[c873d807] | 91 | <xsl:param name="ulink.show" select="0"/>
|
---|
| 92 |
|
---|
[15c7d39] | 93 | <!-- Processing instruction for hard page breaks.
|
---|
| 94 | FOP-0.93 supports @keep-*.*, @orphans, and @widows attributes,
|
---|
| 95 | that solves several page break issues.
|
---|
[872a378] | 96 | It also supports the soft page break processing instruction included
|
---|
[15c7d39] | 97 | in the DocBook stylesheets.
|
---|
| 98 | But sometimes we may need hard page breaks for final book versions.
|
---|
| 99 | To understand all of the page break features, see
|
---|
| 100 | http://www.sagehill.net/docbookxsl/PageBreaking.html -->
|
---|
[c873d807] | 101 | <xsl:template match="processing-instruction('hard-pagebreak')">
|
---|
| 102 | <fo:block break-before='page'/>
|
---|
| 103 | </xsl:template>
|
---|
| 104 |
|
---|
| 105 | </xsl:stylesheet>
|
---|