base.xsd 1.46 KB
<?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>