blob: 0a43fedd748170b2e63db766818023ad01d635ed [file] [log] [blame]
Michael Schoefflere4f221d2018-10-05 13:21:58 +02001<?xml version="1.0" encoding="utf-8"?>
2<xs:schema xmlns:tns="http://bosch.de/example" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://bosch.de/example" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 <xs:element name="metadata">
4 <xs:complexType>
5 <xs:sequence>
6 <xs:element name="id" type="xs:string" />
7 <xs:element name="label" type="xs:string" />
8 <xs:element name="description" type="xs:string" />
9 <xs:element name="roles">
10 <xs:complexType>
11 <xs:sequence>
12 <xs:element name="submodel">
13 <xs:complexType>
14 <xs:attribute name="name" type="xs:string" use="required" />
15 <xs:attribute name="type" type="xs:string" use="required" />
16 </xs:complexType>
17 </xs:element>
18 </xs:sequence>
19 </xs:complexType>
20 </xs:element>
21 <xs:element name="conditions">
22 <xs:complexType>
23 <xs:sequence>
24 <xs:element name="condition">
25 <xs:complexType>
26 <xs:attribute name="name" type="xs:string" use="required" />
27 <xs:attribute name="expression" type="xs:string" use="required" />
28 </xs:complexType>
29 </xs:element>
30 </xs:sequence>
31 </xs:complexType>
32 </xs:element>
33 <xs:element name="inputs">
34 <xs:complexType>
35 <xs:sequence>
36 <xs:element name="data">
37 <xs:complexType>
38 <xs:sequence>
39 <xs:element name="variable">
40 <xs:complexType>
41 <xs:attribute name="name" type="xs:string" use="required" />
42 <xs:attribute name="dataType" type="xs:string" use="required" />
43 <xs:attribute name="expression" type="xs:unsignedByte" use="required" />
44 </xs:complexType>
45 </xs:element>
46 </xs:sequence>
47 </xs:complexType>
48 </xs:element>
49 <xs:element name="things">
50 <xs:complexType>
51 <xs:sequence>
52 <xs:element name="thing">
53 <xs:complexType>
54 <xs:attribute name="name" type="xs:string" use="required" />
55 <xs:attribute name="expression" type="xs:string" use="required" />
56 </xs:complexType>
57 </xs:element>
58 </xs:sequence>
59 </xs:complexType>
60 </xs:element>
61 </xs:sequence>
62 </xs:complexType>
63 </xs:element>
64 <xs:element name="outputs">
65 <xs:complexType>
66 <xs:sequence>
67 <xs:element name="data">
68 <xs:complexType>
69 <xs:sequence>
70 <xs:element name="variable">
71 <xs:complexType>
72 <xs:attribute name="name" type="xs:string" use="required" />
73 <xs:attribute name="dataType" type="xs:string" use="required" />
74 <xs:attribute name="expression" type="xs:unsignedByte" use="required" />
75 </xs:complexType>
76 </xs:element>
77 </xs:sequence>
78 </xs:complexType>
79 </xs:element>
80 <xs:element name="things">
81 <xs:complexType>
82 <xs:sequence>
83 <xs:element name="thing">
84 <xs:complexType>
85 <xs:attribute name="name" type="xs:string" use="required" />
86 <xs:attribute name="expression" type="xs:string" use="required" />
87 </xs:complexType>
88 </xs:element>
89 </xs:sequence>
90 </xs:complexType>
91 </xs:element>
92 </xs:sequence>
93 </xs:complexType>
94 </xs:element>
95 </xs:sequence>
96 </xs:complexType>
97 </xs:element>
98</xs:schema>