forked from PhotoNomad0/HebrewLexicon
-
Notifications
You must be signed in to change notification settings - Fork 1
/
LiSchema.xsd
75 lines (62 loc) · 2.23 KB
/
LiSchema.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
<?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 Lexical Index schema is version 1.0.
It is released to the public domain.</p>
</xs:documentation>
</xs:annotation>
<xs:element name="index" type="indexCT"/>
<!-- complex types -->
<xs:complexType name="indexCT">
<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="entry" type="entryCT"/>
</xs:sequence>
<xs:attribute ref="xml:lang"/>
</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="def" type="xs:string"/>
<xs:element name="xref" type="xrefCT"/>
<xs:element name="etym" type="etymCT"/>
</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="xlit" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="xrefCT">
<xs:attribute name="bdb" type="xs:string"/>
<xs:attribute name="strong" type="xs:string"/>
<xs:attribute name="aug" type="xs:string"/>
<xs:attribute name="twot" type="xs:string"/>
</xs:complexType>
<xs:complexType name="etymCT">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="root" type="xs:string"/>
<xs:attribute name="type" type="etymType" use="required"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- simple types -->
<xs:simpleType name="etymType">
<xs:restriction base="xs:string">
<xs:enumeration value="main"/>
<xs:enumeration value="sub"/>
<xs:enumeration value="single"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>