1
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2
|
|
3
|
<!--
|
4
|
Description: presents the list of events in a GeoRSS
|
5
|
Author: adair
|
6
|
Licence: LGPL as specified in http://www.gnu.org/copyleft/lesser.html .
|
7
|
|
8
|
$Id$
|
9
|
$Name$
|
10
|
-->
|
11
|
|
12
|
<xsl:stylesheet version="1.0"
|
13
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
14
|
xmlns:atom="http://www.w3.org/2005/Atom"
|
15
|
xmlns:georss="http://georss.org/rss"
|
16
|
xmlns:gml="http://www.opengis.net/gml/3.1.1"
|
17
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
18
|
xmlns:rss="http://purl.org/rss/1.0/"
|
19
|
xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
|
20
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
21
|
xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
|
22
|
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
|
23
|
|
24
|
<xsl:output method="xml" omit-xml-declaration="no" encoding="ISO-8859-1" indent="yes"/>
|
25
|
|
26
|
<!-- The coordinates of the DHTML Layer on the HTML page -->
|
27
|
<xsl:param name="modelId"/>
|
28
|
<xsl:param name="targetModelId"/>
|
29
|
<xsl:param name="widgetId"/>
|
30
|
|
31
|
<!-- template rule matching source root element -->
|
32
|
<xsl:template match="/atom:feed">
|
33
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
34
|
<tbody><tr><td colspan="2"><img src="spacer.gif" border="0" height="30" width="1"/></td></tr>
|
35
|
|
36
|
<tr>
|
37
|
<td colspan="2" class="calHeader">
|
38
|
<xsl:value-of select="/atom:feed/atom:title"/>:
|
39
|
<br/>
|
40
|
<br/>
|
41
|
</td>
|
42
|
</tr>
|
43
|
|
44
|
<xsl:apply-templates select="atom:entry"/>
|
45
|
</tbody></table>
|
46
|
</xsl:template>
|
47
|
|
48
|
<xsl:template match="atom:entry">
|
49
|
<xsl:variable name="fid"><xsl:value-of select="@id"/></xsl:variable>
|
50
|
<xsl:variable name="coords"><xsl:value-of select="georss:where/gml:Point/gml:pos"/></xsl:variable>
|
51
|
<xsl:variable name="link"><xsl:value-of select="atom:link/@href"/></xsl:variable>
|
52
|
<xsl:variable name="time"><xsl:value-of select="atom:updated"/></xsl:variable>
|
53
|
<xsl:variable name="source"><xsl:value-of select="atom:source"/></xsl:variable>
|
54
|
<tr>
|
55
|
<td class="caldate" nowrap="nowrap" valign="top" width="33%"> <img src="../../lib/skin/blue/images/yellow_bullet.gif" alt="" border="0"/> <a name="June13"><xsl:value-of select="$time"/></a>    </td>
|
56
|
<td class="caleventtitle" valign="top" onmouseover="config.objects.{$modelId}.setParam('highlightFeature','{$fid}')" onmouseout="config.objects.{$modelId}.setParam('dehighlightFeature','{$fid}')">
|
57
|
<xsl:value-of select="atom:title"/>
|
58
|
</td>
|
59
|
</tr>
|
60
|
<tr>
|
61
|
<td> </td>
|
62
|
<td class="caltime" onmouseover="config.objects.{$modelId}.setParam('highlightFeature','{$fid}')" onmouseout="config.objects.{$modelId}.setParam('dehighlightFeature','{$fid}')">
|
63
|
<i>
|
64
|
Address - see marker on map
|
65
|
</i>
|
66
|
</td>
|
67
|
</tr>
|
68
|
<tr>
|
69
|
<td> </td>
|
70
|
</tr>
|
71
|
<tr>
|
72
|
<td> </td>
|
73
|
<td class="caldescription">
|
74
|
<p><xsl:value-of select="atom:content"/></p>
|
75
|
</td>
|
76
|
</tr>
|
77
|
<tr onmouseover="config.objects.{$modelId}.setParam('highlightFeature','{$fid}')" onmouseout="config.objects.{$modelId}.setParam('dehighlightFeature','{$fid}')">
|
78
|
<td> </td>
|
79
|
<td class="caldescription">
|
80
|
<p><a href="{$link}" class="caldescription">Learn more></a></p><br/>
|
81
|
</td>
|
82
|
</tr>
|
83
|
|
84
|
</xsl:template>
|
85
|
|
86
|
</xsl:stylesheet>
|
87
|
|