1
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2
|
|
3
|
|
4
|
|
5
|
<!--
|
6
|
|
7
|
Description: presents the list of events in a GeoRSS
|
8
|
|
9
|
Author: adair
|
10
|
|
11
|
Licence: LGPL as specified in http://www.gnu.org/copyleft/lesser.html .
|
12
|
|
13
|
|
14
|
|
15
|
$Id$
|
16
|
|
17
|
$Name$
|
18
|
|
19
|
-->
|
20
|
|
21
|
|
22
|
|
23
|
<xsl:stylesheet version="1.0"
|
24
|
|
25
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
26
|
|
27
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
28
|
|
29
|
xmlns:rss="http://purl.org/rss/1.0/"
|
30
|
|
31
|
xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
|
32
|
|
33
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
34
|
|
35
|
xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
|
36
|
|
37
|
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
|
38
|
|
39
|
|
40
|
|
41
|
<xsl:output method="xml" omit-xml-declaration="no" encoding="ISO-8859-1" indent="yes"/>
|
42
|
|
43
|
|
44
|
|
45
|
<!-- The coordinates of the DHTML Layer on the HTML page -->
|
46
|
|
47
|
<xsl:param name="modelId"/>
|
48
|
|
49
|
<xsl:param name="targetModelId"/>
|
50
|
|
51
|
<xsl:param name="widgetId"/>
|
52
|
|
53
|
|
54
|
|
55
|
<!-- template rule matching source root element -->
|
56
|
|
57
|
<xsl:template match="/rdf:RDF">
|
58
|
|
59
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
60
|
|
61
|
<tbody><tr><td colspan="2"><img src="Calendar_files/spacer.gif" border="0" height="30" width="1"/></td></tr>
|
62
|
|
63
|
|
64
|
|
65
|
<tr>
|
66
|
|
67
|
<td colspan="2" class="calHeader">
|
68
|
|
69
|
All Events
|
70
|
|
71
|
<br/>
|
72
|
|
73
|
for GeoRSS feed: <xsl:value-of select="rss:channel/rss:title"/>
|
74
|
|
75
|
<br/>
|
76
|
|
77
|
</td>
|
78
|
|
79
|
</tr>
|
80
|
|
81
|
|
82
|
|
83
|
<xsl:apply-templates select="rss:item"/>
|
84
|
|
85
|
</tbody></table>
|
86
|
|
87
|
</xsl:template>
|
88
|
|
89
|
|
90
|
|
91
|
<xsl:template match="rss:item">
|
92
|
|
93
|
<xsl:variable name="fid"><xsl:value-of select="@id"/></xsl:variable>
|
94
|
|
95
|
<xsl:variable name="x"><xsl:value-of select="geo:long"/></xsl:variable>
|
96
|
|
97
|
<xsl:variable name="y"><xsl:value-of select="geo:lat"/></xsl:variable>
|
98
|
|
99
|
<xsl:variable name="link"><xsl:value-of select="rss:link"/></xsl:variable>
|
100
|
|
101
|
<xsl:variable name="time"><xsl:value-of select="dc:date"/></xsl:variable>
|
102
|
|
103
|
<tr>
|
104
|
|
105
|
<td class="caldate" nowrap="nowrap" valign="top" width="33%"> <img src="Calendar_files/yellow_bullet.gif" alt="" border="0"/> <a name="June13">June 13</a>    </td>
|
106
|
|
107
|
<td class="caleventtitle" valign="top" onmouseover="config.objects.{$modelId}.setParam('highlightFeature','{$fid}')" onmouseout="config.objects.{$modelId}.setParam('dehighlightFeature','{$fid}')">
|
108
|
|
109
|
<xsl:value-of select="rss:title"/>
|
110
|
|
111
|
</td>
|
112
|
|
113
|
</tr>
|
114
|
|
115
|
<tr>
|
116
|
|
117
|
<td> </td>
|
118
|
|
119
|
<td class="caltime" onmouseover="config.objects.{$modelId}.setParam('highlightFeature','{$fid}')" onmouseout="config.objects.{$modelId}.setParam('dehighlightFeature','{$fid}')">
|
120
|
|
121
|
<i>
|
122
|
|
123
|
Address - see marker on map
|
124
|
|
125
|
</i>
|
126
|
|
127
|
</td>
|
128
|
|
129
|
</tr>
|
130
|
|
131
|
<tr>
|
132
|
|
133
|
<td> </td>
|
134
|
|
135
|
<td class="caltime"><i><xsl:value-of select="$time"/></i></td>
|
136
|
|
137
|
</tr>
|
138
|
|
139
|
<tr>
|
140
|
|
141
|
<td> </td>
|
142
|
|
143
|
<td class="caldescription">
|
144
|
|
145
|
<p><xsl:value-of select="rss:description"/></p>
|
146
|
|
147
|
</td>
|
148
|
|
149
|
</tr>
|
150
|
|
151
|
<tr onmouseover="config.objects.{$modelId}.setParam('highlightFeature','{$fid}')" onmouseout="config.objects.{$modelId}.setParam('dehighlightFeature','{$fid}')">
|
152
|
|
153
|
<td> </td>
|
154
|
|
155
|
<td class="caldescription">
|
156
|
|
157
|
<p><a href="{$link}" class="caldescription">Learn more></a></p>
|
158
|
|
159
|
</td>
|
160
|
|
161
|
</tr>
|
162
|
|
163
|
|
164
|
|
165
|
</xsl:template>
|
166
|
|
167
|
|
168
|
|
169
|
</xsl:stylesheet>
|
170
|
|
171
|
|
172
|
|