/
test.xsd
36 lines (34 loc) · 1.56 KB
/
test.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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="https://dasch.swiss/schema"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://dasch.swiss/schema"
elementFormDefault="qualified">
<!-- complete document -->
<xs:element name="knora">
<xs:complexType>
<xs:sequence>
<xs:element name="permissions" type="permissions_type" minOccurs="0" maxOccurs="unbounded"/>
<xs:choice maxOccurs="unbounded">
<xs:element name="region" type="region_type" minOccurs="0" maxOccurs="unbounded">
<xs:unique name="UniqueNameAttr_Region">
<xs:selector xpath=".//*"/>
<xs:field xpath="@name"/>
</xs:unique>
</xs:element>
<xs:element name="link" type="link_type" minOccurs="0" maxOccurs="unbounded">
<xs:unique name="UniqueNameAttr_Link">
<xs:selector xpath=".//*"/>
<xs:field xpath="@name"/>
</xs:unique>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="default-ontology" type="xs:string"/>
<xs:attribute name="shortcode" type="knorashortcode_type"/>
</xs:complexType>
<xs:key name="permissionsId">
<xs:selector xpath="./permissions"/>
<xs:field xpath="@id"/>
</xs:key>
</xs:element>
</xs:schema>