Split config schemas to separate files
[metaproxy-moved-to-github.git] / xml / schema / filter_cql_rpn.rng
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Metaproxy XML config file schemas
4   
5     Copyright (C) 2005-2011 Index Data.
6   
7     See the LICENSE file for details
8   
9   
10   The RelaxNG Compact Syntax file 'metaproxy.rnc' is the master copy.
11   
12   The RelaxNG XML Syntax and XML Schema are generated using 'trang':
13   trang metaproxy.rnc metaproxy.rng 
14   trang metaproxy.rnc metaproxy.xsd 
15   
16   Config file validation is done using 'xmllint':
17   xmllint -/-relaxng metaproxy.rng ../../../etc/config1.xml 
18   xmllint -/-schema metaproxy.xsd config-bytarget.xml
19   
20   For information on RelaxNG see http://relaxng.org 
21   see also http://books.xmlschemata.org/relaxng/
22 -->
23 <grammar xmlns:mp="http://indexdata.com/metaproxy" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
24   <define name="filter_cql_rpn">
25     <attribute name="type">
26       <value>cql_rpn</value>
27     </attribute>
28     <optional>
29       <attribute name="id">
30         <data type="NCName"/>
31       </attribute>
32     </optional>
33     <optional>
34       <attribute name="name">
35         <data type="NCName"/>
36       </attribute>
37     </optional>
38     <element name="mp:conversion">
39       <attribute name="file">
40         <data type="string"/>
41       </attribute>
42     </element>
43   </define>
44 </grammar>