base.xsd
1.46 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="base" type="baseType"></xs:element>
<xs:complexType name="baseType">
<xs:sequence>
<xs:element name="vi" type="virtualInstrumentType" minOccurs="0" maxOccurs="unbounded"></xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="virtualInstrumentType">
<xs:sequence>
<xs:element name="mask" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="file" type="fileType" minOccurs="1" maxOccurs="unbounded"></xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required" />
<xs:attribute name="format" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="ASCII" />
<xs:enumeration value="CDF" />
<xs:enumeration value="VOT" />
<xs:enumeration value="NC" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="start" type="xs:string" use="required" />
<xs:attribute name="stop" type="xs:string" use="required" />
</xs:complexType>
<xs:complexType name="fileType">
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="start" type="xs:string" use="required" />
<xs:attribute name="stop" type="xs:string" use="required" />
</xs:complexType>
</xs:schema>