1 |
3032
|
perry
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2 |
|
|
|
3 |
|
|
<!--
|
4 |
|
|
Description: parses an OGC context document to generate an array of DHTML layers.
|
5 |
|
|
Author: adair
|
6 |
|
|
Licence: LGPL as specified in http://www.gnu.org/copyleft/lesser.html .
|
7 |
|
|
|
8 |
|
|
$Id$
|
9 |
|
|
$Name$
|
10 |
|
|
-->
|
11 |
|
|
|
12 |
|
|
<xsl:stylesheet version="1.0"
|
13 |
|
|
xmlns:wps="http://www.opengis.net/wps"
|
14 |
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
15 |
|
|
xmlns:ogc="http://www.opengis.net/ogc"
|
16 |
|
|
xmlns:ows="http://www.opengis.net/ows"
|
17 |
|
|
xmlns:gml="http://www.opengis.net/gml"
|
18 |
|
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
19 |
|
|
|
20 |
|
|
<xsl:output method="xml" omit-xml-declaration="no" encoding="utf-8" indent="yes"/>
|
21 |
|
|
|
22 |
|
|
<!-- The coordinates of the DHTML Layer on the HTML page -->
|
23 |
|
|
<xsl:param name="modelId"/>
|
24 |
|
|
<xsl:param name="modelUrl"/>
|
25 |
|
|
<xsl:param name="widgetId"/>
|
26 |
|
|
|
27 |
|
|
<!-- template rule matching source root element -->
|
28 |
|
|
<xsl:template match="/wps:Capabilities">
|
29 |
|
|
<div>
|
30 |
|
|
<p class="section">
|
31 |
|
|
<xsl:value-of select="ows:ServiceIdentification/ows:Title"/>
|
32 |
|
|
</p>
|
33 |
|
|
<p style="text-align:right;font:70%;margin:0"><a href="{$modelUrl}" target="modelXML">capabilities document</a></p>
|
34 |
|
|
<p>
|
35 |
|
|
Abstract: <xsl:value-of select="ows:ServiceIdentification/ows:Abstract"/>
|
36 |
|
|
<br/>
|
37 |
|
|
provided by:
|
38 |
|
|
<a>
|
39 |
|
|
<xsl:attribute name="href">
|
40 |
|
|
<xsl:value-of select="ows:ServiceProvider/ows:ServiceContact/ows:ContactInfo/ows:OnlineResource/@xlink:href"/>
|
41 |
|
|
</xsl:attribute>
|
42 |
|
|
<xsl:value-of select="ows:ServiceProvider/ows:ProviderName"/>
|
43 |
|
|
</a>
|
44 |
|
|
</p>
|
45 |
|
|
<dl>
|
46 |
|
|
<xsl:apply-templates select="wps:ProcessOfferings/wps:Process"/>
|
47 |
|
|
</dl>
|
48 |
|
|
</div>
|
49 |
|
|
</xsl:template>
|
50 |
|
|
|
51 |
|
|
<!-- template rule matching source root element -->
|
52 |
|
|
<xsl:template match="wps:Process">
|
53 |
|
|
<xsl:variable name="name"><xsl:value-of select="wps:Name"/></xsl:variable>
|
54 |
|
|
<dt>
|
55 |
|
|
<a href="javascript:config.objects.{$modelId}.setParam('wps_DescribeProcess','{$name}')">
|
56 |
|
|
<xsl:value-of select="$name"/>
|
57 |
|
|
</a>
|
58 |
|
|
</dt>
|
59 |
|
|
<dd>
|
60 |
|
|
<xsl:value-of select="wps:Description"/>
|
61 |
|
|
</dd>
|
62 |
|
|
</xsl:template>
|
63 |
|
|
|
64 |
|
|
<xsl:template match="text()|@*"/>
|
65 |
|
|
|
66 |
|
|
</xsl:stylesheet>
|