-
Notifications
You must be signed in to change notification settings - Fork 56
Expand file tree
/
Copy pathBdbSchema.xsd
More file actions
140 lines (120 loc) · 4.28 KB
/
BdbSchema.xsd
File metadata and controls
140 lines (120 loc) · 4.28 KB
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://openscriptures.github.com/morphhb/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://openscriptures.github.com/morphhb/namespace" elementFormDefault="qualified">
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<xs:annotation>
<xs:documentation>
<p>The BDB schema is version 1.0.
It is released to the public domain.</p>
</xs:documentation>
</xs:annotation>
<xs:element name="lexicon" type="lexiconCT"/>
<!-- complex types -->
<xs:complexType name="lexiconCT">
<xs:sequence maxOccurs="unbounded">
<xs:element name="part" type="partCT"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="partCT">
<xs:sequence maxOccurs="unbounded">
<xs:element name="section" type="sectionCT"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="required"/>
<xs:attribute name="title" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
</xs:complexType>
<xs:complexType name="sectionCT">
<xs:choice maxOccurs="unbounded">
<xs:element name="entry" type="entryCT"/>
<xs:element name="page" type="pageCT"/>
</xs:choice>
<xs:attribute name="id" type="xs:ID" use="required"/>
</xs:complexType>
<xs:complexType name="entryCT" mixed="true">
<xs:choice maxOccurs="unbounded">
<xs:element name="w" type="wCT"/>
<xs:element name="pos" type="xs:string"/>
<xs:element name="stem" type="xs:string"/>
<xs:element name="asp" type="xs:string"/>
<xs:element name="def" type="xs:string"/>
<xs:element name="em" type="xs:string"/>
<xs:element name="sense" type="senseCT"/>
<xs:element name="ref" type="refCT"/>
<xs:element name="foreign" type="foreignCT"/>
<xs:element name="status" type="statusCT"/>
<xs:element name="page" type="pageCT"/>
</xs:choice>
<xs:attribute name="id" type="xs:ID" use="required"/>
<xs:attribute name="type" type="entryType" default="entry"/>
<xs:attribute name="cite" type="citationType" default="partial"/>
<xs:attribute name="form" type="xs:boolean" default="true"/>
<xs:attribute name="mod" type="modList"/>
</xs:complexType>
<xs:complexType name="pageCT">
<xs:attribute name="p" type="xs:integer" use="required"/>
</xs:complexType>
<xs:complexType name="wCT">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="mod" type="modList"/>
<xs:attribute name="src" type="xs:IDREF"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="senseCT" mixed="true">
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="pos" type="xs:string"/>
<xs:element name="stem" type="xs:string"/>
<xs:element name="asp" type="xs:string"/>
<xs:element name="def" type="xs:string"/>
<xs:element name="em" type="xs:string"/>
<xs:element name="sense" type="senseCT"/>
<xs:element name="w" type="wCT"/>
<xs:element name="ref" type="refCT"/>
<xs:element name="foreign" type="foreignCT"/>
<xs:element name="page" type="pageCT"/>
</xs:choice>
<xs:attribute name="n" type="xs:string"/>
</xs:complexType>
<xs:complexType name="refCT">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="r" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="foreignCT">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute ref="xml:lang"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="statusCT">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="p" type="xs:integer"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- simple types -->
<xs:simpleType name="entryType">
<xs:restriction base="xs:string">
<xs:enumeration value="root"/>
<xs:enumeration value="entry"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="citationType">
<xs:restriction base="xs:string">
<xs:enumeration value="full"/>
<xs:enumeration value="partial"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="modList">
<xs:list itemType="modType"/>
</xs:simpleType>
<xs:simpleType name="modType">
<xs:restriction base="xs:string">
<xs:pattern value="[IVXLCDM]+"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>