1 <?xml version="1.0" encoding="UTF-8"?>
3 Metaproxy XML config file schemas
5 Copyright (C) 2005-2011 Index Data.
7 See the LICENSE file for details
10 The RelaxNG Compact Syntax file 'metaproxy.rnc' is the master copy.
12 The RelaxNG XML Syntax and XML Schema are generated using 'trang':
13 trang metaproxy.rnc metaproxy.rng
14 trang metaproxy.rnc metaproxy.xsd
16 Config file validation is done using 'xmllint':
17 xmllint -/-relaxng metaproxy.rng ../../../etc/config1.xml
18 xmllint -/-schema metaproxy.xsd config-bytarget.xml
20 For information on RelaxNG see http://relaxng.org
21 see also http://books.xmlschemata.org/relaxng/
23 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://indexdata.com/metaproxy" xmlns:mp="http://indexdata.com/metaproxy" xmlns:y="http://indexdata.com/yaz">
24 <xs:import schemaLocation="local.xsd"/>
25 <xs:import namespace="http://indexdata.com/yaz" schemaLocation="retrievalinfo.xsd"/>
26 <xs:group name="filter_frontend_net">
28 <xs:element minOccurs="0" ref="mp:threads"/>
29 <xs:element maxOccurs="unbounded" ref="mp:port"/>
30 <xs:element minOccurs="0" ref="mp:timeout"/>
31 <xs:element minOccurs="0" ref="mp:connect-max"/>
34 <xs:element name="threads" type="xs:integer"/>
35 <xs:element name="port" type="xs:string"/>
36 <xs:element name="timeout" type="xs:integer"/>
37 <xs:element name="connect-max" type="xs:integer"/>
38 <xs:attributeGroup name="filter_frontend_net">
39 <xs:attribute name="type" use="required">
41 <xs:restriction base="xs:token">
42 <xs:enumeration value="frontend_net"/>
46 <xs:attribute name="id" type="xs:NCName"/>
47 <xs:attribute name="name" type="xs:NCName"/>