-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlncvmodule.xsd
83 lines (79 loc) · 3.25 KB
/
lncvmodule.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0"?>
<!--
License: CC-BY-4.0 <https://creativecommons.org/licenses/by/4.0/>
GitHub: https://github.com/traintastic/lncv
Author(s): Reinder Feenstra
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="language">
<xs:restriction base="xs:string">
<xs:pattern value="[a-z]{2}-[a-z]{2}"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="name">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="language" type="language" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="lncvmodule">
<xs:complexType>
<xs:sequence>
<xs:element name="license">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="url" type="xs:string" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="source">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="url" type="xs:string" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="author" type="xs:string" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="vendor" type="xs:string"/>
<xs:element ref="name" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="lncv" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="name" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="value">
<xs:complexType>
<xs:sequence>
<xs:element name="option" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element ref="name" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="value" type="xs:unsignedShort" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="default" type="xs:unsignedShort" use="optional"/>
<xs:attribute name="min" type="xs:unsignedShort" use="optional"/>
<xs:attribute name="max" type="xs:unsignedShort" use="optional"/>
<xs:attribute name="gain" type="xs:double" use="optional"/>
<xs:attribute name="offset" type="xs:double" use="optional"/>
<xs:attribute name="unit" type="xs:string" use="optional"/>
<xs:attribute name="readonly" type="xs:boolean" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="lncv" type="xs:unsignedShort" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:unsignedShort" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>