source: cows/trunk/cows/pylons/templates/wfs_liststoredqueries.xml @ 4417

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

Implemented first cut of GetPropertyValue? method for wfs

Line 
1<?xml version="1.0"?>
2
3<?python
4from genshi import XML
5from cows.pylons.genshi_util import RenameElementFilter
6
7def markupMember(elem):
8    """Render an OWS operation description for the Capabilities section.
9    """
10
11    return RenameElementFilter(QName(opName))(_opContent(op))
12?>
13
14<!--! TODO, featuretype specific xml namespace declaration -e.g. csml: must be done on the fly. Must be present to qualify Qnames in returnFeatureType-->
15<ListStoredQueriesResponse xmlns="http://www.opengis.net/wfs/2.0" xmlns:py="http://genshi.edgewall.org/" xmlns:csml="http://ndg.nerc.ac.uk/csml">
16        <py:for each="queryid in c.storedqueries">
17                <?python
18                querydesc=c.storedqueries[queryid][0]
19                ?>
20          <StoredQuery id="${queryid}">
21                          <Title py:content="querydesc.title"/>
22                          <ReturnFeatureType py:content="querydesc.queryExpressionText.returnFeatureType"/> 
23                  </StoredQuery>
24    </py:for> 
25</ListStoredQueriesResponse>
Note: See TracBrowser for help on using the repository browser.