1 # Metaproxy XML config file schemas
2 # $Id: metaproxy.rnc,v 1.21 2007-11-18 10:44:40 adam Exp $
4 # Copyright (c) 2005-2007, 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/
23 namespace mp = "http://indexdata.com/metaproxy"
27 include "retrievalinfo.rnc"
29 any = (text | element * { attribute * { text }*, any })*
32 element mp:metaproxy {
33 attribute version { "1.0" },
35 attribute route { xsd:NCName }
37 element mp:filters { filter+ }?,
38 element mp:routes { route+ }
43 attribute id { xsd:NCName },
59 | filter_query_rewrite
60 | filter_record_transform
61 | filter_session_shared
65 # | filter_zeerex_explain
68 filter_refid = attribute refid { xsd:NCName }
71 attribute type { "auth_simple" },
72 attribute id { xsd:NCName }?,
73 attribute name { xsd:NCName }?,
74 element mp:userRegister { xsd:string }?,
75 element mp:targetRegister { xsd:string }?,
76 element mp:discardUnauthorisedTargets { empty }?
79 attribute type { "backend_test" },
80 attribute id { xsd:NCName }?,
81 attribute name { xsd:NCName }?
84 attribute type { "bounce" },
85 attribute id { xsd:NCName }?,
86 attribute name { xsd:NCName }?
89 attribute type { "cql_rpn" },
90 attribute id { xsd:NCName }?,
91 attribute name { xsd:NCName }?,
92 element mp:conversion {
93 attribute file { xsd:string }
97 attribute type { "frontend_net" },
98 attribute id { xsd:NCName }?,
99 attribute name { xsd:NCName }?,
100 element mp:threads { xsd:integer }?,
101 element mp:port { xsd:string }+,
102 element mp:timeout { xsd:integer }?
105 attribute type { "http_file" },
106 attribute id { xsd:NCName }?,
107 attribute name { xsd:NCName }?,
108 element mp:mimetypes { xsd:string },
110 element mp:documentroot { xsd:string },
111 element mp:prefix { xsd:string }
114 filter_load_balance =
115 attribute type { "load_balance" },
116 attribute id { xsd:NCName }?,
117 attribute name { xsd:NCName }?
120 attribute type { "log" },
121 attribute id { xsd:NCName }?,
122 attribute name { xsd:NCName }?,
123 element mp:message { xsd:string }?,
124 element mp:filename { xsd:string }?,
125 element mp:category {
126 attribute user-access { xsd:boolean }?,
127 attribute access { xsd:boolean }?,
128 attribute init-options { xsd:boolean }?,
129 attribute request-session { xsd:boolean }?,
130 attribute response-session { xsd:boolean }?,
131 attribute apdu { xsd:boolean }?,
132 attribute request-apdu { xsd:boolean }?,
133 attribute response-apdu { xsd:boolean }?
137 attribute type { "multi" },
138 attribute id { xsd:NCName }?,
139 attribute name { xsd:NCName }?,
141 attribute route { xsd:string },
144 element mp:hideunavailable { empty }?,
145 element mp:mergetype { xsd:string }?
147 filter_query_rewrite =
148 attribute type { "query_rewrite" },
149 attribute id { xsd:NCName }?,
150 attribute name { xsd:NCName }?,
152 attribute stylesheet { xsd:string }
155 filter_record_transform =
156 attribute type { "record_transform" },
157 attribute id { xsd:NCName }?,
158 attribute name { xsd:NCName }?,
161 filter_session_shared =
162 attribute type { "session_shared" },
163 attribute id { xsd:NCName }?,
164 attribute name { xsd:NCName }?,
165 element mp:resultset {
166 attribute max { xsd:integer },
167 attribute ttl { xsd:integer }
170 attribute ttl { xsd:integer }
174 attribute type { "sru_z3950" },
175 attribute id { xsd:NCName }?,
176 attribute name { xsd:NCName }?,
177 element mp:database {
178 attribute name { xsd:NCName },
183 attribute type { "virt_db" },
184 attribute id { xsd:NCName }?,
185 attribute name { xsd:NCName }?,
187 attribute route { xsd:NCName }?,
188 element mp:database { xsd:NCName },
189 element mp:target { xsd:string }+
192 filter_z3950_client =
193 attribute type { "z3950_client" },
194 attribute id { xsd:NCName }?,
195 attribute name { xsd:NCName }?,
196 element mp:timeout { xsd:integer }?,
197 element mp:default_target { xsd:string }?,
198 element mp:force_target { xsd:string }?
200 #filter_zeerex_explain =
201 # attribute type { "zeerex_explain" },
202 # attribute id { xsd:NCName }?,
203 # attribute name { xsd:NCName }?,
204 # element mp:database {
205 # attribute name { xsd:NCName },