source: stylesheets/print/lfs-pagesetup.xsl@ 5d4975d

10.0 10.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn nosym perl-modules qt5new systemd-11177 systemd-13485 trunk v5_1 v5_1-pre1 xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 5d4975d was 5d4975d, checked in by Larry Lawrence <larry@…>, 17 years ago

updated stylesheets to 0.9

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2121 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.6 KB
Line 
1<?xml version='1.0' encoding='ISO-8859-1'?>
2
3<!-- Version 0.9 - Manuel Canales Esparcia <macana@lfs-es.org> -->
4
5<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6 xmlns:fo="http://www.w3.org/1999/XSL/Format"
7 version="1.0">
8
9 <!-- Force section1's onto a new page -->
10 <xsl:attribute-set name="section.level1.properties">
11 <xsl:attribute name="break-after">
12 <xsl:choose>
13 <xsl:when test="not(position()=last())">
14 <xsl:text>page</xsl:text>
15 </xsl:when>
16 <xsl:otherwise>
17 <xsl:text>auto</xsl:text>
18 </xsl:otherwise>
19 </xsl:choose>
20 </xsl:attribute>
21 </xsl:attribute-set>
22
23 <!-- Header -->
24 <xsl:template name="header.content">
25 <xsl:param name="sequence" select="''"/>
26 <fo:block>
27 <xsl:attribute name="text-align">
28 <xsl:choose>
29 <xsl:when test="$sequence = 'first' or $sequence = 'odd'">right</xsl:when>
30 <xsl:otherwise>left</xsl:otherwise>
31 </xsl:choose>
32 </xsl:attribute>
33 <xsl:value-of select="/book/bookinfo/title"/>
34 <xsl:text> - </xsl:text>
35 <xsl:value-of select="/book/bookinfo/subtitle"/>
36 </fo:block>
37 </xsl:template>
38
39 <xsl:template name="header.table">
40 <xsl:param name="sequence" select="''"/>
41 <xsl:param name="gentext-key" select="''"/>
42 <xsl:choose>
43 <xsl:when test="$gentext-key = 'book' or $sequence = 'blank'"/>
44 <xsl:otherwise>
45 <xsl:call-template name="header.content">
46 <xsl:with-param name="sequence" select="$sequence"/>
47 </xsl:call-template>
48 </xsl:otherwise>
49 </xsl:choose>
50 </xsl:template>
51
52 <!-- Centered titles for book and part -->
53 <xsl:template name="book.titlepage">
54 <fo:block space-before="2in">
55 <fo:block>
56 <xsl:call-template name="book.titlepage.before.recto"/>
57 <xsl:call-template name="book.titlepage.recto"/>
58 </fo:block>
59 <fo:block>
60 <xsl:call-template name="book.titlepage.before.verso"/>
61 <xsl:call-template name="book.titlepage.verso"/>
62 </fo:block>
63 <xsl:call-template name="book.titlepage.separator"/>
64 </fo:block>
65 </xsl:template>
66
67 <xsl:template name="part.titlepage">
68 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
69 <fo:block space-before="2.5in">
70 <xsl:call-template name="part.titlepage.before.recto"/>
71 <xsl:call-template name="part.titlepage.recto"/>
72 </fo:block>
73 <fo:block>
74 <xsl:call-template name="part.titlepage.before.verso"/>
75 <xsl:call-template name="part.titlepage.verso"/>
76 </fo:block>
77 <xsl:call-template name="part.titlepage.separator"/>
78 </fo:block>
79 </xsl:template>
80
81 <!-- Margins -->
82 <xsl:param name="page.margin.inner">1in</xsl:param>
83 <xsl:param name="page.margin.outer">0.5in</xsl:param>
84 <xsl:param name="title.margin.left">-1pc</xsl:param>
85 <xsl:attribute-set name="normal.para.spacing">
86 <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
87 <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
88 <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
89 </xsl:attribute-set>
90 <xsl:attribute-set name="list.block.spacing">
91 <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
92 <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
93 <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
94 <xsl:attribute name="space-after.optimum">0.8em</xsl:attribute>
95 <xsl:attribute name="space-after.minimum">0.6em</xsl:attribute>
96 <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
97 </xsl:attribute-set>
98 <xsl:attribute-set name="list.item.spacing">
99 <xsl:attribute name="space-before.optimum">0.6em</xsl:attribute>
100 <xsl:attribute name="space-before.minimum">0.4em</xsl:attribute>
101 <xsl:attribute name="space-before.maximum">0.8em</xsl:attribute>
102 </xsl:attribute-set>
103 <xsl:attribute-set name="verbatim.properties">
104 <xsl:attribute name="space-before.minimum">0.6em</xsl:attribute>
105 <xsl:attribute name="space-before.optimum">0.8em</xsl:attribute>
106 <xsl:attribute name="space-before.maximum">1em</xsl:attribute>
107 <xsl:attribute name="space-after.minimum">0.6em</xsl:attribute>
108 <xsl:attribute name="space-after.optimum">0.8em</xsl:attribute>
109 <xsl:attribute name="space-after.maximum">1em</xsl:attribute>
110 </xsl:attribute-set>
111
112 <!-- Others-->
113 <xsl:param name="header.rule" select="0"></xsl:param>
114 <xsl:param name="footer.rule" select="0"></xsl:param>
115 <xsl:param name="marker.section.level" select="-1"></xsl:param>
116
117 <!-- Dropping a blank page -->
118 <xsl:template name="book.titlepage.separator"/>
119
120</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.