3 <!DOCTYPE stylesheet [
<!ENTITY nbsp
" " >]
>
5 <xs:schema xmlns=
"http://koha-community.org" xmlns:
xs=
"http://www.w3.org/2001/XMLSchema" targetNamespace=
"http://koha-community.org" elementFormDefault=
"qualified" attributeFormDefault=
"unqualified" version=
"1.1">
7 <xs:documentation>Control field plugin type of materials schema
</xs:documentation>
11 <xs:element name=
"Tagfield" type=
"TagfieldType" nillable=
"false">
13 <xs:documentation>Element indicating the control field
</xs:documentation>
18 <xs:complexType name=
"TagfieldType">
19 <xs:sequence minOccurs=
"1" maxOccurs=
"unbounded">
20 <xs:element name=
"Material" type=
"MaterialType"/>
22 <xs:attribute name=
"tag" type=
"controltagDataType" use=
"required"/>
26 <xs:simpleType name=
"controltagDataType">
27 <xs:restriction base=
"xs:string">
28 <xs:whiteSpace value=
"collapse"/>
29 <xs:pattern value=
"00[1-9A-Za-z]{1}"/>
34 <xs:complexType name=
"MaterialType">
35 <xs:sequence minOccurs=
"1" maxOccurs=
"unbounded">
36 <xs:element name=
"name" type=
"xs:string"/>
37 <xs:element name=
"description" type=
"xs:string"/>
38 <xs:element name=
"Position" type=
"PositionType" minOccurs=
"0" maxOccurs=
"unbounded"/>
40 <xs:attribute name=
"id" type=
"idDataType" use=
"required"/>
44 <xs:simpleType name=
"idDataType">
45 <xs:restriction base=
"xs:string">
46 <xs:whiteSpace value=
"collapse"/>
47 <xs:enumeration value=
"BKS"/>
48 <xs:enumeration value=
"CF"/>
49 <xs:enumeration value=
"MP"/>
50 <xs:enumeration value=
"MU"/>
51 <xs:enumeration value=
"CR"/>
52 <xs:enumeration value=
"VM"/>
53 <xs:enumeration value=
"MX"/>
58 <xs:complexType name=
"PositionType">
59 <xs:sequence minOccurs=
"0" maxOccurs=
"unbounded">
60 <xs:element name=
"urltext" type=
"xs:string" minOccurs=
"0"/>
61 <xs:element name=
"name" type=
"xs:string"/>
62 <xs:element name=
"description" type=
"xs:string"/>
63 <xs:element name=
"Value" type=
"ValueType" minOccurs=
"0" maxOccurs=
"unbounded"/>
65 <xs:attribute name=
"url" type=
"xs:anyURI"/>
66 <xs:attribute name=
"pos" type=
"posDataType" use=
"required"/>
70 <xs:simpleType name=
"posDataType">
71 <xs:restriction base=
"xs:string">
72 <xs:whiteSpace value=
"collapse"/>
73 <xs:pattern value=
"[0-9]+(-[0-9]+)?"/>
78 <xs:complexType name=
"ValueType">
79 <xs:sequence minOccurs=
"0" maxOccurs=
"unbounded">
80 <xs:element name=
"description" type=
"xs:string"/>
82 <xs:attribute name=
"code" type=
"xs:string" use=
"required"/>