Start work on contentProxy support
[metaproxy-moved-to-github.git] / xml / schema / filter_auth_simple.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_auth_simple">
7     <xs:sequence>
8       <xs:element minOccurs="0" ref="mp:userRegister"/>
9       <xs:element minOccurs="0" ref="mp:targetRegister"/>
10       <xs:element minOccurs="0" ref="mp:discardUnauthorisedTargets"/>
11     </xs:sequence>
12   </xs:group>
13   <xs:element name="userRegister" type="xs:string"/>
14   <xs:element name="targetRegister" type="xs:string"/>
15   <xs:element name="discardUnauthorisedTargets">
16     <xs:complexType/>
17   </xs:element>
18   <xs:attributeGroup name="filter_auth_simple">
19     <xs:attribute name="type" use="required">
20       <xs:simpleType>
21         <xs:restriction base="xs:token">
22           <xs:enumeration value="auth_simple"/>
23         </xs:restriction>
24       </xs:simpleType>
25     </xs:attribute>
26     <xs:attribute name="id" type="xs:NCName"/>
27     <xs:attribute name="name" type="xs:NCName"/>
28   </xs:attributeGroup>
29 </xs:schema>