forked from alliedtelesis/apteryx-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apteryx.xsd
65 lines (65 loc) · 2.4 KB
/
apteryx.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://github.com/alliedtelesis/apteryx"
xmlns="https://github.com/alliedtelesis/apteryx"
elementFormDefault="qualified">
<xs:element name="VALUE">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="value" type="xs:string" use="required" />
<xs:attribute name="help" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>
<xs:element name="PROVIDE">
</xs:element>
<xs:element name="INDEX">
</xs:element>
<xs:element name="WATCH">
</xs:element>
<xs:element name="REFRESH">
</xs:element>
<xs:element name="NODE">
<xs:complexType>
<xs:sequence>
<xs:element ref="NODE" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="VALUE" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="WATCH" minOccurs="0" maxOccurs="1" />
<xs:element ref="PROVIDE" minOccurs="0" maxOccurs="1" />
<xs:element ref="INDEX" minOccurs="0" maxOccurs="1" />
<xs:element ref="REFRESH" minOccurs="0" maxOccurs="1" />
</xs:sequence>
<xs:attribute name="name" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[^_\s]*"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="default" type="xs:string" use="optional" />
<xs:attribute name="pattern" type="xs:string" use="optional" />
<xs:attribute name="range" type="xs:string" use="optional" />
<xs:attribute name="help" type="xs:string" use="optional" />
<xs:attribute name="mode" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="(p|x|hx|[rhwc]{1,4})"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="SCRIPT">
</xs:element>
<xs:element name="MODULE">
<xs:complexType>
<xs:sequence>
<xs:element ref="SCRIPT" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="NODE" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="model" type="xs:string" use="optional" />
<xs:attribute name="namespace" type="xs:string" use="optional" />
<xs:attribute name="prefix" type="xs:string" use="optional" />
<xs:attribute name="organization" type="xs:string" use="optional" />
<xs:attribute name="version" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>
</xs:schema>