Project

General

Profile

1
<?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 3907 2008-03-06 10:27:06Z steven $
9
$Name:  $
10
-->
11

    
12
<xsl:stylesheet version="1.0" 
13
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
14
  xmlns:gml="http://www.opengis.net/gml"
15
  xmlns:wfs="http://www.opengis.net/wfs"
16
  xmlns:dc="http://purl.org/dc/elements/1.1/" 
17
  xmlns:mb="http://mapbuilder.sourceforge.net/mapbuilder" >
18
  
19
  <!-- xsl:output method="html" omit-xml-declaration="yes" encoding="utf-8" indent="yes"/ -->
20
  <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
21
  <xsl:param name="fid"/>
22
  
23
  <xsl:template match="/">
24
    <div class="PopupContainer">
25
      <div class="PopupHeader">Info</div>
26
      <div class="PopupContent">
27
        <xsl:apply-templates/>
28
      </div>
29
    </div>
30
  </xsl:template>
31
  
32
  <xsl:template match="wfs:FeatureCollection/gml:featureMember/*">
33
    <xsl:if test="@fid=$fid">
34
      <table cellspacing="0" border="0">
35
    	<tr><td><b>title:</b> <xsl:value-of select="mb:title"/></td></tr>
36
    	<tr><td><b>description:</b> <xsl:copy-of select="mb:description"/></td></tr>
37
    	<tr><td><b>date:</b> <xsl:value-of select="dc:date"/></td></tr>
38
      <tr><td><b>pos:</b> <xsl:value-of select="mb:geom/gml:Point/gml:coordinates"/></td></tr>
39
      <tr><td align="center"><xsl:element name="img">
40
        <xsl:attribute name="src"><xsl:value-of select="mb:url"/></xsl:attribute>
41
      </xsl:element></td></tr>
42
      </table>
43
    </xsl:if>
44
  </xsl:template>
45

    
46
</xsl:stylesheet>
(10-10/13)