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: popup.xsl 3926 2008-03-20 14:13:35Z steven $
|
9 |
|
|
$Name: $
|
10 |
|
|
-->
|
11 |
|
|
|
12 |
|
|
<xsl:stylesheet version="1.0"
|
13 |
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
14 |
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
15 |
|
|
xmlns:rss="http://purl.org/rss/1.0/"
|
16 |
|
|
xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
|
17 |
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
18 |
|
|
xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
|
19 |
|
|
xmlns:georss="http://www.georss.org/georss"
|
20 |
|
|
xmlns:gml='http://www.opengis.net/gml/3.1.1' >
|
21 |
|
|
|
22 |
|
|
<!-- xsl:output method="html" omit-xml-declaration="yes" encoding="utf-8" indent="yes"/ -->
|
23 |
|
|
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
|
24 |
|
|
<xsl:param name="fid"/>
|
25 |
|
|
|
26 |
|
|
<xsl:template match="rdf:RDF">
|
27 |
|
|
<div class="PopupContainer">
|
28 |
|
|
<div class="PopupHeader">Info</div>
|
29 |
|
|
<div class="PopupContent">
|
30 |
|
|
<xsl:apply-templates/>
|
31 |
|
|
</div>
|
32 |
|
|
</div>
|
33 |
|
|
</xsl:template>
|
34 |
|
|
|
35 |
|
|
<xsl:template match="rss:item">
|
36 |
|
|
<xsl:if test="@id=$fid">
|
37 |
|
|
<table cellspacing="0" border="0">
|
38 |
|
|
<tr><td><b>title:</b><xsl:value-of select="rss:title"/></td></tr>
|
39 |
|
|
<tr><td><b>description:</b><xsl:copy-of select="rss:description"/></td></tr>
|
40 |
|
|
<tr><td><b>date:</b><xsl:value-of select="dc:date"/></td></tr>
|
41 |
|
|
<tr><td><b>pos:</b><xsl:value-of select="georss:where/gml:Point/gml:pos"/></td></tr>
|
42 |
|
|
<tr><td><b>link:</b><xsl:element name="a">
|
43 |
|
|
<xsl:attribute name="target">_blank</xsl:attribute>
|
44 |
|
|
<xsl:attribute name="href"><xsl:value-of select="rss:link"/></xsl:attribute>click here for more information!
|
45 |
|
|
</xsl:element></td></tr>
|
46 |
|
|
</table>
|
47 |
|
|
</xsl:if>
|
48 |
|
|
</xsl:template>
|
49 |
|
|
|
50 |
|
|
</xsl:stylesheet>
|