Option -X now makes it possible to stop YAZ proxy by sending
[yazproxy-moved-to-github.git] / etc / yazproxy.xsd
1 <?xml version="1.0"?>
2 <!-- XML Schema for YAZ proxy config file.
3     $Id: yazproxy.xsd,v 1.8 2005-02-21 14:27:31 adam Exp $
4 -->
5 <xs:schema
6   xmlns:xs="http://www.w3.org/2001/XMLSchema"
7   xmlns:exp="http://explain.z3950.org/dtd/2.0/"
8   xmlns="http://indexdata.dk/yazproxy/schema/0.9/"
9   targetNamespace="http://indexdata.dk/yazproxy/schema/0.9/"
10   >
11  <xs:import namespace="http://explain.z3950.org/dtd/2.0/" 
12       schemaLocation="zeerex-2.0.xsd"/>
13  <xs:element name="proxy">
14   <xs:complexType>
15    <xs:sequence>
16     <xs:element ref="target" minOccurs="0" maxOccurs="unbounded"/>
17     <xs:element ref="max-clients" minOccurs="0"/>
18     <xs:element ref="log" minOccurs="0"/>
19     <xs:element ref="module" minOccurs="0"/>
20    </xs:sequence>
21   </xs:complexType>
22  </xs:element>
23
24  <xs:element name="target">
25   <xs:complexType>
26    <xs:sequence>
27      <xs:element ref="url" minOccurs="0" maxOccurs="unbounded"/>
28      <xs:element ref="target-timeout" minOccurs="0"/>
29      <xs:element ref="client-timeout" minOccurs="0"/>
30      <xs:element ref="keepalive" minOccurs="0"/>
31      <xs:element ref="limit" minOccurs="0"/>
32      <xs:element ref="attribute" minOccurs="0" maxOccurs="unbounded"/>
33      <xs:element ref="syntax" minOccurs="0" maxOccurs="unbounded"/>
34      <xs:element ref="preinit" minOccurs="0"/>
35      <xs:element ref="exp:explain" minOccurs="0"/>
36      <xs:element ref="cql2rpn" minOccurs="0"/>
37      <xs:element ref="target-authentication" minOccurs="0"/>
38      <xs:element ref="client-authentication" minOccurs="0"/>
39      <xs:element ref="negotiation-charset" minOccurs="0"/>
40      <xs:element ref="negotiation-lang" minOccurs="0"/>
41    </xs:sequence>
42    <xs:attribute name="default" type="xs:string" use="optional"/>
43    <xs:attribute name="name" type="xs:string"/>
44    <xs:attribute name="database" type="xs:string"/>
45   </xs:complexType>
46  </xs:element>
47
48  <xs:element name="url" type="xs:string"/>
49  <xs:element name="target-timeout" type="xs:integer"/>
50  <xs:element name="client-timeout" type="xs:integer"/>
51  <xs:element name="bandwidth" type="xs:integer"/>
52  <xs:element name="pdu" type="xs:integer"/>
53  <xs:element name="retrieve" type="xs:integer"/>
54  <xs:element name="preinit" type="xs:integer"/>
55  <xs:element name="cql2rpn" type="xs:string"/>
56  <xs:element name="target-authentication">
57    <xs:complexType>
58     <xs:simpleContent>
59       <xs:extension base="xs:string">
60         <xs:attribute name="type" type="xs:string"/>
61       </xs:extension>
62     </xs:simpleContent>
63    </xs:complexType>
64  </xs:element>
65
66  <xs:element name="client-authentication">
67    <xs:complexType>
68     <xs:simpleContent>
69       <xs:extension base="xs:string">
70         <xs:attribute name="module" type="xs:string"/>
71         <xs:attribute name="args" type="xs:string"/>
72       </xs:extension>
73     </xs:simpleContent>
74    </xs:complexType>
75  </xs:element>
76
77  <xs:element name="negotiation-charset" type="xs:string"/>
78  <xs:element name="negotiation-lang" type="xs:string"/>
79
80  <xs:element name="keepalive">
81   <xs:complexType>
82    <xs:sequence>
83     <xs:element ref="bandwidth" minOccurs="0"/>
84     <xs:element ref="pdu" minOccurs="0"/>
85    </xs:sequence>
86   </xs:complexType>
87  </xs:element>
88  <xs:element name="limit">
89   <xs:complexType>
90    <xs:sequence>
91     <xs:element ref="bandwidth" minOccurs="0"/>
92     <xs:element ref="pdu" minOccurs="0"/>
93     <xs:element ref="retrieve" minOccurs="0"/>
94    </xs:sequence>
95   </xs:complexType>
96  </xs:element>
97  
98  <xs:element name="attribute">
99   <xs:complexType>
100    <xs:attribute name="type" type="xs:string"/>
101    <xs:attribute name="value" type="xs:string"/>
102    <xs:attribute name="error" type="xs:integer"/>
103   </xs:complexType>
104  </xs:element>
105
106  <xs:element name="syntax">
107   <xs:complexType>
108    <xs:sequence>
109     <xs:element ref="title" minOccurs="0"/>
110     <xs:element ref="name" minOccurs="0" maxOccurs="unbounded"/>
111    </xs:sequence>
112    <xs:attribute name="error" type="xs:string" />
113    <xs:attribute name="type" type="xs:string" />
114    <xs:attribute name="marcxml" type="xs:string" />
115    <xs:attribute name="identifier" type="xs:string" />
116    <xs:attribute name="stylesheet" type="xs:string" />
117    <xs:attribute name="backendtype" type="xs:string" />
118    <xs:attribute name="backendcharset" type="xs:string" />
119    <xs:attribute name="usemarconstage1" type="xs:string" />
120    <xs:attribute name="usemarconstage2" type="xs:string" />
121   </xs:complexType>
122  </xs:element>
123
124  <xs:element name="title" type="xs:string"/>
125  <xs:element name="name" type="xs:string"/>
126
127  <xs:element name="max-clients" type="xs:integer"/>
128  <xs:element name="log" type="xs:string"/>
129  <xs:element name="module" type="xs:string"/>
130
131 </xs:schema>