Project

General

Profile

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="utf-8" 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>
60

    
61
      <tr>
62

    
63
        <th>
64

    
65
          GeoRSS feed: <xsl:value-of select="rss:channel/rss:title"/>
66

    
67
        </th>
68

    
69
      </tr>
70

    
71
      <xsl:apply-templates select="rss:item"/>
72

    
73
    </table>
74

    
75
  </xsl:template>
76

    
77

    
78

    
79
  <xsl:template match="rss:item">
80

    
81
    <xsl:variable name="fid"><xsl:value-of select="@id"/></xsl:variable>
82

    
83
    <xsl:variable name="x"><xsl:value-of select="geo:long"/></xsl:variable>
84

    
85
    <xsl:variable name="y"><xsl:value-of select="geo:lat"/></xsl:variable>
86

    
87
    <xsl:variable name="link"><xsl:value-of select="rss:link"/></xsl:variable>
88

    
89
    <tr onmouseover="config.objects.{$modelId}.setParam('highlightFeature','{$fid}')" onmouseout="config.objects.{$modelId}.setParam('dehighlightFeature','{$fid}')">
90

    
91
      <td>
92

    
93
        <a href="{$link}"><xsl:value-of select="rss:title"/></a>
94

    
95
        - <xsl:value-of select="rss:description"/>
96

    
97
      </td>
98

    
99
    </tr>
100

    
101
  </xsl:template>
102

    
103

    
104

    
105
</xsl:stylesheet>
106

    
(3-3/15)