forked from openscriptures/HebrewLexicon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHebrewLexicon.xsd
149 lines (129 loc) · 4.59 KB
/
HebrewLexicon.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
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
141
142
143
144
145
146
147
148
149
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.APTBibleTools.com/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.APTBibleTools.com/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 HebrewLexicon schema is version 1.2.
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="entry" type="entryCT"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="entryCT">
<xs:choice maxOccurs="unbounded">
<xs:element name="w" type="wCT"/>
<xs:element name="note" type="xs:string"/>
<xs:element name="source" type="sourceCT"/>
<xs:element name="meaning" type="sourceCT"/>
<xs:element name="usage" type="sourceCT"/>
<xs:element name="bdb" type="bdbCT"/>
<xs:element name="xref" type="xrefCT"/>
<xs:element name="status" type="statusCT"/>
</xs:choice>
<xs:attribute name="id" type="xs:ID" use="required"/>
</xs:complexType>
<xs:complexType name="wCT">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="pos" type="xs:string"/>
<xs:attribute name="pron" type="xs:string"/>
<xs:attribute name="xlit" type="xs:string"/>
<xs:attribute ref="xml:lang"/>
<xs:attribute name="src" type="xs:IDREF"/>
<xs:attribute name="origin" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="sourceCT" mixed="true">
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element name="w" type="wCT"/>
<xs:element name="note" type="xs:string"/>
<xs:element name="def" type="xs:string"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="bdbCT" mixed="true">
<xs:choice maxOccurs="unbounded" minOccurs="0">
<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:choice>
<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="xrefCT">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="twot" type="xs:string"/>
</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>
<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: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>
<!-- 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>