-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathhomepage-FLAT.xsl
68 lines (55 loc) · 1.65 KB
/
homepage-FLAT.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- Written by Michael Sintek, modified by Harold Boley "{sintek,boley}@dfki.de" -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:import href="slixhtml.xsl"/>
<xsl:template match="slides">
<xsl:processing-instruction name="cocoon-format">type="text/html"</xsl:processing-instruction>
<html>
<head>
<title>
<xsl:value-of select="//title"/>
</title>
<style type="text/css">
h1 { font-size: 32pt; font-weight: bold }
h2 { font-size: 16pt; font-weight: bold }
ul { line-height: 120% }
ol { line-height: 120% }
p { line-height: 100% }
</style>
</head>
<!-- <body bgcolor="#EEEEEE"> -->
<body background="hintergrund.gif" bgcolor="#FFFFFF">
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="slide">
<!-- <xsl:variable name="slno"><xsl:number/></xsl:variable> -->
<p>
<h1>
<!-- <xsl:value-of select="$slno"/>. -->
<xsl:apply-templates select="title" mode="title"/>
</h1>
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="title" mode="title">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="title">
</xsl:template>
<xsl:template match="box[@bgcolor]">
<table border="1" cellpadding="5" bgcolor="{@bgcolor}">
<tr><td>
<xsl:apply-templates/>
</td></tr>
</table>
</xsl:template>
<xsl:template match="box">
<table border="1" cellpadding="5" bgcolor="#EEFFEE">
<tr><td>
<xsl:apply-templates/>
</td></tr>
</table>
</xsl:template>
</xsl:stylesheet>