diff schemas/system.xsd @ 239:7c14537d4a23

Re #152: Test and fix extensibility of current schemas * Split out some reusable parts of Race schema * Replace use of "xs:all" with "xs:sequence" * Replace use of "core:extension" with standard "xs:any" * Start to use xs:key and xs:keyref to get more built-in validation
author IBBoard <dev@ibboard.co.uk>
date Tue, 23 Feb 2010 21:00:23 +0000
parents f097888efcfe
children 9e4a78464b1a
line wrap: on
line diff
--- a/schemas/system.xsd	Sun Feb 21 20:25:52 2010 +0000
+++ b/schemas/system.xsd	Tue Feb 23 21:00:23 2010 +0000
@@ -3,7 +3,7 @@
 targetNamespace="http://ibboard.co.uk/warfoundry/system" xmlns="http://ibboard.co.uk/warfoundry/system" elementFormDefault="qualified">
 <xs:element name="system">
 	<xs:complexType>
-		<xs:all>
+		<xs:sequence>
 			<xs:element name="categories" type="cats:categoriestype"/>
 			<xs:element name="sysStatsList">
 				<xs:complexType>
@@ -27,8 +27,8 @@
 					<xs:anyAttribute/>
 				</xs:complexType>
 			</xs:element>
-			<xs:element ref="core:extension" minOccurs="0" />
-		</xs:all>
+			<xs:any minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
 		<xs:attribute name="id" type="xs:ID" />
 		<xs:attribute name="name" type="xs:string" use="required"/>
 		<xs:attribute name="warn" type="xs:boolean" default="false"/>