diff test-schema.xsd @ 1172:e3b16bb23a50

randomiseOrder a global function. Schema update (hostURL attribute on <pages> not mandatory). Specification node can create XML.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Wed, 10 Feb 2016 14:46:57 +0000
parents c0022a09c4f6
children b0340a2f64f2
line wrap: on
line diff
--- a/test-schema.xsd	Wed Feb 10 12:14:25 2016 +0000
+++ b/test-schema.xsd	Wed Feb 10 14:46:57 2016 +0000
@@ -28,7 +28,7 @@
         <xs:element ref="interface" maxOccurs="1"/>
       </xs:sequence>
       <xs:attribute name="interface" type="xs:string" use="required"/>
-      <xs:attribute name="projectReturn" use="required" type="xs:string"/>
+      <xs:attribute name="projectReturn" type="xs:string" use="required"/>
       <xs:attribute name="randomiseOrder" type="xs:boolean" default="false"/>
       <xs:attribute name="testPages" type="xs:nonNegativeInteger" default="0"/>
       <xs:attribute name="loudness" type="xs:nonPositiveInteger" use="optional"/>
@@ -47,7 +47,7 @@
         <xs:element ref="survey" minOccurs="0" maxOccurs="2"/>
       </xs:sequence>
       <xs:attribute ref="id" use="required"/>
-      <xs:attribute name="hostURL" type="xs:anyURI" use="required"/>
+      <xs:attribute name="hostURL" type="xs:anyURI"/>
       <xs:attribute name="randomiseOrder" type="xs:boolean" default="false"/>
       <xs:attribute name="repeatCount" type="xs:nonNegativeInteger" default="0"/>
       <xs:attribute name="loop" type="xs:boolean" default="false"/>
@@ -116,7 +116,7 @@
       <xs:attribute ref="id" use="required"/>
       <xs:attribute name="url" type="xs:anyURI" use="required"/>
       <xs:attribute name="gain" type="xs:decimal" default="0"/>
-      <xs:attribute name="type">
+      <xs:attribute name="type" default="normal">
         <xs:simpleType>
           <xs:restriction base="xs:string">
             <xs:enumeration value="normal"/>