forked from uvalib/dplava-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdc.xsd
102 lines (85 loc) · 4.29 KB
/
dc.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://purl.org/dc/elements/1.1/"
targetNamespace="http://purl.org/dc/elements/1.1/" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation xml:lang="en"> DCMES 1.1 XML Schema XML Schema for
http://purl.org/dc/elements/1.1/ namespace Created 2008-02-11 Created by Tim Cole
([email protected]), Carl Lagoze ([email protected]) This schema declares XML
elements for the 15 DC elements from the http://purl.org/dc/elements/1.1/ namespace. It
defines a complexType SimpleLiteral which permits mixed content and makes the xml:lang
attribute available. It disallows child elements by use of minOcccurs/maxOccurs. However, this
complexType does permit the derivation of other complexTypes which would permit child
elements. All elements are declared as substitutable for the abstract element any, which means
that the default type for all elements is dc:SimpleLiteral. </xs:documentation>
</xs:annotation>
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="xml.xsd"> </xs:import>
<xs:complexType name="SimpleLiteral">
<xs:annotation>
<xs:documentation xml:lang="en">This is the default type for all of the DC elements. It
permits text content only with optional xml:lang attribute. Text is allowed because
mixed="true", but sub-elements are disallowed because minOccurs="0" and maxOccurs="0" are on
the xs:any tag. This complexType allows for restriction or extension permitting child
elements. </xs:documentation>
</xs:annotation>
<xs:complexContent mixed="true">
<xs:restriction base="xs:anyType">
<xs:sequence>
<xs:any processContents="lax" minOccurs="0" maxOccurs="0"/>
</xs:sequence>
<xs:attribute ref="xml:lang" use="optional"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="any" type="SimpleLiteral" abstract="true"/>
<xs:element name="title" substitutionGroup="any"/>
<xs:element name="description" substitutionGroup="any"/>
<xs:element name="publisher" substitutionGroup="any"/>
<xs:element name="contributor" substitutionGroup="any"/>
<xs:element name="date" substitutionGroup="any"/>
<xs:element name="type" substitutionGroup="any"/>
<xs:element name="format" substitutionGroup="any"/>
<xs:element name="identifier" substitutionGroup="any"/>
<xs:element name="source" substitutionGroup="any"/>
<xs:element name="language" substitutionGroup="any"/>
<xs:element name="relation" substitutionGroup="any"/>
<xs:element name="rights" substitutionGroup="any"/>
<xs:complexType name="URIallowed">
<xs:annotation>
<xs:documentation xml:lang="en">Allows for valueURI attributes to be added to specified elements used in the DPLA Digital Virginias Hub</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="valueURI" type="xs:anyURI"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="URIatt" type="URIallowed" abstract="true"/>
<xs:element name="creator" substitutionGroup="URIatt"/>
<xs:element name="coverage" substitutionGroup="URIatt"/>
<xs:element name="subject" substitutionGroup="URIatt"/>
<xs:group name="elementsGroup">
<xs:annotation>
<xs:documentation xml:lang="en"> This group is included as a convenience for schema authors
who need to refer to all the elements in the http://purl.org/dc/elements/1.1/ namespace.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="any"/>
</xs:choice>
</xs:sequence>
</xs:group>
<xs:complexType name="elementContainer">
<xs:annotation>
<xs:documentation xml:lang="en"> This complexType is included as a convenience for schema
authors who need to define a root or container element for all of the DC elements.
</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:group ref="elementsGroup"/>
</xs:choice>
</xs:complexType>
</xs:schema>