blob: 6453cd7b6f7d37e183383810d9cb25e76321f9f2 (
plain)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
<html>
<meta charset="utf-8"/>
<body>
<xsl:for-each select="studip">
<h1>Veranstaltung: <xsl:value-of select="@range"/></h1>
<xsl:for-each select="institut">
<br/>
<xsl:if test="personen">
<table width="100%" cellpadding="5" cellspacing="2">
<tr colspan="5">
<td>
<h2>Teilnehmendenliste</h2>
</td>
</tr>
<tr>
<td>
<br/>
</td>
</tr>
<tr>
<td bgcolor="#006699">
<b>
<font color="#FFFFFF">Name</font>
</b>
</td>
<td bgcolor="#006699">
<b>
<font color="#FFFFFF">Telefon</font>
</b>
</td>
<td bgcolor="#006699">
<b>
<font color="#FFFFFF">Adresse</font>
</b>
</td>
<td bgcolor="#006699">
<b>
<font color="#FFFFFF">E-Mail</font>
</b>
</td>
</tr>
<xsl:choose>
<xsl:when test="personen/gruppe">
<xsl:for-each select="personen/gruppe">
<tr>
<td colspan="4" bgcolor="#006699">
<font color="#FFFFFF">
<b>
<xsl:value-of select="@key"/>
</b>
</font>
</td>
</tr>
<xsl:call-template name="showperson"/>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
<xsl:for-each select="personen">
<xsl:call-template name="showperson"/>
</xsl:for-each>
</xsl:otherwise>
</xsl:choose>
</table>
</xsl:if>
<br/>
<br/>
</xsl:for-each>
<font size="-1">Generiert von Stud.IP Version <xsl:value-of select="@version"/></font>
</xsl:for-each>
</body>
</html>
</xsl:template>
<xsl:template name="showperson">
<xsl:for-each select="person">
<tr>
<td bgcolor="#EEEEEE">
<xsl:if test="titel">
<xsl:value-of select="titel"/>
<xsl:text> </xsl:text>
</xsl:if>
<xsl:value-of select="vorname"/>
<xsl:text> </xsl:text>
<xsl:value-of select="nachname"/>
<xsl:if test="titel2">
<xsl:text> </xsl:text>
<xsl:value-of select="titel2"/>
</xsl:if>
<br/>
</td>
<td bgcolor="#EEEEEE">
<xsl:if test="privadr">
<xsl:value-of select="privadr"/>
</xsl:if>
<br/>
</td>
<td bgcolor="#EEEEEE">
<xsl:if test="privatnr">
<xsl:value-of select="privatnr"/>
</xsl:if>
<br/>
</td>
<td bgcolor="#EEEEEE">
<xsl:if test="email">
<xsl:value-of select="email"/>
</xsl:if>
<br/>
</td>
</tr>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
|