[ded6ddd] | 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 |
|
---|
[a9e89d0] | 7 | <!-- Force section1's onto a new page -->
|
---|
[ded6ddd] | 8 | <xsl:attribute-set name="section.level1.properties">
|
---|
[a9e89d0] | 9 | <xsl:attribute name="break-after">
|
---|
| 10 | <xsl:choose>
|
---|
| 11 | <xsl:when test="not(position()=last())">
|
---|
| 12 | <xsl:text>page</xsl:text>
|
---|
| 13 | </xsl:when>
|
---|
[ded6ddd] | 14 | <xsl:otherwise>
|
---|
[a9e89d0] | 15 | <xsl:text>auto</xsl:text>
|
---|
[ded6ddd] | 16 | </xsl:otherwise>
|
---|
| 17 | </xsl:choose>
|
---|
| 18 | </xsl:attribute>
|
---|
| 19 | </xsl:attribute-set>
|
---|
| 20 |
|
---|
[a9e89d0] | 21 | <!-- Header -->
|
---|
[ded6ddd] | 22 | <xsl:attribute-set name="header.content.properties">
|
---|
| 23 | <xsl:attribute name="font-family">
|
---|
| 24 | <xsl:value-of select="$body.fontset"/>
|
---|
| 25 | </xsl:attribute>
|
---|
| 26 | <xsl:attribute name="text-align">right</xsl:attribute>
|
---|
| 27 | </xsl:attribute-set>
|
---|
| 28 |
|
---|
| 29 | <xsl:template name="header.content">
|
---|
| 30 | <xsl:value-of select="/book/bookinfo/title"/>
|
---|
| 31 | <xsl:text> - </xsl:text>
|
---|
| 32 | <xsl:value-of select="/book/bookinfo/subtitle"/>
|
---|
| 33 | </xsl:template>
|
---|
| 34 |
|
---|
| 35 | <xsl:template name="header.table">
|
---|
| 36 | <xsl:param name="gentext-key" select="''"/>
|
---|
| 37 | <xsl:choose>
|
---|
| 38 | <xsl:when test="$gentext-key = 'book'"/>
|
---|
| 39 | <xsl:otherwise>
|
---|
[a9e89d0] | 40 | <xsl:call-template name="header.content"/>
|
---|
[ded6ddd] | 41 | </xsl:otherwise>
|
---|
| 42 | </xsl:choose>
|
---|
| 43 | </xsl:template>
|
---|
| 44 |
|
---|
[a9e89d0] | 45 | <!-- Centered titles for book and part -->
|
---|
[ded6ddd] | 46 | <xsl:template name="book.titlepage">
|
---|
| 47 | <fo:block space-before="2in">
|
---|
| 48 | <fo:block>
|
---|
| 49 | <xsl:call-template name="book.titlepage.before.recto"/>
|
---|
| 50 | <xsl:call-template name="book.titlepage.recto"/>
|
---|
| 51 | </fo:block>
|
---|
| 52 | <fo:block>
|
---|
| 53 | <xsl:call-template name="book.titlepage.before.verso"/>
|
---|
| 54 | <xsl:call-template name="book.titlepage.verso"/>
|
---|
| 55 | </fo:block>
|
---|
| 56 | <xsl:call-template name="book.titlepage.separator"/>
|
---|
| 57 | </fo:block>
|
---|
| 58 | </xsl:template>
|
---|
| 59 |
|
---|
| 60 | <xsl:template name="part.titlepage">
|
---|
| 61 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
---|
| 62 | <fo:block space-before="2.5in">
|
---|
| 63 | <xsl:call-template name="part.titlepage.before.recto"/>
|
---|
| 64 | <xsl:call-template name="part.titlepage.recto"/>
|
---|
| 65 | </fo:block>
|
---|
| 66 | <fo:block>
|
---|
| 67 | <xsl:call-template name="part.titlepage.before.verso"/>
|
---|
| 68 | <xsl:call-template name="part.titlepage.verso"/>
|
---|
| 69 | </fo:block>
|
---|
| 70 | <xsl:call-template name="part.titlepage.separator"/>
|
---|
| 71 | </fo:block>
|
---|
| 72 | </xsl:template>
|
---|
| 73 |
|
---|
[a9e89d0] | 74 | <!-- Margins -->
|
---|
[ded6ddd] | 75 | <xsl:param name="page.margin.inner">0.75in</xsl:param>
|
---|
| 76 | <xsl:param name="page.margin.outer">0.75in</xsl:param>
|
---|
| 77 | <xsl:param name="title.margin.left">-1pc</xsl:param>
|
---|
| 78 | <xsl:attribute-set name="normal.para.spacing">
|
---|
| 79 | <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
|
---|
| 80 | <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
|
---|
| 81 | <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
|
---|
| 82 | </xsl:attribute-set>
|
---|
| 83 | <xsl:attribute-set name="list.block.spacing">
|
---|
| 84 | <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
|
---|
| 85 | <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
|
---|
| 86 | <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
|
---|
| 87 | <xsl:attribute name="space-after.optimum">0.8em</xsl:attribute>
|
---|
| 88 | <xsl:attribute name="space-after.minimum">0.6em</xsl:attribute>
|
---|
| 89 | <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
|
---|
| 90 | </xsl:attribute-set>
|
---|
| 91 | <xsl:attribute-set name="list.item.spacing">
|
---|
| 92 | <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
|
---|
| 93 | <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
|
---|
| 94 | <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
|
---|
| 95 | </xsl:attribute-set>
|
---|
| 96 | <xsl:attribute-set name="verbatim.properties">
|
---|
| 97 | <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
|
---|
| 98 | <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
|
---|
| 99 | <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
|
---|
| 100 | <xsl:attribute name="space-after.minimum">0.6em</xsl:attribute>
|
---|
| 101 | <xsl:attribute name="space-after.optimum">0.8em</xsl:attribute>
|
---|
| 102 | <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
|
---|
| 103 | </xsl:attribute-set>
|
---|
| 104 |
|
---|
[a9e89d0] | 105 | <!-- Others-->
|
---|
[ded6ddd] | 106 | <xsl:param name="header.rule" select="0"></xsl:param>
|
---|
| 107 | <xsl:param name="footer.rule" select="0"></xsl:param>
|
---|
[a9e89d0] | 108 | <xsl:param name="marker.section.level" select="-1"></xsl:param>
|
---|
[ded6ddd] | 109 |
|
---|
[a9e89d0] | 110 | <!-- Dropping a blank page -->
|
---|
| 111 | <xsl:template name="book.titlepage.separator"/>
|
---|
[ded6ddd] | 112 |
|
---|
[a9e89d0] | 113 | <!-- How render a variablelist -->
|
---|
| 114 | <xsl:param name="variablelist.as.blocks" select="1"/>
|
---|
[4da2304] | 115 |
|
---|
[ded6ddd] | 116 | </xsl:stylesheet>
|
---|