testing: use yaz-ztest -V if possible
[pazpar2-moved-to-github.git] / etc / pz2.xsd
1 <xs:schema 
2            attributeFormDefault="unqualified" 
3            elementFormDefault="qualified" 
4            xmlns:pz="http://www.indexdata.com/pazpar2/1.0"
5            targetNamespace="http://www.indexdata.com/pazpar2/1.0"
6            xmlns:xs="http://www.w3.org/2001/XMLSchema"
7 >
8
9   <xs:element name="collection" type="pz:collection" />
10   <xs:element name="record" type="pz:record" />
11
12   <xs:complexType name="collection">
13     <xs:sequence>
14       <xs:element name="record" type="pz:record" minOccurs="1" maxOccurs="unbounded" />
15     </xs:sequence>
16   </xs:complexType>
17
18   <xs:complexType name="record">
19     <xs:sequence>
20       <xs:element name="metadata" type="pz:metadata" minOccurs="1" maxOccurs="unbounded"/>
21     </xs:sequence>
22   </xs:complexType>
23
24   <xs:complexType name="metadata">
25     <xs:simpleContent>
26       <xs:extension base="xs:string">
27         <xs:attribute type="xs:string" name="type" use="required" />
28       </xs:extension>
29     </xs:simpleContent>
30   </xs:complexType>
31
32 </xs:schema>