1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
|
3
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:pmb="http://nsuri.notld/poweredByMapbuilder" version="1.0">
|
4
|
|
5
|
<!--
|
6
|
$Id: FeatureList.xsl 3907 2008-03-06 10:27:06Z steven $
|
7
|
-->
|
8
|
|
9
|
<xsl:output method="xml" encoding="utf-8" omit-xml-declaration="yes"/>
|
10
|
|
11
|
<!-- Common params for all widgets -->
|
12
|
<!--xsl:param name="targetModelId"/-->
|
13
|
<xsl:param name="modelId"/>
|
14
|
<xsl:param name="widgetId"/>
|
15
|
<xsl:param name="this">config.objects.<xsl:value-of select="$widgetId"/></xsl:param>
|
16
|
|
17
|
<!-- Main html -->
|
18
|
<xsl:template match="/">
|
19
|
<div>
|
20
|
<h3><xsl:value-of select="*/gml:name"/></h3>
|
21
|
<xsl:apply-templates/>
|
22
|
</div>
|
23
|
</xsl:template>
|
24
|
|
25
|
<xsl:template name="featureMember" match="gml:featureMember">
|
26
|
<xsl:param name="fid" select="*/@fid"/>
|
27
|
<div id="{$widgetId}_{$fid}" class="listitem" onmouseover="{$this}.highlight(this, '{$fid}')" onmouseout="{$this}.dehighlight(this, '{$fid}')">
|
28
|
<xsl:value-of select="*/pmb:date"/><br/>
|
29
|
<b><xsl:value-of select="*/pmb:name"/></b>
|
30
|
</div>
|
31
|
</xsl:template>
|
32
|
|
33
|
<!-- Remove documentation, text, comments -->
|
34
|
<xsl:template match="comment()|text()|processing-instruction()">
|
35
|
</xsl:template>
|
36
|
</xsl:stylesheet>
|