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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="uidl">
<xs:complexType>
<xs:sequence>
<xs:element name="translation" type="translation"/>
<xs:element ref="window"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="window" type="windowType">
<xs:unique name="uniquePropWindow">
<xs:selector xpath="./property"/>
<xs:field xpath="@name"/>
</xs:unique>
</xs:element>
<xs:complexType name="windowType">
<xs:sequence>
<xs:element name="description" type="descriptionType" maxOccurs="1" minOccurs="0"/>
<xs:element name="widget" type="widgetType" maxOccurs="unbounded" minOccurs="0">
<xs:unique name="uniquePropWidget">
<xs:selector xpath="./property"/>
<xs:field xpath="@name"/>
</xs:unique>
</xs:element>
<xs:element name="property" type="propertyType" maxOccurs="unbounded" minOccurs="0">
</xs:element>
</xs:sequence>
<xs:attribute ref="id" use="optional"/>
<xs:attribute ref="class" use="optional"/>
<xs:attribute ref="scope"/>
</xs:complexType>
<xs:complexType name="widgetType">
<xs:sequence>
<xs:element name="description" type="descriptionType" maxOccurs="1" minOccurs="0"/>
<xs:element name="widget" type="widgetType" maxOccurs="unbounded" minOccurs="0"/>
<xs:element name="property" type="propertyType" maxOccurs="unbounded" minOccurs="0"/>
</xs:sequence>
<xs:attribute ref="id" use="required"/>
<xs:attribute ref="class" use="optional"/>
<xs:attribute ref="scope"/>
</xs:complexType>
<xs:complexType name="propertyType">
<xs:choice>
<xs:element name="list" type="listType" maxOccurs="1" minOccurs="0"/>
<xs:element name="map" type="mapType" maxOccurs="1" minOccurs="0"/>
</xs:choice>
<xs:attribute ref="ref"/>
<xs:attribute ref="name" use="required"/>
<xs:attribute ref="value"/>
</xs:complexType>
<xs:complexType name="listType">
<xs:choice>
<xs:element name="widget" type="widgetType" maxOccurs="unbounded" minOccurs="1"/>
<xs:element name="value" type="value" maxOccurs="unbounded" minOccurs="1"/>
</xs:choice>
<xs:attribute ref="type" use="optional"/>
</xs:complexType>
<xs:complexType name="mapType">
<xs:sequence>
<xs:element name="entry" type="entryType" maxOccurs="unbounded" minOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="entryType">
<xs:attribute ref="key" use="required"/>
<xs:attribute ref="value" use="required"/>
</xs:complexType>
<xs:simpleType name="descriptionType">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:simpleType name="value">
<xs:restriction base="xs:string"/>
</xs:simpleType>
<xs:attribute name="id" type="xs:string"/>
<xs:attribute name="value" type="xs:string"/>
<xs:attribute name="class" type="xs:string"/>
<xs:attribute name="type">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="(bean|value|ref)"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="scope" type="xs:string"/>
<xs:attribute name="ref" type="xs:string"/>
<xs:attribute name="key" type="xs:string"/>
<xs:attribute name="name" type="xs:string"/>
<xs:simpleType name="translation">
<xs:restriction base="xs:string"/>
</xs:simpleType>
</xs:schema> |
Partager