1<?xml version="1.0" encoding="UTF-8"?>
  2<!-- CHART Event Classes definitions -->
  3<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  4  <xs:import namespace="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="xsi.xsd"/>
  5  <xs:element name="class">
  6    <xs:complexType>
  7      <xs:choice minOccurs="0" maxOccurs="unbounded">
  8        <xs:element ref="name"/>
  9        <xs:element ref="description"/>
 10        <xs:element ref="renderer"/>
 11        <xs:element ref="key-code"/>
 12        <xs:element ref="test"/>
 13        <xs:element ref="template"/>
 14        <xs:element ref="email-function"/>
 15        <xs:element ref="email-notification"/>
 16        <xs:element ref="url"/>
 17        <xs:element ref="class-property"/>
 18        <xs:element ref="instance-property"/>
 19        <xs:element ref="class"/>
 20      </xs:choice>
 21      <xs:attribute ref="xsi:noNamespaceSchemaLocation"/>
 22    </xs:complexType>
 23  </xs:element>
 24  <xs:element name="name" type="xs:string"/>
 25  <xs:element name="description" type="xs:string"/>
 26  <xs:element name="renderer">
 27    <xs:simpleType>
 28      <xs:restriction base="xs:token">
 29        <xs:enumeration value="ool_event"/>
 30      </xs:restriction>
 31    </xs:simpleType>
 32  </xs:element>
 33  <xs:element name="key-code" type="xs:string"/>
 34  <xs:element name="test" type="xs:string"/>
 35  <xs:element name="template" type="xs:string"/>
 36  <xs:element name="email-function" type="xs:string"/>
 37  <xs:element name="email-notification" type="xs:string"/>
 38  <xs:element name="url" type="xs:string"/>
 39  <xs:element name="class-property">
 40    <xs:complexType>
 41      <xs:all>
 42        <xs:element ref="name"/>
 43        <xs:element ref="value"/>
 44      </xs:all>
 45    </xs:complexType>
 46  </xs:element>
 47  <xs:element name="value" type="xs:string"/>
 48  <xs:element name="instance-property">
 49    <xs:complexType>
 50      <xs:all>
 51        <xs:element ref="name"/>
 52        <xs:element ref="type"/>
 53        <xs:element minOccurs="0" ref="unit"/>
 54        <xs:element minOccurs="0" ref="description"/>
 55        <xs:element minOccurs="0" ref="optional"/>
 56        <xs:element minOccurs="0" ref="defaultview"/>
 57        <xs:element minOccurs="0" ref="choices"/>
 58      </xs:all>
 59    </xs:complexType>
 60  </xs:element>
 61  <xs:element name="type">
 62    <xs:simpleType>
 63      <xs:restriction base="xs:token">
 64        <xs:enumeration value="int"/>
 65        <xs:enumeration value="uint"/>
 66        <xs:enumeration value="float"/>
 67        <xs:enumeration value="string"/>
 68        <xs:enumeration value="duration"/>
 69        <xs:enumeration value="datetime"/>
 70        <xs:enumeration value="boolean"/>
 71        <xs:enumeration value="json"/>
 72      </xs:restriction>
 73    </xs:simpleType>
 74  </xs:element>
 75  <xs:element name="unit" type="xs:string"/>
 76  <xs:element name="optional">
 77    <xs:complexType/>
 78  </xs:element>
 79  <xs:element name="defaultview">
 80    <xs:complexType/>
 81  </xs:element>
 82  <xs:element name="choices">
 83    <xs:complexType>
 84      <xs:sequence>
 85        <xs:element maxOccurs="unbounded" ref="item"/>
 86      </xs:sequence>
 87    </xs:complexType>
 88  </xs:element>
 89  <xs:element name="item">
 90    <xs:complexType>
 91      <xs:all>
 92        <xs:element minOccurs="0" ref="value"/>
 93        <xs:element minOccurs="0" ref="name"/>
 94        <xs:element minOccurs="0" ref="description"/>
 95        <xs:element minOccurs="0" ref="colour"/>
 96      </xs:all>
 97    </xs:complexType>
 98  </xs:element>
 99  <xs:element name="colour" type="xs:string"/>
100</xs:schema>