Files
cms_thermo_active/Thermo.Active.Config/Config/userSoftKeyConfigValidator.xsd
T
Samuele Locatelli 69f1398d9a fix out usersoftkeys
2020-07-27 14:32:18 +02:00

108 lines
5.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="userSoftKeys">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="softKey_group" type="groupType" minOccurs="0" maxOccurs="unbounded"></xs:element>
<xs:element name="softKey_toggle" type="softKeyType" minOccurs="0" maxOccurs="unbounded"></xs:element>
<xs:element name="softKey_procedure" type="procedureType" minOccurs="0" maxOccurs="unbounded"></xs:element>
</xs:choice>
</xs:complexType>
<!-- Unique id constraint -->
<xs:unique name="uniqueId">
<xs:selector xpath=".//root" />
<xs:field xpath="@plcId" />
</xs:unique>
</xs:element>
<!-- 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>
<!-- Group of softkey type-->
<xs:complexType name="groupType">
<xs:all>
<xs:element name="active" minOccurs="1" maxOccurs="1" type="xs:boolean"></xs:element>
<xs:element name="visible" minOccurs="1" maxOccurs="1" type="xs:boolean"></xs:element>
<xs:element name="starred" minOccurs="0" type="xs:boolean"></xs:element>
<xs:element name="refCallLabel" minOccurs="0" type="xs:string"></xs:element>
<xs:element name="refCallParam" minOccurs="0" type="xs:string"></xs:element>
<xs:element name="category" type="xs:integer"></xs:element>
<xs:element name="operatorConfirmationNeeded" type="xs:boolean"></xs:element>
<xs:element name="localizedNames">
<xs:complexType>
<xs:sequence>
<xs:element name="lang" type="langType" minOccurs="0" maxOccurs="unbounded">
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="subKeys">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="6">
<xs:element name="subKey">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="plcId" use="required" type="xs:integer" />
<xs:attribute name="active" use="required" type="xs:boolean"></xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
<!-- Single soft key-->
<xs:complexType name="softKeyType">
<xs:all>
<xs:element name="active" minOccurs="1" maxOccurs="1" type="xs:boolean"></xs:element>
<xs:element name="visible" minOccurs="1" maxOccurs="1" type="xs:boolean"></xs:element>
<xs:element name="starred" minOccurs="0" type="xs:boolean"></xs:element>
<xs:element name="refCallLabel" minOccurs="0" type="xs:string"></xs:element>
<xs:element name="refCallParam" minOccurs="0" type="xs:string"></xs:element>
<xs:element name="category" type="xs:integer"></xs:element>
<xs:element name="operatorConfirmationNeeded" type="xs:boolean"></xs:element>
<xs:element name="localizedNames">
<xs:complexType>
<xs:sequence>
<xs:element name="lang" type="langType" minOccurs="0" maxOccurs="unbounded">
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="plcId"></xs:element>
</xs:all>
</xs:complexType>
<!-- Procedure type -->
<xs:complexType name="procedureType">
<xs:all>
<xs:element name="active" minOccurs="1" maxOccurs="1" type="xs:boolean"></xs:element>
<xs:element name="visible" minOccurs="1" maxOccurs="1" type="xs:boolean"></xs:element>
<xs:element name="starred" minOccurs="0" type="xs:boolean"></xs:element>
<xs:element name="refCallLabel" minOccurs="0" type="xs:string"></xs:element>
<xs:element name="refCallParam" minOccurs="0" type="xs:string"></xs:element>
<xs:element name="category" type="xs:integer"></xs:element>
<xs:element name="operatorConfirmationNeeded" type="xs:boolean"></xs:element>
<xs:element name="localizedNames">
<xs:complexType>
<xs:sequence>
<xs:element name="lang" type="langType" minOccurs="0" maxOccurs="unbounded">
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="plcId"></xs:element>
</xs:all>
</xs:complexType>
</xs:schema>