Files
cms_thermo_active/Thermo.Active.Config/Config/moduleBlockConfigValidator.xsd
T
2020-09-04 19:23:57 +02:00

74 lines
3.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="modules">
<xs:complexType>
<xs:sequence>
<!-- Heads -->
<xs:element name="block" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:all>
<xs:element name="id" type="xs:int"/>
<xs:element name="label" type="xs:string" />
<xs:element name="type" type="mblockType" />
<xs:element name="section" type="mblockSection" />
<xs:element name="idParam" type="xs:int" />
<xs:element name="showDelay" type="xs:boolean" />
<xs:element name="priority" type="xs:int" />
<xs:element name="scaleFactor" type="xs:int" minOccurs="0" />
<xs:element name="numDec" type="xs:int" minOccurs="0" />
<xs:element name="category" type="param_type" minOccurs="0" />
<xs:element name="subCategory_1" type="xs:string" minOccurs="0" />
<xs:element name="subCategory_2" type="xs:string" minOccurs="0" />
</xs:all>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- Head Type -->
<xs:simpleType name="param_type" final="restriction">
<xs:restriction base="xs:string">
<xs:enumeration value="General" />
<xs:enumeration value="Positions" />
<xs:enumeration value="Cycle"/>
<xs:enumeration value="Heats"/>
<xs:enumeration value="Pyrometer"/>
<xs:enumeration value="Drawing"/>
<xs:enumeration value="UpperPlate"/>
<xs:enumeration value="Cooling"/>
<xs:enumeration value="Vacuum"/>
<xs:enumeration value="Extraction"/>
<xs:enumeration value="Options"/>
</xs:restriction>
</xs:simpleType>
<!-- Language Type -->
<xs:complexType name="langType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="langKey" use="required" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<!-- ModBlock Type -->
<xs:simpleType name="mblockType" final="restriction">
<xs:restriction base="xs:string">
<xs:enumeration value="HEATING" />
<xs:enumeration value="DRAWING" />
<xs:enumeration value="MOVEMENT"/>
<xs:enumeration value="VACUUM"/>
<xs:enumeration value="COOLING"/>
<xs:enumeration value="EXTRACTION"/>
</xs:restriction>
</xs:simpleType>
<!-- Section Type -->
<xs:simpleType name="mblockSection" final="restriction">
<xs:restriction base="xs:string">
<xs:enumeration value="HEATING" />
<xs:enumeration value="FORMING" />
<xs:enumeration value="EXTRACTION"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>