diff dtds/race.xsd @ 160:41b927998a41

Re #152: Test and fix extensibility of current schemas * Fix use of <xs:any> by defining <core:extension> tag * Remove unnecessary min/maxOccurs=1 attributes
author IBBoard <dev@ibboard.co.uk>
date Sun, 04 Oct 2009 10:49:17 +0000
parents 7b98e71b8511
children 71e50c0884a2
line wrap: on
line diff
--- a/dtds/race.xsd	Wed Sep 30 19:08:08 2009 +0000
+++ b/dtds/race.xsd	Sun Oct 04 10:49:17 2009 +0000
@@ -4,16 +4,16 @@
 <xs:element name="race">
 	<xs:complexType>
 		<xs:all>
-			<xs:element name="units" minOccurs="1">
+			<xs:element name="units">
 				<xs:complexType>
 					<xs:sequence>
-						<xs:element name="unit" minOccurs="1" maxOccurs="unbounded">
+						<xs:element name="unit" maxOccurs="unbounded">
 							<xs:complexType>
 								<xs:all>
-									<xs:element name="stats" minOccurs="1">
+									<xs:element name="stats">
 										<xs:complexType>
 											<xs:sequence>
-												<xs:element name="stat" minOccurs="1" maxOccurs="unbounded">
+												<xs:element name="stat" maxOccurs="unbounded">
 													<xs:complexType>
 														<xs:simpleContent>
 															<xs:extension base="xs:string">
@@ -114,7 +114,7 @@
 										</xs:complexType>
 									</xs:element>
 									<xs:element name="notes" type="xs:string" minOccurs="0" />
-									<xs:any minOccurs="0" />
+									<xs:element ref="core:extension" minOccurs="0" />
 								</xs:all>
 								<xs:attribute name="id" type="xs:ID" />
 								<xs:attribute name="typeName" type="xs:string" use="required"/>
@@ -140,7 +140,7 @@
 							<xs:complexType>
 								<xs:all>
 									<xs:element name="description" type="xs:string" minOccurs="0" />
-									<xs:any minOccurs="0" />
+									<xs:element ref="core:extension" minOccurs="0" />
 								</xs:all>
 								<xs:attribute name="id" type="xs:ID" use="required"/>
 								<xs:attribute name="name" type="xs:string" use="required"/>
@@ -160,7 +160,7 @@
 							<xs:complexType>
 								<xs:all>
 									<xs:element name="description" type="xs:string" />
-									<xs:any minOccurs="0" />
+									<xs:element ref="core:extension" minOccurs="0" />
 								</xs:all>
 								<xs:attribute name="id" type="xs:ID" use="required"/>
 								<xs:attribute name="name" type="xs:string" use="required"/>
@@ -171,7 +171,7 @@
 					<xs:anyAttribute/>
 				</xs:complexType>
 			</xs:element>
-			<xs:any minOccurs="0" />
+			<xs:element ref="core:extension" minOccurs="0" />
 		</xs:all>
 		<xs:attribute name="id" type="xs:ID" />
 		<xs:attribute name="subid" type="xs:string" default=""/>