comparison 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
comparison
equal deleted inserted replaced
238:d1068f4b6d1c 239:7c14537d4a23
1 <?xml version="1.0"?> 1 <?xml version="1.0"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:core="http://ibboard.co.uk/warfoundry/core" xmlns:cats="http://ibboard.co.uk/warfoundry/cats" 2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:core="http://ibboard.co.uk/warfoundry/core" xmlns:cats="http://ibboard.co.uk/warfoundry/cats"
3 targetNamespace="http://ibboard.co.uk/warfoundry/system" xmlns="http://ibboard.co.uk/warfoundry/system" elementFormDefault="qualified"> 3 targetNamespace="http://ibboard.co.uk/warfoundry/system" xmlns="http://ibboard.co.uk/warfoundry/system" elementFormDefault="qualified">
4 <xs:element name="system"> 4 <xs:element name="system">
5 <xs:complexType> 5 <xs:complexType>
6 <xs:all> 6 <xs:sequence>
7 <xs:element name="categories" type="cats:categoriestype"/> 7 <xs:element name="categories" type="cats:categoriestype"/>
8 <xs:element name="sysStatsList"> 8 <xs:element name="sysStatsList">
9 <xs:complexType> 9 <xs:complexType>
10 <xs:sequence> 10 <xs:sequence>
11 <xs:element name="sysStats" maxOccurs="unbounded"> 11 <xs:element name="sysStats" maxOccurs="unbounded">
25 </xs:sequence> 25 </xs:sequence>
26 <xs:attribute name="defaultStats" type="xs:IDREF" use="required" /> 26 <xs:attribute name="defaultStats" type="xs:IDREF" use="required" />
27 <xs:anyAttribute/> 27 <xs:anyAttribute/>
28 </xs:complexType> 28 </xs:complexType>
29 </xs:element> 29 </xs:element>
30 <xs:element ref="core:extension" minOccurs="0" /> 30 <xs:any minOccurs="0" maxOccurs="unbounded"/>
31 </xs:all> 31 </xs:sequence>
32 <xs:attribute name="id" type="xs:ID" /> 32 <xs:attribute name="id" type="xs:ID" />
33 <xs:attribute name="name" type="xs:string" use="required"/> 33 <xs:attribute name="name" type="xs:string" use="required"/>
34 <xs:attribute name="warn" type="xs:boolean" default="false"/> 34 <xs:attribute name="warn" type="xs:boolean" default="false"/>
35 <xs:attribute name="allowAllies" type="xs:boolean" default="true"/> 35 <xs:attribute name="allowAllies" type="xs:boolean" default="true"/>
36 <xs:anyAttribute/> 36 <xs:anyAttribute/>