-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.xsd
88 lines (88 loc) · 3.68 KB
/
common.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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
targetNamespace="http://www.team10.org/2018/common"
xmlns:sci-common="http://www.team10.org/2018/common">
<xs:complexType name="user">
<xs:sequence>
<xs:element name="firstName" type="xs:string"/>
<xs:element name="lastName" type="xs:string"/>
<xs:element name="middleName" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="institution">
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="address" type="sci-common:address"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="address">
<xs:sequence>
<xs:element name="street" type="xs:string"/>
<xs:element name="number" type="xs:string"/>
<xs:element name="city" type="xs:string"/>
<xs:element minOccurs="0" name="state" type="xs:string"/>
<xs:element name="country" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="author">
<xs:complexContent>
<xs:extension base="sci-common:user">
<xs:sequence>
<xs:element name="institution" type="sci-common:institution"/>
<xs:element name="email">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[^@]+@[^@]+.[^@]+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="phoneNumber">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="\d*"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element maxOccurs="1" minOccurs="0" name="orcid">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="\d{16}"/>
<xs:length value="16"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="reviewer">
<xs:complexContent>
<xs:extension base="sci-common:author">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="editor">
<xs:complexContent>
<xs:extension base="sci-common:reviewer">
<xs:sequence>
<xs:element name="type">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="handling"/>
<xs:enumeration value="chief"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="journal" type="sci-common:journal"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="journal">
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<xs:element name="address" type="sci-common:address"/>
</xs:sequence>
</xs:complexType>
</xs:schema>