zoom: add facililty to dump APDUs.
[metaproxy-moved-to-github.git] / xml / schema / filter_zoom.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Metaproxy XML config file schema -->
3 <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">
4   <xs:import schemaLocation="local.xsd"/>
5   <xs:import namespace="http://indexdata.com/yaz" schemaLocation="retrievalinfo.xsd"/>
6   <xs:group name="filter_zoom">
7     <xs:sequence>
8       <xs:element minOccurs="0" ref="mp:torus"/>
9       <xs:element minOccurs="0" maxOccurs="unbounded" ref="mp:fieldmap"/>
10       <xs:element minOccurs="0" ref="mp:cclmap"/>
11       <xs:element minOccurs="0" ref="mp:contentProxy"/>
12       <xs:element minOccurs="0" ref="mp:log"/>
13     </xs:sequence>
14   </xs:group>
15   <xs:element name="torus">
16     <xs:complexType>
17       <xs:sequence>
18         <xs:element minOccurs="0" ref="mp:records"/>
19       </xs:sequence>
20       <xs:attribute name="url" use="required" type="xs:string"/>
21       <xs:attribute name="xsldir" type="xs:string"/>
22       <xs:attribute name="element_transform" type="xs:string"/>
23       <xs:attribute name="element_raw" type="xs:string"/>
24     </xs:complexType>
25   </xs:element>
26   <xs:element name="records">
27     <xs:complexType>
28       <xs:sequence>
29         <xs:element minOccurs="0" maxOccurs="unbounded" ref="mp:record"/>
30       </xs:sequence>
31     </xs:complexType>
32   </xs:element>
33   <xs:element name="record">
34     <xs:complexType>
35       <xs:sequence>
36         <xs:element minOccurs="0" ref="mp:authentication"/>
37         <xs:element minOccurs="0" ref="mp:piggyback"/>
38         <xs:element minOccurs="0" ref="mp:queryEncoding"/>
39         <xs:element ref="mp:udb"/>
40         <xs:element minOccurs="0" ref="mp:cclmap_au"/>
41         <xs:element minOccurs="0" ref="mp:cclmap_date"/>
42         <xs:element minOccurs="0" ref="mp:cclmap_isbn"/>
43         <xs:element minOccurs="0" ref="mp:cclmap_su"/>
44         <xs:element minOccurs="0" ref="mp:cclmap_term"/>
45         <xs:element minOccurs="0" ref="mp:cclmap_ti"/>
46         <xs:element minOccurs="0" ref="mp:elementSet"/>
47         <xs:element minOccurs="0" ref="mp:recordEncoding"/>
48         <xs:element minOccurs="0" ref="mp:requestSyntax"/>
49         <xs:element minOccurs="0" ref="mp:sru"/>
50         <xs:element minOccurs="0" ref="mp:transform"/>
51         <xs:element minOccurs="0" ref="mp:urlRecipe"/>
52         <xs:element ref="mp:zurl"/>
53         <xs:element minOccurs="0" ref="mp:cfAuth"/>
54         <xs:element minOccurs="0" ref="mp:cfProxy"/>
55         <xs:element minOccurs="0" ref="mp:cfSubDb"/>
56         <xs:element minOccurs="0" ref="mp:contentConnector"/>
57       </xs:sequence>
58     </xs:complexType>
59   </xs:element>
60   <xs:element name="authentication" type="xs:string"/>
61   <xs:element name="piggyback" type="xs:string"/>
62   <xs:element name="queryEncoding" type="xs:string"/>
63   <xs:element name="udb" type="xs:string"/>
64   <xs:element name="cclmap_au" type="xs:string"/>
65   <xs:element name="cclmap_date" type="xs:string"/>
66   <xs:element name="cclmap_isbn" type="xs:string"/>
67   <xs:element name="cclmap_su" type="xs:string"/>
68   <xs:element name="cclmap_term" type="xs:string"/>
69   <xs:element name="cclmap_ti" type="xs:string"/>
70   <xs:element name="elementSet" type="xs:string"/>
71   <xs:element name="recordEncoding" type="xs:string"/>
72   <xs:element name="requestSyntax" type="xs:string"/>
73   <xs:element name="sru" type="xs:string"/>
74   <xs:element name="transform" type="xs:string"/>
75   <xs:element name="urlRecipe" type="xs:string"/>
76   <xs:element name="zurl" type="xs:string"/>
77   <xs:element name="cfAuth" type="xs:string"/>
78   <xs:element name="cfProxy" type="xs:string"/>
79   <xs:element name="cfSubDb" type="xs:string"/>
80   <xs:element name="contentConnector" type="xs:string"/>
81   <xs:element name="fieldmap">
82     <xs:complexType>
83       <xs:attribute name="cql" use="required" type="xs:string"/>
84       <xs:attribute name="ccl" type="xs:string"/>
85     </xs:complexType>
86   </xs:element>
87   <xs:element name="cclmap">
88     <xs:complexType>
89       <xs:sequence>
90         <xs:element minOccurs="0" maxOccurs="unbounded" ref="mp:qual"/>
91       </xs:sequence>
92     </xs:complexType>
93   </xs:element>
94   <xs:element name="qual">
95     <xs:complexType>
96       <xs:sequence>
97         <xs:element maxOccurs="unbounded" ref="mp:attr"/>
98       </xs:sequence>
99       <xs:attribute name="name" use="required" type="xs:string"/>
100     </xs:complexType>
101   </xs:element>
102   <xs:element name="attr">
103     <xs:complexType>
104       <xs:attribute name="type" use="required" type="xs:string"/>
105       <xs:attribute name="value" use="required" type="xs:string"/>
106     </xs:complexType>
107   </xs:element>
108   <xs:element name="contentProxy">
109     <xs:complexType>
110       <xs:attribute name="server" type="xs:string"/>
111       <xs:attribute name="tmp_file" type="xs:string"/>
112     </xs:complexType>
113   </xs:element>
114   <xs:element name="log">
115     <xs:complexType>
116       <xs:attribute name="apdu" type="xs:boolean"/>
117     </xs:complexType>
118   </xs:element>
119   <xs:attributeGroup name="filter_zoom">
120     <xs:attribute name="type" use="required">
121       <xs:simpleType>
122         <xs:restriction base="xs:token">
123           <xs:enumeration value="zoom"/>
124         </xs:restriction>
125       </xs:simpleType>
126     </xs:attribute>
127     <xs:attribute name="id" type="xs:NCName"/>
128     <xs:attribute name="name" type="xs:NCName"/>
129   </xs:attributeGroup>
130 </xs:schema>