source: cows/trunk/cows/pylons/templates/wfs_valuecollection.xml @ 4481

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/pylons/templates/wfs_valuecollection.xml@4481
Revision 4481, 744 bytes checked in by domlowe, 12 years ago (diff)

Fixes to enable Point and GridSeries? subsetting in WFS.

Line 
1<?xml version="1.0"?>
2
3<?python
4from genshi import XML
5       
6def wrapXML(content):
7        #if the string content looks like it contains XML element nodes, then wrap it using the genshi XML function
8        #else just return the string
9        if content[:1]=='<':
10            return XML(content)
11        else:
12            return content
13
14       
15?>
16
17<!--! TODO: BoundingBox needed. This should be calculated at the same time as the resultset-->
18
19<wfs:ValueCollection xmlns:py="http://genshi.edgewall.org/"
20                  xmlns:wfs="http://www.opengis.net/wfs"
21                  xmlns:gml="http://www.opengis.net/gml"
22                  xmlns:csml="http://ndg.nerc.ac.uk/csml"
23                  numberReturned="${len(c.resultset)}"> 
24        <wfs:member py:for="feature in c.resultset"
25             py:content="wrapXML(feature)"/>
26</wfs:ValueCollection>
27                 
28                 
Note: See TracBrowser for help on using the repository browser.