Debian Codegraph @

xsl/fo/plain-titlepage.xsl

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 <?xml version="1.0" encoding="utf-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
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:if test="normalize-space($recto.content) != ''">
81 <fo:block><xsl:copy-of select="$recto.content"/></fo:block>
82 </xsl:if>
83 <xsl:variable name="verso.content">
84 <xsl:call-template name="slides.titlepage.before.verso"/>
85 <xsl:call-template name="slides.titlepage.verso"/>
86 </xsl:variable>
87 <xsl:if test="normalize-space($verso.content) != ''">
88 <fo:block><xsl:copy-of select="$verso.content"/></fo:block>
89 </xsl:if>
90 <xsl:call-template name="slides.titlepage.separator"/>
91 </fo:block>
92 </xsl:template>
93
94 <xsl:template match="*" mode="slides.titlepage.recto.mode">
95 <!-- if an element isn't found in this mode, -->
96 <!-- try the generic titlepage.mode -->
97 <xsl:apply-templates select="." mode="titlepage.mode"/>
98 </xsl:template>
99
100 <xsl:template match="*" mode="slides.titlepage.verso.mode">
101 <!-- if an element isn't found in this mode, -->
102 <!-- try the generic titlepage.mode -->
103 <xsl:apply-templates select="." mode="titlepage.mode"/>
104 </xsl:template>
105
106 <xsl:template match="title" mode="slides.titlepage.recto.auto.mode">
107 <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}">
108 <xsl:call-template name="component.title">
109 <xsl:with-param name="node" select="ancestor-or-self::slides[1]"/>
110 </xsl:call-template>
111 </fo:block>
112 </xsl:template>
113
114 <xsl:template match="subtitle" mode="slides.titlepage.recto.auto.mode">
115 <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}">
116 <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
117 </fo:block>
118 </xsl:template>
119
120 <xsl:template match="corpauthor" mode="slides.titlepage.recto.auto.mode">
121 <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">
122 <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
123 </fo:block>
124 </xsl:template>
125
126 <xsl:template match="authorgroup" 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">
128 <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
129 </fo:block>
130 </xsl:template>
131
132 <xsl:template match="author" 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="pubdate" 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" font-size="17.28pt" text-align="center" space-after="1em">
140 <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
141 </fo:block>
142 </xsl:template>
143
144 <xsl:template match="confgroup" 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="17.28pt" 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="releaseinfo" 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="copyright" 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">
158 <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
159 </fo:block>
160 </xsl:template>
161
162 <xsl:template match="revision" 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" text-align="center">
164 <xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
165 </fo:block>
166 </xsl:template>
167
168 </xsl:stylesheet>