1 | <?xml version="1.0" encoding="utf-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" version="1.0" exclude-result-prefixes="exsl">
|
---|
2 |
|
---|
3 | <!-- This stylesheet was created by template/titlepage.xsl; do not edit it by hand. -->
|
---|
4 |
|
---|
5 | <xsl:template name="slides.titlepage.recto">
|
---|
6 | <xsl:choose>
|
---|
7 | <xsl:when test="slidesinfo/title">
|
---|
8 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/title[1]"/>
|
---|
9 | </xsl:when>
|
---|
10 | <xsl:when test="docinfo/title">
|
---|
11 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/title[1]"/>
|
---|
12 | </xsl:when>
|
---|
13 | <xsl:when test="info/title">
|
---|
14 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/title[1]"/>
|
---|
15 | </xsl:when>
|
---|
16 | <xsl:when test="title">
|
---|
17 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="title[1]"/>
|
---|
18 | </xsl:when>
|
---|
19 | </xsl:choose>
|
---|
20 |
|
---|
21 | <xsl:choose>
|
---|
22 | <xsl:when test="slidesinfo/subtitle">
|
---|
23 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/subtitle[1]"/>
|
---|
24 | </xsl:when>
|
---|
25 | <xsl:when test="docinfo/subtitle">
|
---|
26 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/subtitle[1]"/>
|
---|
27 | </xsl:when>
|
---|
28 | <xsl:when test="info/subtitle">
|
---|
29 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/subtitle[1]"/>
|
---|
30 | </xsl:when>
|
---|
31 | <xsl:when test="subtitle">
|
---|
32 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="subtitle[1]"/>
|
---|
33 | </xsl:when>
|
---|
34 | </xsl:choose>
|
---|
35 |
|
---|
36 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/corpauthor"/>
|
---|
37 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
|
---|
38 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/corpauthor"/>
|
---|
39 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/authorgroup"/>
|
---|
40 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
|
---|
41 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/authorgroup"/>
|
---|
42 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/author"/>
|
---|
43 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/author"/>
|
---|
44 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/author"/>
|
---|
45 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/pubdate"/>
|
---|
46 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
|
---|
47 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/pubdate"/>
|
---|
48 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/confgroup"/>
|
---|
49 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/confgroup"/>
|
---|
50 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/confgroup"/>
|
---|
51 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/releaseinfo"/>
|
---|
52 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/releaseinfo"/>
|
---|
53 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/releaseinfo"/>
|
---|
54 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/copyright"/>
|
---|
55 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/copyright"/>
|
---|
56 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/copyright"/>
|
---|
57 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/revision"/>
|
---|
58 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/revision"/>
|
---|
59 | <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/revision"/>
|
---|
60 | </xsl:template>
|
---|
61 |
|
---|
62 | <xsl:template name="slides.titlepage.verso">
|
---|
63 | </xsl:template>
|
---|
64 |
|
---|
65 | <xsl:template name="slides.titlepage.separator">
|
---|
66 | </xsl:template>
|
---|
67 |
|
---|
68 | <xsl:template name="slides.titlepage.before.recto">
|
---|
69 | </xsl:template>
|
---|
70 |
|
---|
71 | <xsl:template name="slides.titlepage.before.verso">
|
---|
72 | </xsl:template>
|
---|
73 |
|
---|
74 | <xsl:template name="slides.titlepage">
|
---|
75 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
---|
76 | <xsl:variable name="recto.content">
|
---|
77 | <xsl:call-template name="slides.titlepage.before.recto"/>
|
---|
78 | <xsl:call-template name="slides.titlepage.recto"/>
|
---|
79 | </xsl:variable>
|
---|
80 | <xsl:variable name="recto.elements.count">
|
---|
81 | <xsl:choose>
|
---|
82 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
|
---|
83 | <xsl:otherwise>1</xsl:otherwise>
|
---|
84 | </xsl:choose>
|
---|
85 | </xsl:variable>
|
---|
86 | <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count > 0)">
|
---|
87 | <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
|
---|
88 | </xsl:if>
|
---|
89 | <xsl:variable name="verso.content">
|
---|
90 | <xsl:call-template name="slides.titlepage.before.verso"/>
|
---|
91 | <xsl:call-template name="slides.titlepage.verso"/>
|
---|
92 | </xsl:variable>
|
---|
93 | <xsl:variable name="verso.elements.count">
|
---|
94 | <xsl:choose>
|
---|
95 | <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
|
---|
96 | <xsl:otherwise>1</xsl:otherwise>
|
---|
97 | </xsl:choose>
|
---|
98 | </xsl:variable>
|
---|
99 | <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count > 0)">
|
---|
100 | <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
|
---|
101 | </xsl:if>
|
---|
102 | <xsl:call-template name="slides.titlepage.separator"/>
|
---|
103 | </fo:block>
|
---|
104 | </xsl:template>
|
---|
105 |
|
---|
106 | <xsl:template match="*" mode="slides.titlepage.recto.mode">
|
---|
107 | <!-- if an element isn't found in this mode, -->
|
---|
108 | <!-- try the generic titlepage.mode -->
|
---|
109 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
110 | </xsl:template>
|
---|
111 |
|
---|
112 | <xsl:template match="*" mode="slides.titlepage.verso.mode">
|
---|
113 | <!-- if an element isn't found in this mode, -->
|
---|
114 | <!-- try the generic titlepage.mode -->
|
---|
115 | <xsl:apply-templates select="." mode="titlepage.mode"/>
|
---|
116 | </xsl:template>
|
---|
117 |
|
---|
118 | <xsl:template match="title" mode="slides.titlepage.recto.auto.mode">
|
---|
119 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" text-align="center" space-after="1em" padding-top="1.5in" keep-with-next="always" font-size="{$foil.title.size}" font-weight="bold" font-family="{$slide.title.font.family}">
|
---|
120 | <xsl:call-template name="component.title">
|
---|
121 | <xsl:with-param name="node" select="ancestor-or-self::slides[1]"/>
|
---|
122 | </xsl:call-template>
|
---|
123 | </fo:block>
|
---|
124 | </xsl:template>
|
---|
125 |
|
---|
126 | <xsl:template match="subtitle" mode="slides.titlepage.recto.auto.mode">
|
---|
127 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" text-align="center" space-after="1em" font-family="{$slide.title.font.family}">
|
---|
128 | <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
|
---|
129 | </fo:block>
|
---|
130 | </xsl:template>
|
---|
131 |
|
---|
132 | <xsl:template match="corpauthor" mode="slides.titlepage.recto.auto.mode">
|
---|
133 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="20.736pt" text-align="center" space-after="1em">
|
---|
134 | <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
|
---|
135 | </fo:block>
|
---|
136 | </xsl:template>
|
---|
137 |
|
---|
138 | <xsl:template match="authorgroup" mode="slides.titlepage.recto.auto.mode">
|
---|
139 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style">
|
---|
140 | <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
|
---|
141 | </fo:block>
|
---|
142 | </xsl:template>
|
---|
143 |
|
---|
144 | <xsl:template match="author" mode="slides.titlepage.recto.auto.mode">
|
---|
145 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="20.736pt" text-align="center" space-after="1em">
|
---|
146 | <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
|
---|
147 | </fo:block>
|
---|
148 | </xsl:template>
|
---|
149 |
|
---|
150 | <xsl:template match="pubdate" mode="slides.titlepage.recto.auto.mode">
|
---|
151 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="17.28pt" text-align="center" space-after="1em">
|
---|
152 | <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
|
---|
153 | </fo:block>
|
---|
154 | </xsl:template>
|
---|
155 |
|
---|
156 | <xsl:template match="confgroup" mode="slides.titlepage.recto.auto.mode">
|
---|
157 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="17.28pt" text-align="center" space-after="1em">
|
---|
158 | <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
|
---|
159 | </fo:block>
|
---|
160 | </xsl:template>
|
---|
161 |
|
---|
162 | <xsl:template match="releaseinfo" mode="slides.titlepage.recto.auto.mode">
|
---|
163 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="17.28pt" text-align="center" space-after="1em">
|
---|
164 | <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
|
---|
165 | </fo:block>
|
---|
166 | </xsl:template>
|
---|
167 |
|
---|
168 | <xsl:template match="copyright" mode="slides.titlepage.recto.auto.mode">
|
---|
169 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" font-size="17.28pt" text-align="center">
|
---|
170 | <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
|
---|
171 | </fo:block>
|
---|
172 | </xsl:template>
|
---|
173 |
|
---|
174 | <xsl:template match="revision" mode="slides.titlepage.recto.auto.mode">
|
---|
175 | <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="slides.titlepage.recto.style" text-align="center">
|
---|
176 | <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
|
---|
177 | </fo:block>
|
---|
178 | </xsl:template>
|
---|
179 |
|
---|
180 | </xsl:stylesheet>
|
---|