comparison xml/test-schema.xsd @ 2579:d83b38564fbb

#137. Modified <commentquestion> nodes in pages to have a proper list structure. Differently labelled nodes depending on type <commentquestion>, <commentradio>. Added slider and converted project.xml to match new specifications. AB_example.xml shows new slider type
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Sun, 30 Oct 2016 13:57:37 +0000
parents 2728c31f80cd
children a6b32c473577
comparison
equal deleted inserted replaced
2578:bf17cc19c1c0 2579:d83b38564fbb
73 <xs:sequence> 73 <xs:sequence>
74 <xs:element ref="title" minOccurs="0" maxOccurs="1" /> 74 <xs:element ref="title" minOccurs="0" maxOccurs="1" />
75 <xs:element name="commentboxprefix" type="xs:string" minOccurs="0" maxOccurs="1" /> 75 <xs:element name="commentboxprefix" type="xs:string" minOccurs="0" maxOccurs="1" />
76 <xs:element ref="interface" minOccurs="1" maxOccurs="unbounded" /> 76 <xs:element ref="interface" minOccurs="1" maxOccurs="unbounded" />
77 <xs:element ref="audioelement" minOccurs="1" maxOccurs="unbounded" /> 77 <xs:element ref="audioelement" minOccurs="1" maxOccurs="unbounded" />
78 <xs:element ref="commentquestion" minOccurs="0" maxOccurs="unbounded" /> 78 <xs:element ref="commentquestions" minOccurs="0" maxOccurs="1" />
79 <xs:element ref="survey" minOccurs="0" maxOccurs="2" /> 79 <xs:element ref="survey" minOccurs="0" maxOccurs="2" />
80 </xs:sequence> 80 </xs:sequence>
81 <xs:attribute ref="id" use="required" /> 81 <xs:attribute ref="id" use="required" />
82 <xs:attribute name="hostURL" type="xs:anyURI" default="" /> 82 <xs:attribute name="hostURL" type="xs:anyURI" default="" />
83 <xs:attribute name="randomiseOrder" type="xs:boolean" default="false" /> 83 <xs:attribute name="randomiseOrder" type="xs:boolean" default="false" />
204 </xs:simpleType> 204 </xs:simpleType>
205 </xs:attribute> 205 </xs:attribute>
206 </xs:complexType> 206 </xs:complexType>
207 </xs:element> 207 </xs:element>
208 208
209 <xs:element name="commentquestion"> 209 <xs:element name="commentquestions">
210 <xs:complexType> 210 <xs:complexType>
211 <xs:sequence> 211 <xs:choice maxOccurs="unbounded">
212 <xs:element ref="statement" minOccurs="0" maxOccurs="1" /> 212 <xs:element name="commentquestion" maxOccurs="unbounded" />
213 <xs:element name="commentradio" maxOccurs="unbounded" />
214 <xs:element name="commentcheckbox" maxOccurs="unbounded" />
215 <xs:element name="commentslider" maxOccurs="unbounded" />
216 </xs:choice>
217 </xs:complexType>
218 </xs:element>
219
220 <xs:element name="commentradio">
221 <xs:complexType>
222 <xs:sequence>
223 <xs:element ref="statement" minOccurs="1" maxOccurs="1" />
213 <xs:element name="option" minOccurs="0" maxOccurs="unbounded"> 224 <xs:element name="option" minOccurs="0" maxOccurs="unbounded">
214 <xs:complexType> 225 <xs:complexType>
215 <xs:simpleContent> 226 <xs:simpleContent>
216 <xs:extension base="xs:string"> 227 <xs:extension base="xs:string">
217 <xs:attribute ref="name" /> 228 <xs:attribute ref="name" />
220 </xs:complexType> 231 </xs:complexType>
221 </xs:element> 232 </xs:element>
222 </xs:sequence> 233 </xs:sequence>
223 <xs:attribute ref="id" use="optional" /> 234 <xs:attribute ref="id" use="optional" />
224 <xs:attribute ref="name" use="optional" /> 235 <xs:attribute ref="name" use="optional" />
225 <xs:attribute name="type" default="question"> 236 </xs:complexType>
226 <xs:simpleType> 237 </xs:element>
227 <xs:restriction base="xs:string"> 238
228 <xs:enumeration value="question" /> 239 <xs:element name="commentcheckbox">
229 <xs:enumeration value="radio" /> 240 <xs:complexType>
230 <xs:enumeration value="checkbox" /> 241 <xs:sequence>
231 </xs:restriction> 242 <xs:element ref="statement" minOccurs="1" maxOccurs="1" />
232 </xs:simpleType> 243 <xs:element name="option" minOccurs="0" maxOccurs="unbounded">
233 </xs:attribute> 244 <xs:complexType>
245 <xs:simpleContent>
246 <xs:extension base="xs:string">
247 <xs:attribute ref="name" />
248 </xs:extension>
249 </xs:simpleContent>
250 </xs:complexType>
251 </xs:element>
252 </xs:sequence>
253 <xs:attribute ref="id" use="optional" />
254 <xs:attribute ref="name" use="optional" />
255 </xs:complexType>
256 </xs:element>
257
258 <xs:element name="commentquestion">
259 <xs:complexType>
260 <xs:sequence>
261 <xs:element ref="statement" minOccurs="1" maxOccurs="1" />
262 </xs:sequence>
263 <xs:attribute ref="id" use="optional" />
264 <xs:attribute ref="name" use="optional" />
265 </xs:complexType>
266 </xs:element>
267
268 <xs:element name="commentslider">
269 <xs:complexType>
270 <xs:sequence>
271 <xs:element ref="statement" minOccurs="1" maxOccurs="1" />
272 </xs:sequence>
273 <xs:attribute ref="id" use="optional" />
274 <xs:attribute ref="name" use="optional" />
275 <xs:attribute name="min" type="xs:decimal" use="required" />
276 <xs:attribute name="max" type="xs:decimal" use="required" />
277 <xs:attribute name="step" type="xs:decimal" use="optional" default="1" />
278 <xs:attribute name="value" type="xs:decimal" use="optional" />
234 </xs:complexType> 279 </xs:complexType>
235 </xs:element> 280 </xs:element>
236 281
237 <xs:element name="survey"> 282 <xs:element name="survey">
238 <xs:complexType> 283 <xs:complexType>