Commit 379cd063 authored by Oliver Bock's avatar Oliver Bock

Strutural changes to the XML schema WRT how preference attributes are defined

* Final preference element attributes are now simply children of a new "attributes" element
* The former method of setting such element's "entitype" attribute to "attribute" is dropped (removed)
* "compound" elements now either comprise various component elements OR the new "attributes" collection

Details: https://dev.gridrepublic.org/browse/DBOINCP-108
parent cccfbd9c
......@@ -77,6 +77,15 @@
</xs:sequence>
</xs:complexType>
<xs:complexType name="attributes">
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="text" type="text" />
<xs:element name="boolean" type="boolean" />
<xs:element name="radio" type="radio" />
<xs:element name="dropdown" type="dropdown" />
</xs:choice>
</xs:complexType>
<!-- complex base types -->
<xs:complexType name="component">
......@@ -84,7 +93,6 @@
<xs:element name="title" type="title" minOccurs="1" maxOccurs="1" />
<xs:element name="description" type="description" minOccurs="0" maxOccurs="1" />
</xs:sequence>
<xs:attribute name="entitytype" type="entitytype" default="element" />
<xs:attribute name="name" type="xs:string" use="required" />
</xs:complexType>
......@@ -141,11 +149,14 @@
<xs:complexType name="compound">
<xs:sequence>
<xs:element name="title" type="title" minOccurs="1" maxOccurs="1" />
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="text" type="text" />
<xs:element name="boolean" type="boolean" />
<xs:element name="radio" type="radio" />
<xs:element name="dropdown" type="dropdown" />
<xs:choice minOccurs="1" maxOccurs="1">
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="text" type="text" />
<xs:element name="boolean" type="boolean" />
<xs:element name="radio" type="radio" />
<xs:element name="dropdown" type="dropdown" />
</xs:choice>
<xs:element name="attributes" type="attributes" />
</xs:choice>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required" />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment