Project

General

Profile

1 3032 perry
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2
           xmlns:wfs="http://www.opengis.net/wfs"
3
           xmlns:gml="http://www.opengis.net/gml"
4
           xmlns:metacat="http://knb.ecoinformatics.org/metacat"
5
           version="1.0">
6
7
<xsl:template match="/">
8
    <ul>
9
        <xsl:apply-templates select="wfs:FeatureCollection/gml:featureMember" />
10
    </ul>
11
</xsl:template>
12
13
14
<xsl:template match="metacat:data_points">
15
     <xsl:variable name="url" select="./metacat:url"/>
16
     <li>
17
      <a href='{$url}'>
18
         <xsl:value-of select="./metacat:title" />
19
         ( <xsl:value-of select="./metacat:docid" /> )
20
      </a>
21
     </li>
22
</xsl:template>
23
24
<xsl:template match="metacat:data_bounds">
25
     <xsl:variable name="url" select="./metacat:url"/>
26
     <li>
27
      <a href='{$url}'>
28
         <xsl:value-of select="./metacat:title" />
29
         ( <xsl:value-of select="./metacat:docid" /> )
30
      </a>
31
     </li>
32
</xsl:template>
33
34
<xsl:template match="metacat:metacat_testdata">
35
     <xsl:variable name="url" select="./metacat:url"/>
36
     <li>
37
      <a href='{$url}'>
38
         <xsl:value-of select="./metacat:docid" />
39
      </a>
40
     </li>
41
</xsl:template>
42
43
</xsl:stylesheet>