forked from SAA-SDT/eac-cpf-taglibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tagLibrary_elementDesc.rng
148 lines (147 loc) · 4.63 KB
/
tagLibrary_elementDesc.rng
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
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
ns="http://www.tei-c.org/ns/1.0"
xmlns:eg="http://www.tei-c.org/ns/Examples">
<start>
<ref name="div"/>
</start>
<define name="div">
<element name="div">
<attribute name="type">
<choice>
<value>elementDocumentation</value>
<value>attributeDocumentation</value>
<value>fullName</value>
<value>summary</value>
<value>description</value>
<value>mayContain</value>
<value>mayOccurWithin</value>
<value>attributes</value>
<value>reference</value>
<value>occurrence</value>
<value>examples</value>
<value>datatype</value>
</choice>
</attribute>
<optional>
<attribute name="xml:id">
<data type="string"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string"/>
</attribute>
</optional>
<optional>
<ref name="head"/>
</optional>
<choice>
<oneOrMore>
<element name="p">
<optional>
<attribute name="xml:lang">
<data type="string"/>
</attribute>
</optional>
<zeroOrMore>
<choice>
<text/>
<ref name="att"/>
<ref name="list"/>
<ref name="ref"/>
<ref name="gi"/>
</choice>
</zeroOrMore>
</element>
</oneOrMore>
<oneOrMore>
<element name="eg:egXML">
<oneOrMore><ref name="anyElement"/></oneOrMore>
</element>
</oneOrMore>
<oneOrMore>
<ref name="div"/>
</oneOrMore>
</choice>
</element>
</define>
<define name="head">
<element name="head">
<choice>
<text/>
<ref name="gi"/>
<ref name="att"/>
</choice>
</element>
</define>
<define name="list">
<element name="list">
<optional>
<attribute name="type">
<choice>
<value>gloss</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="xml:lang">
<data type="string"/>
</attribute>
</optional>
<optional>
<ref name="head"/>
</optional>
<oneOrMore>
<element name="label">
<text/>
</element>
<element name="item">
<optional>
<attribute name="n">
<data type="string"/>
</attribute>
</optional>
<oneOrMore>
<text/>
</oneOrMore>
</element>
</oneOrMore>
</element>
</define>
<define name="ref">
<element name="ref">
<attribute name="target">
<data type="anyURI"/>
</attribute>
<text/>
</element>
</define>
<define name="anyElement">
<element>
<anyName/>
<zeroOrMore>
<choice>
<attribute>
<anyName/>
</attribute>
<text/>
<ref name="anyElement"/>
</choice>
</zeroOrMore>
</element>
</define>
<define name="gi">
<element name="gi">
<text/>
</element>
</define>
<define name="att">
<element name="att">
<text/>
</element>
</define>
</grammar>