This repository has been archived by the owner on Jun 16, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pica-xml-v1-0.xsd
61 lines (56 loc) · 1.83 KB
/
pica-xml-v1-0.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<!--
PICA XML 1.0 - XML Schema for XML representation of PICA data
Author: Jakob Voss <jakob.voss@gbv.de>
Date: 2009-07-06
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="info:srw/schema/5/picaXML-v1.0"
xmlns="info:srw/schema/5/picaXML-v1.0">
<xs:element name="collection">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="unbounded" ref="record"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="record" >
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="unbounded" ref="datafield"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="datafield">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="unbounded" ref="subfield"/>
</xs:sequence>
<xs:attribute name="tag" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9][0-9][0-9][A-Z@]"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="occurrence" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9][0-9]"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="subfield">
<xs:complexType mixed="true">
<xs:attribute name="code" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9A-Za-z]"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>