2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
4 <!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. -->
6 <xsl:template name="book.titlepage.recto">
8 <xsl:when test="bookinfo/title">
9 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/>
11 <xsl:when test="info/title">
12 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/title"/>
14 <xsl:when test="title">
15 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/>
20 <xsl:when test="bookinfo/subtitle">
21 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/>
23 <xsl:when test="info/subtitle">
24 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/subtitle"/>
26 <xsl:when test="subtitle">
27 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/>
31 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/>
32 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/corpauthor"/>
33 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/>
34 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup"/>
35 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
36 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
37 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/affiliation"/>
38 <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/affiliation"/>
41 <xsl:template name="book.titlepage.verso">
43 <xsl:when test="bookinfo/title">
44 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/title"/>
46 <xsl:when test="info/title">
47 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/title"/>
49 <xsl:when test="title">
50 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="title"/>
54 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/corpauthor"/>
55 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/corpauthor"/>
56 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/authorgroup"/>
57 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/authorgroup"/>
58 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/author"/>
59 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/author"/>
60 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/affiliation"/>
61 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/affiliation"/>
62 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/address"/>
63 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/address"/>
64 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/pubdate"/>
65 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/pubdate"/>
66 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/abstract"/>
67 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/abstract"/>
68 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/>
69 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/copyright"/>
70 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/revhistory"/>
71 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/revhistory"/>
72 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/>
73 <xsl:apply-templates mode="book.titlepage.verso.auto.mode" select="info/legalnotice"/>
76 <xsl:template name="book.titlepage.separator">
79 <xsl:template name="book.titlepage.before.recto">
82 <xsl:template name="book.titlepage.before.verso"><fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" break-after="page"/>
85 <xsl:template name="book.titlepage">
86 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
87 <xsl:variable name="recto.content">
88 <xsl:call-template name="book.titlepage.before.recto"/>
89 <xsl:call-template name="book.titlepage.recto"/>
91 <xsl:if test="normalize-space($recto.content) != ''">
92 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
94 <xsl:variable name="verso.content">
95 <xsl:call-template name="book.titlepage.before.verso"/>
96 <xsl:call-template name="book.titlepage.verso"/>
98 <xsl:if test="normalize-space($verso.content) != ''">
99 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
101 <xsl:call-template name="book.titlepage.separator"/>
105 <xsl:template match="*" mode="book.titlepage.recto.mode">
106 <!-- if an element isn't found in this mode, -->
107 <!-- try the generic titlepage.mode -->
108 <xsl:apply-templates select="." mode="titlepage.mode"/>
111 <xsl:template match="*" mode="book.titlepage.verso.mode">
112 <!-- if an element isn't found in this mode, -->
113 <!-- try the generic titlepage.mode -->
114 <xsl:apply-templates select="." mode="titlepage.mode"/>
117 <xsl:template match="title" mode="book.titlepage.recto.auto.mode">
118 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="24.8832pt" space-before="5em" font-weight="bold" font-family="{$title.fontset}">
119 <xsl:call-template name="division.title">
120 <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
125 <xsl:template match="subtitle" mode="book.titlepage.recto.auto.mode">
126 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" text-align="center" font-size="20.736pt" space-before="15.552pt" font-family="{$title.fontset}">
127 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
131 <xsl:template match="corpauthor" mode="book.titlepage.recto.auto.mode">
132 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" keep-with-next="always" space-before="2in">
133 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
137 <xsl:template match="authorgroup" mode="book.titlepage.recto.auto.mode">
138 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" space-before="2in">
139 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
143 <xsl:template match="author" mode="book.titlepage.recto.auto.mode">
144 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" font-size="17.28pt" space-before="10.8pt" keep-with-next="always">
145 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
149 <xsl:template match="affiliation" mode="book.titlepage.recto.auto.mode">
150 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.recto.style" space-before="1em">
151 <xsl:apply-templates select="." mode="book.titlepage.recto.mode"/>
155 <xsl:template match="title" mode="book.titlepage.verso.auto.mode">
156 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="14.4pt" font-weight="bold" font-family="{$title.fontset}">
157 <xsl:call-template name="book.verso.title">
162 <xsl:template match="corpauthor" mode="book.titlepage.verso.auto.mode">
163 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
164 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
168 <xsl:template match="authorgroup" mode="book.titlepage.verso.auto.mode">
169 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
170 <xsl:call-template name="verso.authorgroup">
175 <xsl:template match="author" mode="book.titlepage.verso.auto.mode">
176 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
177 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
181 <xsl:template match="affiliation" mode="book.titlepage.verso.auto.mode">
182 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
183 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
187 <xsl:template match="address" mode="book.titlepage.verso.auto.mode">
188 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
189 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
193 <xsl:template match="pubdate" mode="book.titlepage.verso.auto.mode">
194 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
195 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
199 <xsl:template match="abstract" mode="book.titlepage.verso.auto.mode">
200 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style">
201 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
205 <xsl:template match="copyright" mode="book.titlepage.verso.auto.mode">
206 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
207 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
211 <xsl:template match="revhistory" mode="book.titlepage.verso.auto.mode">
212 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" space-before="1em">
213 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>
217 <xsl:template match="legalnotice" mode="book.titlepage.verso.auto.mode">
218 <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="8pt">
219 <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/>