Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
MAS
SDT
Commits
8a2c6865
Commit
8a2c6865
authored
Apr 27, 2015
by
Andreas Kraft
Browse files
Fixed Event definition:
- Added Data - Added Doc Added test for Event in dal-eg.xml
parent
2cd67ae9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletion
+20
-1
SDT/schema/etc/domain.rnc
SDT/schema/etc/domain.rnc
+3
-1
SDT/schema/src/domain.rng
SDT/schema/src/domain.rng
+2
-0
SDT/schema/src/domain.xsd
SDT/schema/src/domain.xsd
+4
-0
SDT/schema/test/dal-eg.xml
SDT/schema/test/dal-eg.xml
+11
-0
No files found.
SDT/schema/etc/domain.rnc
View file @
8a2c6865
...
...
@@ -83,7 +83,9 @@ Data =
Events =
element Events {
element Event {
attribute name { text }
attribute name { text },
Data,
Doc
}*
}
#
...
...
SDT/schema/src/domain.rng
View file @
8a2c6865
...
...
@@ -215,6 +215,8 @@
<attribute name="name">
<text/>
</attribute>
<ref name="Data" />
<ref name="Doc"/>
</element>
</zeroOrMore>
</element>
...
...
SDT/schema/src/domain.xsd
View file @
8a2c6865
...
...
@@ -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>
...
...
SDT/schema/test/dal-eg.xml
View file @
8a2c6865
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment