forked from OpenMath/OMSTD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
omcdsig2.rng
74 lines (72 loc) · 1.91 KB
/
omcdsig2.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
<?xml version="1.0" encoding="UTF-8"?>
<!--
*********************************************
Relax NG Schema for OpenMath CD Signatures
*********************************************
-->
<grammar ns="http://www.openmath.org/OpenMathCDS" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<include href="openmath2.rng">
<start>
<ref name="CDSignatures"/>
</start>
</include>
<define name="CDSComment">
<element name="CDSComment">
<text/>
</element>
</define>
<define name="CDSReviewDate">
<element name="CDSReviewDate">
<text/>
</element>
</define>
<define name="CDSStatus">
<element name="CDSStatus">
<choice>
<value>official</value>
<value>experimental</value>
<value>private</value>
<value>obsolete</value>
</choice>
</element>
</define>
<define name="CDSignatures">
<element name="CDSignatures">
<ref name="attlist.CDSignatures"/>
<zeroOrMore>
<ref name="CDSComment"/>
</zeroOrMore>
<interleave>
<optional>
<ref name="CDSReviewDate"/>
</optional>
<ref name="CDSStatus"/>
</interleave>
<zeroOrMore>
<choice>
<ref name="CDSComment"/>
<ref name="Signature"/>
</choice>
</zeroOrMore>
</element>
</define>
<define name="attlist.CDSignatures">
<attribute name="cd">
<data type="NCName"/>
</attribute>
<attribute name="type">
<data type="NCName"/>
</attribute>
</define>
<define name="Signature">
<element name="Signature">
<ref name="attlist.Signature"/>
<optional>
<ref name="OMOBJ"/>
</optional>
</element>
</define>
<define name="attlist.Signature">
<attribute name="name"/>
</define>
</grammar>