forked from MichaelClerx/cellml-validation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcellml_1_0.dtd
129 lines (107 loc) · 3.31 KB
/
cellml_1_0.dtd
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
<!--
CellML 1.0 DTD, based on the original by Warren Hedley.
This version has a number of error corrections and uses a local MathML DTD.
For an overview of the capabilities and limitations of this validation method,
please see
https://github.com/MichaelClerx/cellml-validation/tree/master/reports
-->
<!ELEMENT note (type,to,from,heading,body)>
<!ENTITY % mathml_dtd SYSTEM "../catalog/dtd/mathml2/mathml2.dtd">
%mathml_dtd;
<!ATTLIST %cn.qname;
%MATHML.Common.attrib;
%att-type;
%att-base;
%att-definition;
%att-encoding;
cellml:units CDATA #REQUIRED
>
<!ENTITY % cellml_common_attributes "
xmlns CDATA #IMPLIED
xmlns:cellml CDATA #IMPLIED
xmlns:cmeta CDATA #IMPLIED
cmeta:id ID #IMPLIED
">
<!ELEMENT model (units | component | group | connection)*>
<!ATTLIST model
%cellml_common_attributes;
name CDATA #REQUIRED
>
<!ELEMENT component (units | variable | reaction | math)*>
<!ATTLIST component
%cellml_common_attributes;
name CDATA #REQUIRED
>
<!ELEMENT variable EMPTY>
<!ATTLIST variable
%cellml_common_attributes;
name CDATA #REQUIRED
public_interface (in|out|none) #IMPLIED
private_interface (in|out|none) #IMPLIED
units CDATA #REQUIRED
initial_value CDATA #IMPLIED
>
<!ELEMENT connection (map_components, map_variables+)>
<!ATTLIST connection
%cellml_common_attributes;
>
<!ELEMENT map_components EMPTY>
<!ATTLIST map_components
%cellml_common_attributes;
component_1 CDATA #REQUIRED
component_2 CDATA #REQUIRED
>
<!ELEMENT map_variables EMPTY>
<!ATTLIST map_variables
%cellml_common_attributes;
variable_1 CDATA #REQUIRED
variable_2 CDATA #REQUIRED
>
<!ELEMENT units (unit*)>
<!ATTLIST units
%cellml_common_attributes;
name CDATA #REQUIRED
base_units (yes|no) #IMPLIED
>
<!ELEMENT unit EMPTY>
<!ATTLIST unit
%cellml_common_attributes;
multiplier CDATA #IMPLIED
prefix CDATA #IMPLIED
units CDATA #REQUIRED
exponent CDATA #IMPLIED
offset CDATA #IMPLIED
>
<!ELEMENT group (relationship_ref|component_ref)+>
<!ATTLIST group
%cellml_common_attributes;
>
<!ELEMENT relationship_ref EMPTY>
<!ATTLIST relationship_ref
%cellml_common_attributes;
relationship CDATA #REQUIRED
name CDATA #IMPLIED
>
<!ELEMENT component_ref (component_ref*)>
<!ATTLIST component_ref
%cellml_common_attributes;
component CDATA #REQUIRED
>
<!ELEMENT reaction (variable_ref+)>
<!ATTLIST reaction
%cellml_common_attributes;
reversible (yes|no) #IMPLIED
>
<!ELEMENT variable_ref (role+)>
<!ATTLIST variable_ref
%cellml_common_attributes;
variable CDATA #REQUIRED
>
<!ELEMENT role (math?)>
<!ATTLIST role
%cellml_common_attributes;
role (reactant|product|activator|catalyst|inhibitor|modifier|rate) #REQUIRED
direction (forward|reverse|both) #IMPLIED
delta_variable CDATA #IMPLIED
stoichiometry CDATA #IMPLIED
>