1 # Metaproxy XML config file schemas
2 # $Id: metaproxy.rnc,v 1.4 2006-10-06 22:51:40 marc Exp $
4 # Copyright (c) 2005-2006, Index Data.
6 # See the LICENSE file for details
9 # The RelaxNG Compact Syntax file 'metaproxy.rnc' is the master copy.
11 # The RelaxNG XML Syntax and XML Schema are generated using 'trang':
12 # trang metaproxy.rnc metaproxy.rng
13 # trang metaproxy.rnc metaproxy.xsd
15 # Config file validation is done using 'xmllint':
16 # xmllint -/-relaxng metaproxy.rng ../../../etc/config1.xml
17 # xmllint -/-schema metaproxy.xsd config-bytarget.xml
19 # For information on RelaxNG see http://relaxng.org
20 # see also http://books.xmlschemata.org/relaxng/
22 default namespace = "http://indexdata.dk/yp2/config/1"
29 attribute route { xsd:NCName }
31 element filters { filter+ }?,
32 element routes { route+ }
37 attribute id { xsd:NCName },
51 | filter_query_rewrite
56 filter_refid = attribute refid { xsd:NCName }
59 attribute type { "auth_simple" },
60 attribute id { xsd:NCName }?,
61 attribute name { xsd:NCName }?,
62 element userRegister { xsd:string }?,
63 element targetRegister { xsd:string }?,
64 element discardUnauthorisedTargets { empty }?
67 attribute type { "backend_test" },
68 attribute id { xsd:NCName }?,
69 attribute name { xsd:NCName }?
72 attribute type { "bounce" },
73 attribute id { xsd:NCName }?,
74 attribute name { xsd:NCName }?
77 attribute type { "frontend_net" },
78 attribute id { xsd:NCName }?,
79 attribute name { xsd:NCName }?,
80 element threads { xsd:integer }?,
81 element port { xsd:string }
84 attribute type { "http_file" },
85 attribute id { xsd:NCName }?,
86 attribute name { xsd:NCName }?,
87 element mimetypes { xsd:string },
89 element documentroot { xsd:string },
90 element prefix { xsd:string }
94 attribute type { "log" },
95 attribute id { xsd:NCName }?,
96 attribute name { xsd:NCName }?,
97 element message { xsd:NCName },
98 element filename { xsd:string }?,
100 attribute request-session { xsd:boolean }?,
101 attribute response-session { xsd:boolean }?,
102 attribute request-apdu { xsd:boolean }?,
103 attribute response-apdu { xsd:boolean }?
107 attribute type { "multi" },
108 attribute id { xsd:NCName }?,
109 attribute name { xsd:NCName }?,
111 attribute route { xsd:string },
114 element hideunavailable { empty }?
116 filter_query_rewrite =
117 attribute type { "query_rewrite" },
118 attribute id { xsd:NCName }?,
119 attribute name { xsd:NCName }?,
120 element xslt { xsd:string }
123 attribute type { "virt_db" },
124 attribute id { xsd:NCName }?,
125 attribute name { xsd:NCName }?,
127 attribute route { xsd:NCName }?,
128 element database { xsd:NCName },
129 element target { xsd:string }+
132 filter_z3950_client =
133 attribute type { "z3950_client" },
134 attribute id { xsd:NCName }?,
135 attribute name { xsd:NCName }?,
136 element timeout { xsd:integer }