407061c2f37669e5c29066abde50a3a72450051a
[metaproxy-moved-to-github.git] / xml / schema / filter_log.rnc
1 # Metaproxy XML config file schemas
2
3 #   Copyright (C) 2005-2012 Index Data.
4
5 #   See the LICENSE file for details
6
7
8 # The RelaxNG Compact Syntax file 'metaproxy.rnc' is the master copy.
9
10 # The RelaxNG XML Syntax and XML Schema are generated using 'trang':
11 # trang metaproxy.rnc metaproxy.rng 
12 # trang metaproxy.rnc metaproxy.xsd 
13
14 # Config file validation is done using 'xmllint':
15 # xmllint -/-relaxng metaproxy.rng ../../../etc/config1.xml 
16 # xmllint -/-schema metaproxy.xsd config-bytarget.xml
17
18 # For information on RelaxNG see http://relaxng.org 
19 # see also http://books.xmlschemata.org/relaxng/
20
21 namespace mp = "http://indexdata.com/metaproxy"
22
23 filter_log =
24   attribute type { "log" },
25   attribute id { xsd:NCName }?,
26   attribute name { xsd:NCName }?,
27   element mp:message { xsd:string }?,
28   element mp:time-format { xsd:string }?,
29   element mp:filename { xsd:string }?,
30   element mp:category {
31     attribute user-access { xsd:boolean }?,
32     attribute access { xsd:boolean }?,
33     attribute init-options { xsd:boolean }?,
34     attribute request-session { xsd:boolean }?,
35     attribute response-session { xsd:boolean }?,
36     attribute session { xsd:boolean }?,
37     attribute apdu { xsd:boolean }?,
38     attribute request-apdu { xsd:boolean }?,
39     attribute response-apdu { xsd:boolean }?
40   }?
41