Element.xsd 2.09 KB
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

	<xsd:element name="item" >
		<xsd:complexType mixed="true">
			<xsd:attribute name="key" use="required" type="xsd:string"/>
			<xsd:attribute name="value"	 use="required" type="xsd:string"/>
			<xsd:attribute name="label"  use="required" type="xsd:string"/>
		</xsd:complexType>
	</xsd:element>

	<xsd:element name="DBUIList" >
		<xsd:complexType mixed="true">
			<xsd:sequence>
				<xsd:element ref="item" minOccurs="0" maxOccurs="unbounded" />
			</xsd:sequence>

			<xsd:attribute name="count" use="required" type="xsd:integer"/>
		</xsd:complexType>
	</xsd:element>

	<xsd:simpleType name="Element_type">
	  <xsd:restriction base="xsd:string">
		<xsd:enumeration value="text"/>
		<xsd:enumeration value="time"/>
		<xsd:enumeration value="url"/>
		<xsd:enumeration value="select"/>
		<xsd:enumeration value="int"/>
	  </xsd:restriction>
	</xsd:simpleType>
 
	<xsd:element name="DBUIElement" >
		<xsd:complexType mixed="true">

			<xsd:sequence>
				<xsd:element ref="DBUIList" minOccurs="0" />
			</xsd:sequence>

			<xsd:attribute name="label"  use="required" type="xsd:string"/>
			<xsd:attribute name="objvar" use="required" type="xsd:string"/>
			<xsd:attribute name="value"	 use="required" type="xsd:string"/>
			<xsd:attribute name="type"	 type="Element_type" />
			<xsd:attribute name="show"   type="xsd:boolean"/>
			<xsd:attribute name="edit"   type="xsd:boolean"/>
			<xsd:attribute name="fixed"   type="xsd:boolean"/>
		</xsd:complexType>
	</xsd:element>

	<xsd:element name="DBUIRow" >
		<xsd:complexType mixed="true">
			<xsd:sequence>
				<xsd:element ref="DBUIElement" minOccurs="0" maxOccurs="unbounded" />
			</xsd:sequence>
			<xsd:attribute name="i" use="required" type="xsd:integer"/>
		</xsd:complexType>
	</xsd:element>


	<xsd:element name="DBUIArray" >
		<xsd:complexType mixed="true">
			<xsd:sequence>
				<xsd:element ref="DBUIRow"  minOccurs="0" maxOccurs="unbounded" />
			</xsd:sequence>
			<xsd:attribute name="count" use="required" type="xsd:integer"/>
		</xsd:complexType>
	</xsd:element>

</xsd:schema>