1<?xml version="1.0" encoding="UTF-8"?>
 2<!-- CHART OOL Limits definition files -->
 3<grammar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
 4  <start>
 5    <element name="limits">
 6      <interleave>
 7        <optional>
 8          <attribute name="xsi:noNamespaceSchemaLocation">
 9            <value>http://chart/schemas/limits.xsd</value>
10          </attribute>
11        </optional>
12        <zeroOrMore>
13          <element name="yellow">
14            <oneOrMore>
15              <ref name="limit"/>
16            </oneOrMore>
17          </element>
18        </zeroOrMore>
19        <zeroOrMore>
20          <element name="red">
21            <oneOrMore>
22              <ref name="limit"/>
23            </oneOrMore>
24          </element>
25        </zeroOrMore>
26      </interleave>
27    </element>
28  </start>
29  <define name="limit">
30    <interleave>
31      <element name="order">
32        <data type="integer">
33          <param name="minInclusive">1</param>
34        </data>
35      </element>
36      <element name="low">
37        <optional>
38          <data type="float"/>
39        </optional>
40      </element>
41      <element name="high">
42        <optional>
43          <data type="float"/>
44        </optional>
45      </element>
46      <optional>
47        <element name="applicability">
48          <interleave>
49            <element name="parameter">
50              <text/>
51            </element>
52            <element name="value">
53              <data type="float"/>
54            </element>
55          </interleave>
56        </element>
57      </optional>
58    </interleave>
59  </define>
60</grammar>