zoom: create temp for contentProxy
[metaproxy-moved-to-github.git] / xml / schema / filter_log.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_log">
25     <attribute name="type">
26       <value>log</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     <optional>
39       <element name="mp:message">
40         <data type="string"/>
41       </element>
42     </optional>
43     <optional>
44       <element name="mp:time-format">
45         <data type="string"/>
46       </element>
47     </optional>
48     <optional>
49       <element name="mp:filename">
50         <data type="string"/>
51       </element>
52     </optional>
53     <optional>
54       <element name="mp:category">
55         <optional>
56           <attribute name="user-access">
57             <data type="boolean"/>
58           </attribute>
59         </optional>
60         <optional>
61           <attribute name="access">
62             <data type="boolean"/>
63           </attribute>
64         </optional>
65         <optional>
66           <attribute name="init-options">
67             <data type="boolean"/>
68           </attribute>
69         </optional>
70         <optional>
71           <attribute name="request-session">
72             <data type="boolean"/>
73           </attribute>
74         </optional>
75         <optional>
76           <attribute name="response-session">
77             <data type="boolean"/>
78           </attribute>
79         </optional>
80         <optional>
81           <attribute name="session">
82             <data type="boolean"/>
83           </attribute>
84         </optional>
85         <optional>
86           <attribute name="apdu">
87             <data type="boolean"/>
88           </attribute>
89         </optional>
90         <optional>
91           <attribute name="request-apdu">
92             <data type="boolean"/>
93           </attribute>
94         </optional>
95         <optional>
96           <attribute name="response-apdu">
97             <data type="boolean"/>
98           </attribute>
99         </optional>
100       </element>
101     </optional>
102   </define>
103 </grammar>