Skip to content
Snippets Groups Projects
Commit 92ab459a authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- updated XML schema

parent cd916fba
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://slub-dresden.de" xmlns:archive="http://slub-dresden.de" xmlns:v3="http://www.loc.gov/mods/v3" xmlns:mets="http://www.loc.gov/METS/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<xs:import namespace="http://www.loc.gov/METS/" schemaLocation="sip.xsd"/>
<xs:import namespace="http://www.loc.gov/mods/v3" schemaLocation="v3.xsd"/>
<xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
<xs:import namespace="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="xsi.xsd"/>
<xs:element name="record">
<xs:complexType>
<xs:sequence>
<xs:element ref="archive:exportToArchiveDate"/>
<xs:element ref="archive:externalId"/>
<xs:element ref="archive:externalWorkflow"/>
<xs:element ref="archive:hasConservationReason"/>
<xs:element ref="archive:externalIsilId"/>
<xs:element ref="archive:archivalValueDescription"/>
</xs:sequence>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://slub-dresden.de/slubarchiv" xmlns:archive="http://slub-dresden.de/slubarchiv">
<xs:element name="record" type="archive:record"/>
<xs:complexType name="record">
<xs:all>
<xs:element name="archivalValueDescription" type="archive:NonEmptyString" minOccurs="1" maxOccurs="1"/>
<xs:element name="exportToArchiveDate" type="xs:dateTime" minOccurs="1" maxOccurs="1"/>
<xs:element name="externalId" type="archive:LzaIdSubstring" minOccurs="1" maxOccurs="1"/>
<xs:element name="externalIsilId" type="archive:NonEmptyString" minOccurs="0" maxOccurs="1"/>
<xs:element name="externalWorkflow" type="archive:LzaIdSubstring" minOccurs="1" maxOccurs="1"/>
<xs:element name="hasConservationReason" type="xs:boolean" minOccurs="1" maxOccurs="1"/>
</xs:all>
<xs:attribute name="version" type="archive:SipVersionString" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="exportToArchiveDate" type="xs:dateTime"/>
<xs:element name="externalId" type="xs:string"/>
<xs:element name="externalWorkflow" type="xs:string"/>
<xs:element name="hasConservationReason" type="xs:boolean"/>
<xs:element name="externalIsilId" type="xs:string"/>
<xs:element name="archivalValueDescription" type="xs:string"/>
<xs:simpleType name="NonEmptyString">
<xs:restriction base="xs:string">
<xs:pattern value="[\s\S]*[^ ][\s\S]*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="LzaIdSubstring">
<xs:restriction base="xs:string">
<xs:pattern value="[a-z0-9]+"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="SipVersionString">
<xs:restriction base="xs:string">
<xs:enumeration value="v2017.1"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment