annotate schemas/race.xsd @ 426:61fae5cbba02

Re #338: WarFoundry.API - Save System Data * Fix copy-and-paste errors to pass test
author IBBoard <dev@ibboard.co.uk>
date Fri, 28 Oct 2011 20:52:29 +0100
parents 376da2b24de1
children 2ba1f24eb427
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 <?xml version="1.0"?>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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"
267
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
3 targetNamespace="http://ibboard.co.uk/warfoundry/race" xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:race="http://ibboard.co.uk/warfoundry/race" elementFormDefault="qualified">
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 <xs:element name="race">
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 <xs:complexType>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
6 <xs:sequence>
280
937cb8d92aa8 Re #297: Move Categories over to key/keyref from ID/IDREF
IBBoard <dev@ibboard.co.uk>
parents: 275
diff changeset
7 <xs:element name="categories" type="cats:categoriestype" minOccurs="0">
937cb8d92aa8 Re #297: Move Categories over to key/keyref from ID/IDREF
IBBoard <dev@ibboard.co.uk>
parents: 275
diff changeset
8 <xs:key name="catsKey">
937cb8d92aa8 Re #297: Move Categories over to key/keyref from ID/IDREF
IBBoard <dev@ibboard.co.uk>
parents: 275
diff changeset
9 <xs:selector xpath="cats:cat"/>
937cb8d92aa8 Re #297: Move Categories over to key/keyref from ID/IDREF
IBBoard <dev@ibboard.co.uk>
parents: 275
diff changeset
10 <xs:field xpath="@id"/>
937cb8d92aa8 Re #297: Move Categories over to key/keyref from ID/IDREF
IBBoard <dev@ibboard.co.uk>
parents: 275
diff changeset
11 </xs:key>
937cb8d92aa8 Re #297: Move Categories over to key/keyref from ID/IDREF
IBBoard <dev@ibboard.co.uk>
parents: 275
diff changeset
12 </xs:element>
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 <xs:element name="units">
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 <xs:complexType>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 <xs:sequence>
267
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
16 <xs:element name="unit" maxOccurs="unbounded" type="unit">
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
17 <xs:keyref name="equipSlotRef" refer="equipSlotKey">
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
18 <xs:selector xpath="race:unitEquipment/race:unitEquipmentItem"/>
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
19 <xs:field xpath="@equipmentSlot"/>
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
20 </xs:keyref>
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
21 <xs:key name="equipSlotKey">
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
22 <xs:selector xpath="race:equipmentSlots/race:equipmentSlot"/>
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
23 <xs:field xpath="@name"/>
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
24 </xs:key>
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
25 </xs:element>
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 </xs:sequence>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 </xs:complexType>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 </xs:element>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
29 <xs:element name="equipment" minOccurs="0" type="equipment">
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 </xs:element>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 <xs:element name="abilities" minOccurs="0">
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 <xs:complexType>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 <xs:sequence>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 <xs:element name="ability" maxOccurs="unbounded">
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 <xs:complexType>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
36 <xs:sequence>
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 <xs:element name="description" type="xs:string" />
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
38 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
39 </xs:sequence>
269
51d7b2b26882 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 267
diff changeset
40 <xs:attribute name="id" type="xs:string" use="required"/>
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 <xs:attribute name="name" type="xs:string" use="required"/>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
42 <xs:anyAttribute processContents="lax"/>
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43 </xs:complexType>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 </xs:element>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 </xs:sequence>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
46 <xs:anyAttribute processContents="lax"/>
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 </xs:complexType>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 </xs:element>
252
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
49 <xs:element name="memberTypes" minOccurs="0">
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
50 <xs:complexType>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
51 <xs:sequence>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
52 <xs:element name="memberType" maxOccurs="unbounded">
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
53 <xs:complexType>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
54 <xs:sequence>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
55 <xs:element name="stats" type="stats" minOccurs="0"/>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
56 </xs:sequence>
255
0db25d5d0992 Re #274: crash when missing unitMember id
IBBoard <dev@ibboard.co.uk>
parents: 252
diff changeset
57 <xs:attribute name="id" type="xs:string" use="required"/>
252
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
58 <xs:attribute name="name" type="xs:string" use="required"/>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
59 <xs:anyAttribute processContents="lax"/>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
60 </xs:complexType>
275
10fb73206bd2 Re #296: Fix handling of equipment slot with no limit
IBBoard <dev@ibboard.co.uk>
parents: 273
diff changeset
61 </xs:element>
252
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
62 </xs:sequence>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
63 </xs:complexType>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
64 </xs:element>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
65 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
66 </xs:sequence>
272
166d01079acf Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 271
diff changeset
67 <xs:attribute name="id" type="xs:string" use="required" />
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 <xs:attribute name="subid" type="xs:string" default=""/>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 <xs:attribute name="name" type="xs:string" use="required"/>
384
b21a85c079f5 Re #153: Default name for armies
IBBoard <dev@ibboard.co.uk>
parents: 383
diff changeset
70 <xs:attribute name="defaultArmyName" type="xs:string" default="" />
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71 <xs:attribute name="system" type="xs:string" use="required"/>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
72 <xs:anyAttribute processContents="lax"/>
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73 </xs:complexType>
267
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
74 <xs:keyref name="memberTypeRef" refer="memberTypeKey">
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
75 <xs:selector xpath="race:units/race:unit/race:unitMembers/race:unitMember"/>
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
76 <xs:field xpath="@typeID"/>
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
77 </xs:keyref>
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
78 <xs:key name="memberTypeKey">
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
79 <xs:selector xpath="race:memberTypes/race:memberType"/>
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
80 <xs:field xpath="@id"/>
3f14a792fd41 Re #274: Crash when missing unit member ID
IBBoard <dev@ibboard.co.uk>
parents: 263
diff changeset
81 </xs:key>
269
51d7b2b26882 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 267
diff changeset
82 <xs:keyref name="abilityRef" refer="abilityKey">
51d7b2b26882 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 267
diff changeset
83 <xs:selector xpath="race:units/race:unit/race:unitAbilities/race:unitAbility"/>
51d7b2b26882 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 267
diff changeset
84 <xs:field xpath="@abilityID"/>
51d7b2b26882 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 267
diff changeset
85 </xs:keyref>
51d7b2b26882 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 267
diff changeset
86 <xs:key name="abilityKey">
51d7b2b26882 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 267
diff changeset
87 <xs:selector xpath="race:abilities/race:ability"/>
51d7b2b26882 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 267
diff changeset
88 <xs:field xpath="@id"/>
51d7b2b26882 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 267
diff changeset
89 </xs:key>
270
b1c4241b8a2e Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 269
diff changeset
90 <xs:keyref name="equipmentItemRef" refer="equipmentItemKey">
b1c4241b8a2e Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 269
diff changeset
91 <xs:selector xpath="race:units/race:unit/race:unitEquipment/race:unitEquipmentItem"/>
b1c4241b8a2e Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 269
diff changeset
92 <xs:field xpath="@id"/>
b1c4241b8a2e Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 269
diff changeset
93 </xs:keyref>
b1c4241b8a2e Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 269
diff changeset
94 <xs:key name="equipmentItemKey">
b1c4241b8a2e Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 269
diff changeset
95 <xs:selector xpath="race:equipment/race:equipmentItem"/>
b1c4241b8a2e Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 269
diff changeset
96 <xs:field xpath="@id"/>
b1c4241b8a2e Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 269
diff changeset
97 </xs:key>
271
da286069b9c6 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 270
diff changeset
98 <xs:keyref name="containedUnitRef" refer="unitKey">
da286069b9c6 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 270
diff changeset
99 <xs:selector xpath="race:units/race:unit/race:contains/race:containedUnit"/>
da286069b9c6 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 270
diff changeset
100 <xs:field xpath="@containedID"/>
da286069b9c6 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 270
diff changeset
101 </xs:keyref>
da286069b9c6 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 270
diff changeset
102 <xs:key name="unitKey">
da286069b9c6 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 270
diff changeset
103 <xs:selector xpath="race:units/race:unit"/>
da286069b9c6 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 270
diff changeset
104 <xs:field xpath="@id"/>
275
10fb73206bd2 Re #296: Fix handling of equipment slot with no limit
IBBoard <dev@ibboard.co.uk>
parents: 273
diff changeset
105 </xs:key>
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
106 </xs:element>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
107
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
108 <!--Reusable complex types -->
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
109 <xs:complexType name="unit">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
110 <xs:sequence>
252
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
111 <xs:element name="stats" type="stats" minOccurs="0"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
112 <xs:element name="equipmentSlots" minOccurs="0">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
113 <xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
114 <xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
115 <xs:element name="equipmentSlot" maxOccurs="unbounded">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
116 <xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
117 <xs:sequence>
275
10fb73206bd2 Re #296: Fix handling of equipment slot with no limit
IBBoard <dev@ibboard.co.uk>
parents: 273
diff changeset
118 <xs:element name="maxLimit" type="core:limit" />
10fb73206bd2 Re #296: Fix handling of equipment slot with no limit
IBBoard <dev@ibboard.co.uk>
parents: 273
diff changeset
119 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
120 </xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
121 <xs:attribute name="name" type="xs:string" use="required"/>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
122 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
123 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
124 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
125 </xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
126 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
127 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
128 <xs:element name="unitEquipment" minOccurs="0">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
129 <xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
130 <xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
131 <xs:element name="unitEquipmentItem" maxOccurs="unbounded">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
132 <xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
133 <xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
134 <xs:element name="minLimit" minOccurs="0" type="core:limit" />
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
135 <xs:element name="maxLimit" minOccurs="0" type="core:limit" />
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
136 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
137 </xs:sequence>
270
b1c4241b8a2e Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 269
diff changeset
138 <xs:attribute name="id" type="xs:string" use="required" />
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
139 <xs:attribute name="required" type="xs:boolean" default="false"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
140 <!-- exclusivityGroup is deprecated in favour of the comma-separated exclusivityGroups -->
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
141 <xs:attribute name="exclusivityGroup" type="xs:string" default=""/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
142 <xs:attribute name="exclusivityGroups" type="xs:string" default=""/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
143 <xs:attribute name="equipmentSlot" type="xs:string"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
144 <xs:attribute name="roundDirection" type="core:updowntype" default="up"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
145 <xs:attribute name="costMultiplier" type="core:nonNegativeDouble" default="1"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
146 <xs:attribute name="costRounding" type="costroundingtype" default="UpToHalf"/>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
147 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
148 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
149 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
150 </xs:sequence>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
151 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
152 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
153 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
154 <xs:element name="unitAbilities" minOccurs="0">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
155 <xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
156 <xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
157 <xs:element name="unitAbility" maxOccurs="unbounded">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
158 <xs:complexType>
248
6abf70f31ae4 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 246
diff changeset
159 <xs:sequence>
249
2f8fd45d55e2 Fixes #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 248
diff changeset
160 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
248
6abf70f31ae4 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 246
diff changeset
161 </xs:sequence>
269
51d7b2b26882 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 267
diff changeset
162 <xs:attribute name="abilityID" type="xs:string" />
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
163 <xs:attribute name="required" type="xs:boolean" default="true"/>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
164 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
165 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
166 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
167 </xs:sequence>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
168 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
169 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
170 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
171 <xs:element name="requirements" minOccurs="0">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
172 <xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
173 <xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
174 <xs:element name="requirement">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
175 <xs:complexType>
368
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
176 <xs:sequence>
369
c2bc207a1571 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 368
diff changeset
177 <xs:element name="data" minOccurs="0" maxOccurs="1">
368
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
178 <xs:complexType>
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
179 <xs:simpleContent>
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
180 <xs:extension base="xs:string">
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
181 <xs:anyAttribute processContents="lax"/>
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
182 </xs:extension>
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
183 </xs:simpleContent>
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
184 </xs:complexType>
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
185 </xs:element>
369
c2bc207a1571 Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 368
diff changeset
186 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
368
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
187 </xs:sequence>
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
188 <xs:attribute name="requirementName" type="xs:string" use="required"/>
8cfb1818823d Re #346: Add core schema support for requirements
IBBoard <dev@ibboard.co.uk>
parents: 283
diff changeset
189 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
190 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
191 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
192 </xs:sequence>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
193 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
194 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
195 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
196 <xs:element name="contains" minOccurs="0">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
197 <xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
198 <xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
199 <xs:element name="containedUnit" maxOccurs="unbounded">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
200 <xs:complexType>
248
6abf70f31ae4 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 246
diff changeset
201 <xs:sequence>
249
2f8fd45d55e2 Fixes #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 248
diff changeset
202 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
248
6abf70f31ae4 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 246
diff changeset
203 </xs:sequence>
271
da286069b9c6 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 270
diff changeset
204 <xs:attribute name="containedID" type="xs:string" use="required"/>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
205 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
206 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
207 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
208 </xs:sequence>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
209 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
210 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
211 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
212 <xs:element name="extraData" minOccurs="0">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
213 <xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
214 <xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
215 <xs:element name="data" maxOccurs="unbounded">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
216 <xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
217 <xs:simpleContent>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
218 <xs:extension base="xs:string">
273
3157ac054461 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 272
diff changeset
219 <xs:attribute name="id" type="xs:string" use="required"/>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
220 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
221 </xs:extension>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
222 </xs:simpleContent>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
223 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
224 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
225 </xs:sequence>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
226 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
227 </xs:complexType>
272
166d01079acf Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 271
diff changeset
228 <xs:key name="extraDataKey">
166d01079acf Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 271
diff changeset
229 <xs:selector xpath="race:data"/>
166d01079acf Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 271
diff changeset
230 <xs:field xpath="@id"/>
275
10fb73206bd2 Re #296: Fix handling of equipment slot with no limit
IBBoard <dev@ibboard.co.uk>
parents: 273
diff changeset
231 </xs:key>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
232 </xs:element>
252
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
233 <xs:element name="unitMembers" minOccurs="0">
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
234 <xs:complexType>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
235 <xs:sequence>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
236 <xs:element name="unitMember" maxOccurs="unbounded">
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
237 <xs:complexType>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
238 <xs:sequence>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
239 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
240 </xs:sequence>
255
0db25d5d0992 Re #274: crash when missing unitMember id
IBBoard <dev@ibboard.co.uk>
parents: 252
diff changeset
241 <xs:attribute name="typeID" type="xs:string" use="required"/>
275
10fb73206bd2 Re #296: Fix handling of equipment slot with no limit
IBBoard <dev@ibboard.co.uk>
parents: 273
diff changeset
242 <xs:anyAttribute processContents="lax"/>
252
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
243 </xs:complexType>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
244 </xs:element>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
245 </xs:sequence>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
246 </xs:complexType>
a54da5a8b5bb Re #268: Restructure stats for re-use
IBBoard <dev@ibboard.co.uk>
parents: 249
diff changeset
247 </xs:element>
257
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
248 <xs:element name="unitCategories" minOccurs="0">
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
249 <xs:complexType>
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
250 <xs:sequence>
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
251 <xs:element name="unitCategory" maxOccurs="unbounded">
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
252 <xs:complexType>
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
253 <xs:sequence>
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
254 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
255 </xs:sequence>
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
256 <xs:attribute name="catID" type="xs:string" use="required"/>
275
10fb73206bd2 Re #296: Fix handling of equipment slot with no limit
IBBoard <dev@ibboard.co.uk>
parents: 273
diff changeset
257 <xs:anyAttribute processContents="lax"/>
257
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
258 </xs:complexType>
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
259 </xs:element>
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
260 </xs:sequence>
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
261 </xs:complexType>
435eb28b4549 Re #270: Add multiple categories to API
IBBoard <dev@ibboard.co.uk>
parents: 255
diff changeset
262 </xs:element>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
263 <xs:element name="notes" type="xs:string" minOccurs="0" />
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
264 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
265 </xs:sequence>
271
da286069b9c6 Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 270
diff changeset
266 <xs:attribute name="id" type="xs:string" use="required" />
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
267 <xs:attribute name="typeName" type="xs:string" use="required"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
268 <xs:attribute name="cat" type="xs:string" use="required"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
269 <xs:attribute name="points" type="core:nonNegativeNonInfiniteDouble" use="required"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
270 <xs:attribute name="basePoints" type="core:nonNegativeNonInfiniteDouble" default="0"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
271 <xs:attribute name="baseSize" type="xs:nonNegativeInteger" default="0"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
272 <xs:attribute name="minSize" type="xs:nonNegativeInteger" default="5"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
273 <xs:attribute name="maxSize" type="core:positiveOrInfiniteInteger" default="-1"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
274 <xs:attribute name="minNum" type="xs:nonNegativeInteger" default="0"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
275 <xs:attribute name="maxNum" type="core:positiveOrInfiniteInteger" default="-1"/>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
276 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
277 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
278
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
279 <xs:complexType name="stats">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
280 <xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
281 <xs:element name="stat" maxOccurs="unbounded">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
282 <xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
283 <xs:simpleContent>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
284 <xs:extension base="xs:string">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
285 <xs:attribute name="name" type="xs:string" use="required"/>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
286 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
287 </xs:extension>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
288 </xs:simpleContent>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
289 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
290 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
291 </xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
292 <xs:attribute name="statSet" type="xs:string" default="" />
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
293 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
294 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
295
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
296 <xs:complexType name="equipment">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
297 <xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
298 <xs:element name="equipmentItem" maxOccurs="unbounded">
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
299 <xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
300 <xs:sequence>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
301 <xs:element name="description" type="xs:string" minOccurs="0" />
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
302 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
303 </xs:sequence>
270
b1c4241b8a2e Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
IBBoard <dev@ibboard.co.uk>
parents: 269
diff changeset
304 <xs:attribute name="id" type="xs:string" use="required"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
305 <xs:attribute name="name" type="xs:string" use="required"/>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
306 <xs:attribute name="cost" type="core:nonNegativeNonInfiniteDouble" use="required"/>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
307 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
308 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
309 </xs:element>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
310 </xs:sequence>
244
9e4a78464b1a Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 239
diff changeset
311 <xs:anyAttribute processContents="lax"/>
239
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
312 </xs:complexType>
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
313
7c14537d4a23 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 225
diff changeset
314 <!--Reusable simple types -->
224
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
315 <xs:simpleType name="costroundingtype">
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
316 <xs:restriction base="xs:string">
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
317 <xs:enumeration value="Up"/>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
318 <xs:enumeration value="Down"/>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
319 <xs:enumeration value="Banker"/>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
320 <xs:enumeration value="UpToHalf"/>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
321 <xs:enumeration value="DownToHalf"/>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
322 <xs:enumeration value="BankerToHalf"/>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
323 </xs:restriction>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
324 </xs:simpleType>
f097888efcfe Fixes #233: "unitPoints" attribute is badly named
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
325 </xs:schema>