source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/slides/fo/plain-titlepage.xsl@ a90bdb6

7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since a90bdb6 was b1a51ac1, checked in by Krejzi <krejzi@…>, 11 years ago

Import new branch

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

  • Property mode set to 100644
File size: 6.4 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:apply-templates mode="slides.titlepage.recto.auto.mode" select="slidesinfo/pubdate"/>
48 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="docinfo/pubdate"/>
49 <xsl:apply-templates mode="slides.titlepage.recto.auto.mode" select="info/pubdate"/>
50</xsl:template>
51
52<xsl:template name="slides.titlepage.verso">
53</xsl:template>
54
55<xsl:template name="slides.titlepage.separator">
56</xsl:template>
57
58<xsl:template name="slides.titlepage.before.recto">
59</xsl:template>
60
61<xsl:template name="slides.titlepage.before.verso">
62</xsl:template>
63
64<xsl:template name="slides.titlepage">
65 <block>
66 <xsl:variable name="recto.content">
67 <xsl:call-template name="slides.titlepage.before.recto"/>
68 <xsl:call-template name="slides.titlepage.recto"/>
69 </xsl:variable>
70 <xsl:variable name="recto.elements.count">
71 <xsl:choose>
72 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
73 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
74 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($recto.content)/*)"/></xsl:when>
75 <xsl:otherwise>1</xsl:otherwise>
76 </xsl:choose>
77 </xsl:variable>
78 <xsl:if test="(normalize-space($recto.content) != '') or ($recto.elements.count &gt; 0)">
79 <block><xsl:copy-of select="$recto.content"/></block>
80 </xsl:if>
81 <xsl:variable name="verso.content">
82 <xsl:call-template name="slides.titlepage.before.verso"/>
83 <xsl:call-template name="slides.titlepage.verso"/>
84 </xsl:variable>
85 <xsl:variable name="verso.elements.count">
86 <xsl:choose>
87 <xsl:when test="function-available('exsl:node-set')"><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
88 <xsl:when test="contains(system-property('xsl:vendor'), 'Apache Software Foundation')">
89 <!--Xalan quirk--><xsl:value-of select="count(exsl:node-set($verso.content)/*)"/></xsl:when>
90 <xsl:otherwise>1</xsl:otherwise>
91 </xsl:choose>
92 </xsl:variable>
93 <xsl:if test="(normalize-space($verso.content) != '') or ($verso.elements.count &gt; 0)">
94 <block><xsl:copy-of select="$verso.content"/></block>
95 </xsl:if>
96 <xsl:call-template name="slides.titlepage.separator"/>
97 </block>
98</xsl:template>
99
100<xsl:template match="*" mode="slides.titlepage.recto.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="*" mode="slides.titlepage.verso.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="title" mode="slides.titlepage.recto.auto.mode">
113<block xsl:use-attribute-sets="slides.titlepage.title.properties">
114<xsl:call-template name="presentation.title">
115</xsl:call-template>
116</block>
117</xsl:template>
118
119<xsl:template match="subtitle" mode="slides.titlepage.recto.auto.mode">
120<block xsl:use-attribute-sets="slides.titlepage.subtitle.properties">
121<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
122</block>
123</xsl:template>
124
125<xsl:template match="corpauthor" mode="slides.titlepage.recto.auto.mode">
126<block xsl:use-attribute-sets="slides.titlepage.corpauthor.properties">
127<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
128</block>
129</xsl:template>
130
131<xsl:template match="authorgroup" mode="slides.titlepage.recto.auto.mode">
132<block xsl:use-attribute-sets="slides.titlepage.authorgroup.properties">
133<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
134</block>
135</xsl:template>
136
137<xsl:template match="author" mode="slides.titlepage.recto.auto.mode">
138<block xsl:use-attribute-sets="slides.titlepage.author.properties">
139<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
140</block>
141</xsl:template>
142
143<xsl:template match="pubdate" mode="slides.titlepage.recto.auto.mode">
144<block xsl:use-attribute-sets="slides.titlepage.pubdate.properties">
145<xsl:apply-templates select="." mode="slides.titlepage.recto.mode"/>
146</block>
147</xsl:template>
148
149</xsl:stylesheet>
150
Note: See TracBrowser for help on using the repository browser.