517fec9fed84b8fb59f6af321eeb8e0dd3ade152
[metaproxy-moved-to-github.git] / xml / schema / filter_limit.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_limit">
25     <attribute name="type">
26       <value>limit</value>
27     </attribute>
28     <optional>
29       <element name="mp:limit">
30         <optional>
31           <attribute name="bandwidth">
32             <data type="integer"/>
33           </attribute>
34         </optional>
35         <optional>
36           <attribute name="pdu">
37             <data type="integer"/>
38           </attribute>
39         </optional>
40         <optional>
41           <attribute name="search">
42             <data type="integer"/>
43           </attribute>
44         </optional>
45         <optional>
46           <attribute name="retrieve">
47             <data type="integer"/>
48           </attribute>
49         </optional>
50       </element>
51     </optional>
52   </define>
53 </grammar>