Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison dtds/system.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 | c1caf467dd40 |
comparison
equal
deleted
inserted
replaced
159:7b98e71b8511 | 160:41b927998a41 |
---|---|
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:all> |
7 <xs:element name="categories" type="cats:categoriestype" minOccurs="1"/> | 7 <xs:element name="categories" type="cats:categoriestype"/> |
8 <xs:element name="sysStatsList" minOccurs="1"> | 8 <xs:element name="sysStatsList"> |
9 <xs:complexType> | 9 <xs:complexType> |
10 <xs:sequence> | 10 <xs:sequence> |
11 <xs:element name="sysStats" minOccurs="1" maxOccurs="unbounded"> | 11 <xs:element name="sysStats" maxOccurs="unbounded"> |
12 <xs:complexType> | 12 <xs:complexType> |
13 <xs:sequence> | 13 <xs:sequence> |
14 <xs:element name="sysStat" minOccurs="1" maxOccurs="unbounded"> | 14 <xs:element name="sysStat" maxOccurs="unbounded"> |
15 <xs:complexType> | 15 <xs:complexType> |
16 <xs:attribute name="name" type="xs:string" use="required"/> | 16 <xs:attribute name="name" type="xs:string" use="required"/> |
17 <xs:anyAttribute/> | 17 <xs:anyAttribute/> |
18 </xs:complexType> | 18 </xs:complexType> |
19 </xs:element> | 19 </xs:element> |
25 </xs:sequence> | 25 </xs:sequence> |
26 <xs:attribute name="defaultStats" type="xs:IDREF" /> | 26 <xs:attribute name="defaultStats" type="xs:IDREF" /> |
27 <xs:anyAttribute/> | 27 <xs:anyAttribute/> |
28 </xs:complexType> | 28 </xs:complexType> |
29 </xs:element> | 29 </xs:element> |
30 <xs:any minOccurs="0" /> | 30 <xs:element ref="core:extension" minOccurs="0" /> |
31 </xs:all> | 31 </xs:all> |
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"/> |