source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/csml_describe.kid @ 2529

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/csml_describe.kid@2529
Revision 2529, 680 bytes checked in by spascoe, 13 years ago (diff)

CSML_API service shows an example of a browsable dataset with subsetting.
The WMS will create a capabilities document with valid <Contents> taken from
the CSML doc.

Line 
1<?xml version="1.0"?>
2<html xmlns:py="http://purl.org/kid/ns#">
3  <head>
4    <title>CSML dataset ${c.file}</title>
5  </head>
6  <body>
7    <h1>CSML dataset ${c.file}</h1>
8    <p>
9      [ <a href="${h.url_for(file=c.file, format='xml')}">XML</a> ]
10    </p>
11    <h2>Features</h2>
12    <ul>
13      <li py:for="f_name in c.dataset.getFeatureList()">
14        <?python f = c.dataset.getFeature(f_name) ?>
15        <b py:content="f.name.CONTENT"/>: ${f.description.CONTENT}
16        [
17          <a href="${h.url_for(action='getFeature',
18                               feature=f.id)}">HTML</a> |
19          <a href="${h.url_for(action='getFeature',
20                               feature=f.id,
21                               format='xml')}">XML</a>
22        ]
23      </li>
24    </ul>
25  </body>
26</html>
Note: See TracBrowser for help on using the repository browser.