source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/xhtml/plain-titlepage.xsl@ 8eb3fe4

multilib-10.1
Last change on this file since 8eb3fe4 was 1fa2099, checked in by Thomas Trepl <thomas@…>, 5 years ago

Initial creation of multilib branch

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11565 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 5.9 KB
Line 
1<?xml version="1.0"?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" version="1.0" exclude-result-prefixes="exsl">
4
5<!-- This stylesheet was created by template/titlepage.xsl-->
6
7<xsl:template name="slides.titlepage.recto">
8 <xsl:choose>
9 <xsl:when test="slidesinfo/title">
10 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/title"/>
11 </xsl:when>
12 <xsl:when test="docinfo/title">
13 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/title"/>
14 </xsl:when>
15 <xsl:when test="info/title">
16 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/title"/>
17 </xsl:when>
18 <xsl:when test="title">
19 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="title"/>
20 </xsl:when>
21 </xsl:choose>
22
23 <xsl:choose>
24 <xsl:when test="slidesinfo/subtitle">
25 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/subtitle"/>
26 </xsl:when>
27 <xsl:when test="docinfo/subtitle">
28 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/subtitle"/>
29 </xsl:when>
30 <xsl:when test="info/subtitle">
31 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/subtitle"/>
32 </xsl:when>
33 <xsl:when test="subtitle">
34 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="subtitle"/>
35 </xsl:when>
36 </xsl:choose>
37
38 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/corpauthor"/>
39 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/corpauthor"/>
40 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/corpauthor"/>
41 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/authorgroup"/>
42 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/authorgroup"/>
43 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/authorgroup"/>
44 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/author"/>
45 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/author"/>
46 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/author"/>
47</xsl:template>
48
49<xsl:template name="slides.titlepage.verso">
50</xsl:template>
51
52<xsl:template name="slides.titlepage.separator">
53</xsl:template>
54
55<xsl:template name="slides.titlepage.before.recto">
56</xsl:template>
57
58<xsl:template name="slides.titlepage.before.verso">
59</xsl:template>
60
61<xsl:template name="slides.titlepage">
62 <div class="slide cover title">
63 <xsl:variable name="recto.content">
64 <xsl:call-template name="slides.titlepage.before.recto"/>
65 <xsl:call-template name="slides.titlepage.recto"/>
66 </xsl:variable>
67 <xsl:variable name="recto.elements.count">
68 <xsl:choose>
69 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
70 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
71 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
72 <xsl:otherwise>1</xsl:otherwise>
73 </xsl:choose>
74 </xsl:variable>
75 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
76 <div><xsl:copy-of select="$recto.content"/></div>
77 </xsl:if>
78 <xsl:variable name="verso.content">
79 <xsl:call-template name="slides.titlepage.before.verso"/>
80 <xsl:call-template name="slides.titlepage.verso"/>
81 </xsl:variable>
82 <xsl:variable name="verso.elements.count">
83 <xsl:choose>
84 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
85 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
86 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
87 <xsl:otherwise>1</xsl:otherwise>
88 </xsl:choose>
89 </xsl:variable>
90 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
91 <div><xsl:copy-of select="$verso.content"/></div>
92 </xsl:if>
93 <xsl:call-template name="slides.titlepage.separator"/>
94 </div>
95</xsl:template>
96
97<xsl:template match="*" mode="slides.titlepage.recto.mode">
98 <!-- if an element isn't found in this mode, -->
99 <!-- try the generic titlepage.mode -->
100 <xsl:apply-templates select="." mode="titlepage.mode"/>
101</xsl:template>
102
103<xsl:template match="*" mode="slides.titlepage.verso.mode">
104 <!-- if an element isn't found in this mode, -->
105 <!-- try the generic titlepage.mode -->
106 <xsl:apply-templates select="." mode="titlepage.mode"/>
107</xsl:template>
108
109<xsl:template match="title" mode="slides.titlepage.recto.auto.mode">
110<div xsl:use-attribute-sets="slides.titlepage.recto.style">
111<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
112</div>
113</xsl:template>
114
115<xsl:template match="subtitle" mode="slides.titlepage.recto.auto.mode">
116<div xsl:use-attribute-sets="slides.titlepage.recto.style">
117<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
118</div>
119</xsl:template>
120
121<xsl:template match="corpauthor" mode="slides.titlepage.recto.auto.mode">
122<div xsl:use-attribute-sets="slides.titlepage.recto.style">
123<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
124</div>
125</xsl:template>
126
127<xsl:template match="authorgroup" mode="slides.titlepage.recto.auto.mode">
128<div xsl:use-attribute-sets="slides.titlepage.recto.style">
129<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
130</div>
131</xsl:template>
132
133<xsl:template match="author" mode="slides.titlepage.recto.auto.mode">
134<div xsl:use-attribute-sets="slides.titlepage.recto.style">
135<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
136</div>
137</xsl:template>
138
139</xsl:stylesheet>
140
Note: See TracBrowser for help on using the repository browser.