1 |
4307
|
leinfelder
|
<?xml version="1.0" encoding="UTF-8"?>
|
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: GeoRSSListing.xsl 3017 2007-07-26 23:01:32Z ahocevar $
|
9 |
|
|
$Name: $
|
10 |
|
|
-->
|
11 |
|
|
|
12 |
|
|
<xsl:stylesheet version="1.0"
|
13 |
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
14 |
|
|
xmlns:wfs="http://www.opengis.net/wfs"
|
15 |
|
|
xmlns:gml="http://www.opengis.net/gml"
|
16 |
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
17 |
|
|
xmlns:mb="http://mapbuilder.sourceforge.net/mapbuilder">
|
18 |
|
|
|
19 |
|
|
<xsl:output method="xml" omit-xml-declaration="yes" encoding="utf-8" indent="yes"/>
|
20 |
|
|
|
21 |
|
|
<!-- The coordinates of the DHTML Layer on the HTML page -->
|
22 |
|
|
<xsl:param name="modelId"/>
|
23 |
|
|
<xsl:param name="targetModelId"/>
|
24 |
|
|
<xsl:param name="widgetId"/>
|
25 |
|
|
<xsl:param name="hiddenItems"/>
|
26 |
|
|
|
27 |
|
|
<!-- template rule matching source root element -->
|
28 |
|
|
<xsl:template match="/">
|
29 |
|
|
<table>
|
30 |
|
|
<tr><th colspan="2">Community Mapbuilder Community</th></tr>
|
31 |
|
|
<xsl:apply-templates select="//mb:geoRssFeature"/>
|
32 |
|
|
</table>
|
33 |
|
|
</xsl:template>
|
34 |
|
|
|
35 |
|
|
<xsl:template match="//mb:geoRssFeature">
|
36 |
|
|
<xsl:variable name="fid"><xsl:value-of select="@fid"/></xsl:variable>
|
37 |
|
|
<xsl:variable name="link"><xsl:value-of select="mb:photopage"/></xsl:variable>
|
38 |
|
|
<xsl:variable name="icon"><xsl:value-of select="mb:url"/></xsl:variable>
|
39 |
|
|
<tr>
|
40 |
|
|
<td>
|
41 |
|
|
<input type="checkbox" checked="checked" onclick="this.checked?config.objects.{$modelId}.setParam('showFeature','{$fid}'):config.objects.{$modelId}.setParam('hideFeature','{$fid}')" />
|
42 |
|
|
</td>
|
43 |
|
|
<td onmouseover="config.objects.{$modelId}.setParam('highlightFeature','{$fid}')" onmouseout="config.objects.{$modelId}.setParam('dehighlightFeature','{$fid}')">
|
44 |
|
|
<table><tr>
|
45 |
|
|
<td valign="top"><img src="{$icon}" /></td>
|
46 |
|
|
<td valign="top"><a href="{$link}" target="_blank"><xsl:value-of select="mb:title"/></a><br/>
|
47 |
|
|
<xsl:value-of select="mb:description"/></td>
|
48 |
|
|
</tr></table>
|
49 |
|
|
</td>
|
50 |
|
|
</tr>
|
51 |
|
|
</xsl:template>
|
52 |
|
|
|
53 |
|
|
</xsl:stylesheet>
|