Project

General

Profile

1
<?xml version="1.0"?>
2
<xsl:stylesheet xmlns:wfs="http://www.opengis.net/wfs" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0"><xsl:output method="xml" omit-xml-declaration="yes" encoding="utf-8" indent="yes"/><xsl:param name="modelId"/><xsl:param name="widgetId"/><xsl:param name="toolId"/><xsl:template match="/wfs:WFS_Capabilities"><table><tr><th colspan="3">
3
          Feature types from: <xsl:value-of select="wfs:Service/wfs:Title"/></th></tr><xsl:apply-templates select="wfs:FeatureTypeList/wfs:FeatureType"/></table></xsl:template><xsl:template match="wfs:FeatureType"><xsl:variable name="name"><xsl:value-of select="wfs:Name"/></xsl:variable><xsl:variable name="title"><xsl:value-of select="wfs:Title"/></xsl:variable><xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable><tr><td><xsl:value-of select="$title"/> (<xsl:value-of select="$name"/>) <xsl:value-of select="wfs:SRS"/></td><td><a href="javascript:config.objects.{$modelId}.setParam('wfs_GetFeature','{$name}')">load</a></td><td><a href="javascript:config.objects.{$modelId}.setParam('wfs_DescribeFeatureType','{$name}')">filter</a></td><td><a href="javascript:alert('not yet implemented')">style</a></td></tr></xsl:template><xsl:template match="text()|@*"/></xsl:stylesheet>
(106-106/145)