-
Notifications
You must be signed in to change notification settings - Fork 49
/
StrongSchema.xsd
54 lines (45 loc) · 1.75 KB
/
StrongSchema.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
<?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 Strong 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="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: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: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:schema>