comparison xml/test-schema.xsd @ 2774:2fc62a50d593

#145. Added minWait to all <surveyx> elements. Specify the amount of time to wait in seconds.
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Fri, 21 Apr 2017 14:03:51 +0100
parents 4c76b5e8874b
children 72604c3a3ed9
comparison
equal deleted inserted replaced
2773:e31b3e1716f1 2774:2fc62a50d593
26 </xs:restriction> 26 </xs:restriction>
27 </xs:simpleType> 27 </xs:simpleType>
28 </xs:attribute> 28 </xs:attribute>
29 29
30 <xs:attribute name="playOne" type="xs:boolean" default="false" /> 30 <xs:attribute name="playOne" type="xs:boolean" default="false" />
31
32 <xs:attribute name="minWait" type="xs:nonNegativeInteger" default="0" />
31 33
32 <!-- define complex elements--> 34 <!-- define complex elements-->
33 <xs:element name="waet"> 35 <xs:element name="waet">
34 <xs:complexType> 36 <xs:complexType>
35 <xs:sequence> 37 <xs:sequence>
330 <xs:element ref="conditional" minOccurs="0" maxOccurs="unbounded" /> 332 <xs:element ref="conditional" minOccurs="0" maxOccurs="unbounded" />
331 </xs:sequence> 333 </xs:sequence>
332 <xs:attribute ref="id" use="required" /> 334 <xs:attribute ref="id" use="required" />
333 <xs:attribute ref="name" /> 335 <xs:attribute ref="name" />
334 <xs:attribute ref="mandatory" /> 336 <xs:attribute ref="mandatory" />
337 <xs:attribute ref="minWait" />
335 <xs:attribute name="boxsize" default="normal"> 338 <xs:attribute name="boxsize" default="normal">
336 <xs:simpleType> 339 <xs:simpleType>
337 <xs:restriction base="xs:string"> 340 <xs:restriction base="xs:string">
338 <xs:enumeration value="normal" /> 341 <xs:enumeration value="normal" />
339 <xs:enumeration value="large" /> 342 <xs:enumeration value="large" />
363 <xs:attribute ref="id" use="required" /> 366 <xs:attribute ref="id" use="required" />
364 <xs:attribute ref="name" /> 367 <xs:attribute ref="name" />
365 <xs:attribute ref="mandatory" /> 368 <xs:attribute ref="mandatory" />
366 <xs:attribute name="min" type="xs:decimal" /> 369 <xs:attribute name="min" type="xs:decimal" />
367 <xs:attribute name="max" type="xs:decimal" /> 370 <xs:attribute name="max" type="xs:decimal" />
371 <xs:attribute ref="minWait" />
368 </xs:complexType> 372 </xs:complexType>
369 </xs:element> 373 </xs:element>
370 374
371 <xs:element name="surveycheckbox"> 375 <xs:element name="surveycheckbox">
372 <xs:complexType> 376 <xs:complexType>
384 <xs:element ref="conditional" minOccurs="0" maxOccurs="unbounded" /> 388 <xs:element ref="conditional" minOccurs="0" maxOccurs="unbounded" />
385 </xs:sequence> 389 </xs:sequence>
386 <xs:attribute ref="id" use="required" /> 390 <xs:attribute ref="id" use="required" />
387 <xs:attribute ref="name" /> 391 <xs:attribute ref="name" />
388 <xs:attribute ref="mandatory" /> 392 <xs:attribute ref="mandatory" />
393 <xs:attribute ref="minWait" />
389 <xs:attribute name="min" type="xs:decimal" /> 394 <xs:attribute name="min" type="xs:decimal" />
390 <xs:attribute name="max" type="xs:decimal" /> 395 <xs:attribute name="max" type="xs:decimal" />
391 </xs:complexType> 396 </xs:complexType>
392 </xs:element> 397 </xs:element>
393 398
407 <xs:element ref="conditional" minOccurs="0" maxOccurs="unbounded" /> 412 <xs:element ref="conditional" minOccurs="0" maxOccurs="unbounded" />
408 </xs:sequence> 413 </xs:sequence>
409 <xs:attribute ref="id" use="required" /> 414 <xs:attribute ref="id" use="required" />
410 <xs:attribute ref="name" /> 415 <xs:attribute ref="name" />
411 <xs:attribute ref="mandatory" /> 416 <xs:attribute ref="mandatory" />
417 <xs:attribute ref="minWait" />
412 <xs:attribute name="min" type="xs:decimal" /> 418 <xs:attribute name="min" type="xs:decimal" />
413 <xs:attribute name="max" type="xs:decimal" /> 419 <xs:attribute name="max" type="xs:decimal" />
414 </xs:complexType> 420 </xs:complexType>
415 </xs:element> 421 </xs:element>
416 422
422 <xs:element name="maxText" minOccurs="0" maxOccurs="1" type="xs:string" /> 428 <xs:element name="maxText" minOccurs="0" maxOccurs="1" type="xs:string" />
423 <xs:element ref="conditional" minOccurs="0" maxOccurs="unbounded" /> 429 <xs:element ref="conditional" minOccurs="0" maxOccurs="unbounded" />
424 </xs:sequence> 430 </xs:sequence>
425 <xs:attribute ref="id" use="required" /> 431 <xs:attribute ref="id" use="required" />
426 <xs:attribute ref="name" /> 432 <xs:attribute ref="name" />
433 <xs:attribute ref="minWait" />
427 <xs:attribute name="min" use="required" type="xs:decimal" /> 434 <xs:attribute name="min" use="required" type="xs:decimal" />
428 <xs:attribute name="max" use="required" type="xs:decimal" /> 435 <xs:attribute name="max" use="required" type="xs:decimal" />
429 </xs:complexType> 436 </xs:complexType>
430 </xs:element> 437 </xs:element>
431 438
433 <xs:complexType> 440 <xs:complexType>
434 <xs:sequence> 441 <xs:sequence>
435 <xs:element ref="statement" minOccurs="1" maxOccurs="1" /> 442 <xs:element ref="statement" minOccurs="1" maxOccurs="1" />
436 </xs:sequence> 443 </xs:sequence>
437 <xs:attribute ref="id" use="required" /> 444 <xs:attribute ref="id" use="required" />
445 <xs:attribute ref="minWait" />
438 <xs:attribute name="url" use="required" type="xs:string" /> 446 <xs:attribute name="url" use="required" type="xs:string" />
439 </xs:complexType> 447 </xs:complexType>
440 </xs:element> 448 </xs:element>
441 449
442 <xs:element name="surveyyoutube"> 450 <xs:element name="surveyyoutube">
443 <xs:complexType> 451 <xs:complexType>
444 <xs:sequence> 452 <xs:sequence>
445 <xs:element ref="statement" minOccurs="1" maxOccurs="1" /> 453 <xs:element ref="statement" minOccurs="1" maxOccurs="1" />
446 </xs:sequence> 454 </xs:sequence>
447 <xs:attribute ref="id" use="required" /> 455 <xs:attribute ref="id" use="required" />
456 <xs:attribute ref="minWait" />
448 <xs:attribute name="url" use="required" type="xs:string" /> 457 <xs:attribute name="url" use="required" type="xs:string" />
449 </xs:complexType> 458 </xs:complexType>
450 </xs:element> 459 </xs:element>
451 460
452 <xs:element name="survey"> 461 <xs:element name="survey">