1 # Metaproxy XML config file schemas
2 # $Id: metaproxy.rnc,v 1.12 2006-12-28 14:59:44 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/
23 namespace mp = "http://indexdata.com/metaproxy"
27 include "retrievalinfo.rnc"
30 element mp:metaproxy {
31 attribute version { "1.0" },
33 attribute route { xsd:NCName }
35 element mp:filters { filter+ }?,
36 element mp:routes { route+ }
41 attribute id { xsd:NCName },
55 | filter_query_rewrite
56 | filter_record_transform
57 | filter_session_shared
61 | filter_zeerex_explain
64 filter_refid = attribute refid { xsd:NCName }
67 attribute type { "auth_simple" },
68 attribute id { xsd:NCName }?,
69 attribute name { xsd:NCName }?,
70 element mp:userRegister { xsd:string }?,
71 element mp:targetRegister { xsd:string }?,
72 element mp:discardUnauthorisedTargets { empty }?
75 attribute type { "backend_test" },
76 attribute id { xsd:NCName }?,
77 attribute name { xsd:NCName }?
80 attribute type { "bounce" },
81 attribute id { xsd:NCName }?,
82 attribute name { xsd:NCName }?
85 attribute type { "frontend_net" },
86 attribute id { xsd:NCName }?,
87 attribute name { xsd:NCName }?,
88 element mp:threads { xsd:integer }?,
89 element mp:port { xsd:string },
90 element mp:timeout { xsd:integer }?
93 attribute type { "http_file" },
94 attribute id { xsd:NCName }?,
95 attribute name { xsd:NCName }?,
96 element mp:mimetypes { xsd:string },
98 element mp:documentroot { xsd:string },
99 element mp:prefix { xsd:string }
103 attribute type { "log" },
104 attribute id { xsd:NCName }?,
105 attribute name { xsd:NCName }?,
106 element mp:message { xsd:string }?,
107 element mp:filename { xsd:string }?,
108 element mp:category {
109 attribute init-options { xsd:boolean }?,
110 attribute request-session { xsd:boolean }?,
111 attribute response-session { xsd:boolean }?,
112 attribute apdu { xsd:boolean }?,
113 attribute request-apdu { xsd:boolean }?,
114 attribute response-apdu { xsd:boolean }?
118 attribute type { "multi" },
119 attribute id { xsd:NCName }?,
120 attribute name { xsd:NCName }?,
122 attribute route { xsd:string },
125 element mp:hideunavailable { empty }?
127 filter_query_rewrite =
128 attribute type { "query_rewrite" },
129 attribute id { xsd:NCName }?,
130 attribute name { xsd:NCName }?,
132 attribute stylesheet { xsd:string }
135 filter_record_transform =
136 attribute type { "record_transform" },
137 attribute id { xsd:NCName }?,
138 attribute name { xsd:NCName }?,
141 filter_session_shared =
142 attribute type { "session_shared" },
143 attribute id { xsd:NCName }?,
144 attribute name { xsd:NCName }?,
145 element mp:resultset {
146 attribute max { xsd:integer },
147 attribute ttl { xsd:integer }
150 attribute ttl { xsd:integer }
154 attribute type { "sru_z3950" },
155 attribute id { xsd:NCName }?,
156 attribute name { xsd:NCName }?
159 attribute type { "virt_db" },
160 attribute id { xsd:NCName }?,
161 attribute name { xsd:NCName }?,
163 attribute route { xsd:NCName }?,
164 element mp:database { xsd:NCName },
165 element mp:target { xsd:string }+
168 filter_z3950_client =
169 attribute type { "z3950_client" },
170 attribute id { xsd:NCName }?,
171 attribute name { xsd:NCName }?,
172 element mp:timeout { xsd:integer }?
174 filter_zeerex_explain =
175 attribute type { "zeerex_explain" },
176 attribute id { xsd:NCName }?,
177 attribute name { xsd:NCName }?