comparison test-schema.xsd @ 1372:25a33f2489e7

randomiseOrder a global function. Schema update (hostURL attribute on <pages> not mandatory). Specification node can create XML.
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Wed, 10 Feb 2016 14:46:57 +0000
parents c277da1e89ca
children b0340a2f64f2
comparison
equal deleted inserted replaced
1371:70f479d47a39 1372:25a33f2489e7
26 <xs:element ref="survey" minOccurs="0" maxOccurs="2"/> 26 <xs:element ref="survey" minOccurs="0" maxOccurs="2"/>
27 <xs:element ref="metric" maxOccurs="1"/> 27 <xs:element ref="metric" maxOccurs="1"/>
28 <xs:element ref="interface" maxOccurs="1"/> 28 <xs:element ref="interface" maxOccurs="1"/>
29 </xs:sequence> 29 </xs:sequence>
30 <xs:attribute name="interface" type="xs:string" use="required"/> 30 <xs:attribute name="interface" type="xs:string" use="required"/>
31 <xs:attribute name="projectReturn" use="required" type="xs:string"/> 31 <xs:attribute name="projectReturn" type="xs:string" use="required"/>
32 <xs:attribute name="randomiseOrder" type="xs:boolean" default="false"/> 32 <xs:attribute name="randomiseOrder" type="xs:boolean" default="false"/>
33 <xs:attribute name="testPages" type="xs:nonNegativeInteger" default="0"/> 33 <xs:attribute name="testPages" type="xs:nonNegativeInteger" default="0"/>
34 <xs:attribute name="loudness" type="xs:nonPositiveInteger" use="optional"/> 34 <xs:attribute name="loudness" type="xs:nonPositiveInteger" use="optional"/>
35 <xs:attribute name="sampleRate" type="xs:positiveInteger" use="optional"/> 35 <xs:attribute name="sampleRate" type="xs:positiveInteger" use="optional"/>
36 </xs:complexType> 36 </xs:complexType>
45 <xs:element ref="audioelement" minOccurs="1" maxOccurs="unbounded"/> 45 <xs:element ref="audioelement" minOccurs="1" maxOccurs="unbounded"/>
46 <xs:element ref="commentquestion" minOccurs="0" maxOccurs="unbounded"/> 46 <xs:element ref="commentquestion" minOccurs="0" maxOccurs="unbounded"/>
47 <xs:element ref="survey" minOccurs="0" maxOccurs="2"/> 47 <xs:element ref="survey" minOccurs="0" maxOccurs="2"/>
48 </xs:sequence> 48 </xs:sequence>
49 <xs:attribute ref="id" use="required"/> 49 <xs:attribute ref="id" use="required"/>
50 <xs:attribute name="hostURL" type="xs:anyURI" use="required"/> 50 <xs:attribute name="hostURL" type="xs:anyURI"/>
51 <xs:attribute name="randomiseOrder" type="xs:boolean" default="false"/> 51 <xs:attribute name="randomiseOrder" type="xs:boolean" default="false"/>
52 <xs:attribute name="repeatCount" type="xs:nonNegativeInteger" default="0"/> 52 <xs:attribute name="repeatCount" type="xs:nonNegativeInteger" default="0"/>
53 <xs:attribute name="loop" type="xs:boolean" default="false"/> 53 <xs:attribute name="loop" type="xs:boolean" default="false"/>
54 <xs:attribute name="showElementComments" type="xs:boolean" default="false"/> 54 <xs:attribute name="showElementComments" type="xs:boolean" default="false"/>
55 <xs:attribute name="loudness" type="xs:nonPositiveInteger" use="optional"/> 55 <xs:attribute name="loudness" type="xs:nonPositiveInteger" use="optional"/>
114 <xs:element name="audioelement"> 114 <xs:element name="audioelement">
115 <xs:complexType> 115 <xs:complexType>
116 <xs:attribute ref="id" use="required"/> 116 <xs:attribute ref="id" use="required"/>
117 <xs:attribute name="url" type="xs:anyURI" use="required"/> 117 <xs:attribute name="url" type="xs:anyURI" use="required"/>
118 <xs:attribute name="gain" type="xs:decimal" default="0"/> 118 <xs:attribute name="gain" type="xs:decimal" default="0"/>
119 <xs:attribute name="type"> 119 <xs:attribute name="type" default="normal">
120 <xs:simpleType> 120 <xs:simpleType>
121 <xs:restriction base="xs:string"> 121 <xs:restriction base="xs:string">
122 <xs:enumeration value="normal"/> 122 <xs:enumeration value="normal"/>
123 <xs:enumeration value="anchor"/> 123 <xs:enumeration value="anchor"/>
124 <xs:enumeration value="reference"/> 124 <xs:enumeration value="reference"/>