Commit 8a2c6865 authored by Andreas Kraft's avatar Andreas Kraft

Fixed Event definition:

- Added Data
- Added Doc
Added test for Event in dal-eg.xml
parent 2cd67ae9
......@@ -83,7 +83,9 @@ Data =
Events =
element Events {
element Event {
attribute name { text }
attribute name { text },
Data,
Doc
}*
}
#
......
......@@ -215,6 +215,8 @@
<attribute name="name">
<text/>
</attribute>
<ref name="Data" />
<ref name="Doc"/>
</element>
</zeroOrMore>
</element>
......
......@@ -182,6 +182,10 @@
</xs:element>
<xs:element name="Event">
<xs:complexType>
<xs:sequence>
<xs:element ref="Data"/>
<xs:group ref="Doc"/>
</xs:sequence>
<xs:attribute name="name" use="required"/>
</xs:complexType>
</xs:element>
......
......@@ -54,6 +54,17 @@
</Doc>
</Action>
</Actions>
<Events>
<Event name="switchEvent">
<Data>
<DataPoint name="state" type="boolean" writable="false">
</DataPoint>
</Data>
<Doc>An event that indicates the new state of the switch.
</Doc>
</Event>
</Events>
</Module>
<Module name="power">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment