source: metadata/branches/cmdi-1.1/toolkit/xsd/minimal-cmdi.xsd @ 5856

Last change on this file since 5856 was 5856, checked in by Menzo Windhouwer, 10 years ago

M toolkit/xsd/minimal-cmdi.xsd
M toolkit/xslt/comp2schema-v2/comp2schema-header.xsl
M toolkit/xslt/comp2schema-v2/comp2schema.xsl

  • allow foreign attributes on elements from the CMD envelop
  • alligned minimal-cmdi.xsd with the header in comp2schema-header.xsl
File size: 8.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dcr="http://www.isocat.org/ns/dcr" xmlns:cmd="http://www.clarin.eu/cmd/" targetNamespace="http://www.clarin.eu/cmd/" attributeFormDefault="unqualified" elementFormDefault="qualified">
3        <xs:simpleType name="Resourcetype_simple">
4                <xs:restriction base="xs:string">
5                        <xs:enumeration value="Metadata">
6                                <xs:annotation>
7                                        <xs:documentation>The ResourceProxy refers to another component metadata
8                                                instance (e.g. for grouping metadata descriptions into
9                                                collections)</xs:documentation>
10                                </xs:annotation>
11                        </xs:enumeration>
12                        <xs:enumeration value="Resource">
13                                <xs:annotation>
14                                        <xs:documentation>The ResourceProxy refers to a file that is not a metadata
15                                                instance (e.g. a text document)</xs:documentation>
16                                </xs:annotation>
17                        </xs:enumeration>
18                        <xs:enumeration value="SearchService">
19                                <xs:annotation>
20                                        <xs:documentation>The ResourceProxy refers to a (SRU/CQL) web service that can be used to query the resource described in this file</xs:documentation>
21                                </xs:annotation>
22                        </xs:enumeration>
23                        <xs:enumeration value="SearchPage">
24                                <xs:annotation>
25                                        <xs:documentation>The ResourceProxy refers to a web page that can be used to query the resource described in this file</xs:documentation>
26                                </xs:annotation>
27                        </xs:enumeration>
28                        <xs:enumeration value="LandingPage">
29                                <xs:annotation>
30                                        <xs:documentation>The ResourceProxy refers to a web page that contains the "original context" of the resource described in this file (e.g. repository web page displaying the metadata).</xs:documentation>
31                                </xs:annotation>
32                        </xs:enumeration>
33                </xs:restriction>
34        </xs:simpleType>
35        <xs:element name="CMD">
36                <xs:complexType>
37                        <xs:sequence>
38                                <xs:element name="Header">
39                                        <xs:complexType>
40                                                <xs:sequence>
41                                                        <xs:element name="MdCreator" minOccurs="0" maxOccurs="unbounded">
42                                                                <xs:complexType>
43                                                                        <xs:simpleContent>
44                                                                                <xs:extension base="xs:string">
45                                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
46                                                                                </xs:extension>
47                                                                        </xs:simpleContent>
48                                                                </xs:complexType>
49                                                        </xs:element>
50                                                        <xs:element name="MdCreationDate" minOccurs="0">
51                                                                <xs:complexType>
52                                                                        <xs:simpleContent>
53                                                                                <xs:extension base="xs:date">
54                                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
55                                                                                </xs:extension>
56                                                                        </xs:simpleContent>
57                                                                </xs:complexType>
58                                                        </xs:element>
59                                                        <xs:element name="MdSelfLink" minOccurs="0">
60                                                                <xs:complexType>
61                                                                        <xs:simpleContent>
62                                                                                <xs:extension base="xs:anyURI">
63                                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
64                                                                                </xs:extension>
65                                                                        </xs:simpleContent>
66                                                                </xs:complexType>
67                                                        </xs:element>
68                                                        <xs:element name="MdProfile" minOccurs="0">
69                                                                <xs:complexType>
70                                                                        <xs:simpleContent>
71                                                                                <xs:extension base="xs:anyURI">
72                                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
73                                                                                </xs:extension>
74                                                                        </xs:simpleContent>
75                                                                </xs:complexType>
76                                                        </xs:element>
77                                                        <xs:element name="MdCollectionDisplayName" minOccurs="0">
78                                                                <xs:complexType>
79                                                                        <xs:simpleContent>
80                                                                                <xs:extension base="xs:string">
81                                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
82                                                                                </xs:extension>
83                                                                        </xs:simpleContent>
84                                                                </xs:complexType>
85                                                        </xs:element>
86                                                </xs:sequence>
87                                                <xs:anyAttribute namespace="##other" processContents="lax"/>
88                                        </xs:complexType>
89                                </xs:element>
90                                <xs:element name="Resources">
91                                        <xs:complexType>
92                                                <xs:sequence>
93                                                        <xs:element name="ResourceProxyList">
94                                                                <xs:complexType>
95                                                                        <xs:sequence>
96                                                                                <xs:element maxOccurs="unbounded" minOccurs="0" name="ResourceProxy">
97                                                                                        <xs:complexType>
98                                                                                                <xs:sequence>
99                                                                                                        <xs:element maxOccurs="1" minOccurs="1" name="ResourceType">
100                                                                                                                <xs:complexType>
101                                                                                                                        <xs:simpleContent>
102                                                                                                                                <xs:extension base="cmd:Resourcetype_simple">
103                                                                                                                                        <xs:attribute name="mimetype" type="xs:string"/>
104                                                                                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
105                                                                                                                                </xs:extension>
106                                                                                                                        </xs:simpleContent>
107                                                                                                                </xs:complexType>
108                                                                                                        </xs:element>
109                                                                                                        <xs:element maxOccurs="1" minOccurs="1" name="ResourceRef">
110                                                                                                                <xs:complexType>
111                                                                                                                        <xs:simpleContent>
112                                                                                                                                <xs:extension base="xs:anyURI">
113                                                                                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
114                                                                                                                                </xs:extension>
115                                                                                                                        </xs:simpleContent>
116                                                                                                                </xs:complexType>
117                                                                                                        </xs:element>
118                                                                                                </xs:sequence>
119                                                                                                <xs:attribute name="id" type="xs:ID" use="required"/>
120                                                                                                <xs:anyAttribute namespace="##other" processContents="lax"/>
121                                                                                        </xs:complexType>
122                                                                                </xs:element>
123                                                                        </xs:sequence>
124                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
125                                                                </xs:complexType>
126                                                        </xs:element>
127                                                        <xs:element name="JournalFileProxyList">
128                                                                <xs:complexType>
129                                                                        <xs:sequence>
130                                                                                <xs:element maxOccurs="unbounded" minOccurs="0" name="JournalFileProxy">
131                                                                                        <xs:complexType>
132                                                                                                <xs:sequence>
133                                                                                                        <xs:element maxOccurs="1" minOccurs="1" name="JournalFileRef">
134                                                                                                                <xs:complexType>
135                                                                                                                        <xs:simpleContent>
136                                                                                                                                <xs:extension base="xs:anyURI">
137                                                                                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
138                                                                                                                                </xs:extension>
139                                                                                                                        </xs:simpleContent>
140                                                                                                                </xs:complexType>
141                                                                                                        </xs:element>
142                                                                                                </xs:sequence>
143                                                                                                <xs:anyAttribute namespace="##other" processContents="lax"/>
144                                                                                        </xs:complexType>
145                                                                                </xs:element>
146                                                                        </xs:sequence>
147                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
148                                                                </xs:complexType>
149                                                        </xs:element>
150                                                        <xs:element name="ResourceRelationList">
151                                                                <xs:complexType>
152                                                                        <xs:sequence>
153                                                                                <xs:element maxOccurs="unbounded" minOccurs="0" name="ResourceRelation">
154                                                                                        <xs:complexType>
155                                                                                                <xs:sequence>
156                                                                                                        <xs:element maxOccurs="1" minOccurs="1" name="RelationType">
157                                                                                                                <xs:complexType>
158                                                                                                                        <xs:simpleContent>
159                                                                                                                                <xs:extension base="xs:string">
160                                                                                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
161                                                                                                                                </xs:extension>
162                                                                                                                        </xs:simpleContent>
163                                                                                                                </xs:complexType>
164                                                                                                        </xs:element>
165                                                                                                        <xs:element maxOccurs="1" minOccurs="1" name="Res1">
166                                                                                                                <xs:complexType>
167                                                                                                                        <xs:attribute name="ref" type="xs:IDREF"/>
168                                                                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
169                                                                                                                </xs:complexType>
170                                                                                                        </xs:element>
171                                                                                                        <xs:element maxOccurs="1" minOccurs="1" name="Res2">
172                                                                                                                <xs:complexType>
173                                                                                                                        <xs:attribute name="ref" type="xs:IDREF"/>
174                                                                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
175                                                                                                                </xs:complexType>
176                                                                                                        </xs:element>
177                                                                                                </xs:sequence>
178                                                                                                <xs:anyAttribute namespace="##other" processContents="lax"/>
179                                                                                        </xs:complexType>
180                                                                                </xs:element>
181                                                                        </xs:sequence>
182                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
183                                                                </xs:complexType>
184                                                        </xs:element>
185
186                                                        <xs:element minOccurs="0" name="IsPartOfList">
187                                                                <xs:complexType>
188                                                                        <xs:sequence>
189                                                                                <xs:element maxOccurs="unbounded" minOccurs="0" name="IsPartOf">
190                                                                                        <xs:complexType>
191                                                                                                <xs:simpleContent>
192                                                                                                        <xs:extension base="xs:anyURI">
193                                                                                                                <xs:anyAttribute namespace="##other" processContents="lax"/>
194                                                                                                        </xs:extension>
195                                                                                                </xs:simpleContent>
196                                                                                        </xs:complexType>
197                                                                                </xs:element>
198                                                                        </xs:sequence>
199                                                                        <xs:anyAttribute namespace="##other" processContents="lax"/>
200                                                                </xs:complexType>
201                                                        </xs:element>
202
203                                                </xs:sequence>
204                                                <xs:anyAttribute namespace="##other" processContents="lax"/>
205                                        </xs:complexType>
206                                </xs:element>
207
208                                <xs:element name="Components">
209                                        <xs:complexType>
210                                                <xs:sequence>
211                                                        <xs:any namespace="##targetNamespace" minOccurs="1" maxOccurs="unbounded" processContents="lax"/>
212                                                </xs:sequence>
213                                                <xs:anyAttribute namespace="##other" processContents="lax"/>
214                                        </xs:complexType>
215                                </xs:element>
216                        </xs:sequence>
217                        <xs:attribute name="CMDVersion" fixed="1.1" use="required"/>
218                        <xs:anyAttribute namespace="##other" processContents="lax"/>
219                </xs:complexType>
220        </xs:element>
221</xs:schema>
Note: See TracBrowser for help on using the repository browser.