Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison schemas/race.xsd @ 275:10fb73206bd2
Re #296: Fix handling of equipment slot with no limit
* Take the easy way out - slots are to limit things and the code never worked without a limit before, even if the file validated, so just require a limit
Also:
* Arbitrary line ending clean-up from using Geany
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 04 Jul 2010 13:52:26 +0000 |
parents | 3157ac054461 |
children | 937cb8d92aa8 |
comparison
equal
deleted
inserted
replaced
274:4ef761279ea2 | 275:10fb73206bd2 |
---|---|
51 </xs:sequence> | 51 </xs:sequence> |
52 <xs:attribute name="id" type="xs:string" use="required"/> | 52 <xs:attribute name="id" type="xs:string" use="required"/> |
53 <xs:attribute name="name" type="xs:string" use="required"/> | 53 <xs:attribute name="name" type="xs:string" use="required"/> |
54 <xs:anyAttribute processContents="lax"/> | 54 <xs:anyAttribute processContents="lax"/> |
55 </xs:complexType> | 55 </xs:complexType> |
56 </xs:element> | 56 </xs:element> |
57 </xs:sequence> | 57 </xs:sequence> |
58 </xs:complexType> | 58 </xs:complexType> |
59 </xs:element> | 59 </xs:element> |
60 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> | 60 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> |
61 </xs:sequence> | 61 </xs:sequence> |
94 <xs:field xpath="@containedID"/> | 94 <xs:field xpath="@containedID"/> |
95 </xs:keyref> | 95 </xs:keyref> |
96 <xs:key name="unitKey"> | 96 <xs:key name="unitKey"> |
97 <xs:selector xpath="race:units/race:unit"/> | 97 <xs:selector xpath="race:units/race:unit"/> |
98 <xs:field xpath="@id"/> | 98 <xs:field xpath="@id"/> |
99 </xs:key> | 99 </xs:key> |
100 </xs:element> | 100 </xs:element> |
101 | 101 |
102 <!--Reusable complex types --> | 102 <!--Reusable complex types --> |
103 <xs:complexType name="unit"> | 103 <xs:complexType name="unit"> |
104 <xs:sequence> | 104 <xs:sequence> |
107 <xs:complexType> | 107 <xs:complexType> |
108 <xs:sequence> | 108 <xs:sequence> |
109 <xs:element name="equipmentSlot" maxOccurs="unbounded"> | 109 <xs:element name="equipmentSlot" maxOccurs="unbounded"> |
110 <xs:complexType> | 110 <xs:complexType> |
111 <xs:sequence> | 111 <xs:sequence> |
112 <xs:element name="maxLimit" minOccurs="0" type="core:limit" /> | 112 <xs:element name="maxLimit" type="core:limit" /> |
113 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> | 113 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> |
114 </xs:sequence> | 114 </xs:sequence> |
115 <xs:attribute name="name" type="xs:string" use="required"/> | 115 <xs:attribute name="name" type="xs:string" use="required"/> |
116 <xs:anyAttribute processContents="lax"/> | 116 <xs:anyAttribute processContents="lax"/> |
117 </xs:complexType> | 117 </xs:complexType> |
118 </xs:element> | 118 </xs:element> |
212 <xs:anyAttribute processContents="lax"/> | 212 <xs:anyAttribute processContents="lax"/> |
213 </xs:complexType> | 213 </xs:complexType> |
214 <xs:key name="extraDataKey"> | 214 <xs:key name="extraDataKey"> |
215 <xs:selector xpath="race:data"/> | 215 <xs:selector xpath="race:data"/> |
216 <xs:field xpath="@id"/> | 216 <xs:field xpath="@id"/> |
217 </xs:key> | 217 </xs:key> |
218 </xs:element> | 218 </xs:element> |
219 <xs:element name="unitMembers" minOccurs="0"> | 219 <xs:element name="unitMembers" minOccurs="0"> |
220 <xs:complexType> | 220 <xs:complexType> |
221 <xs:sequence> | 221 <xs:sequence> |
222 <xs:element name="unitMember" maxOccurs="unbounded"> | 222 <xs:element name="unitMember" maxOccurs="unbounded"> |
223 <xs:complexType> | 223 <xs:complexType> |
224 <xs:sequence> | 224 <xs:sequence> |
225 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> | 225 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> |
226 </xs:sequence> | 226 </xs:sequence> |
227 <xs:attribute name="typeID" type="xs:string" use="required"/> | 227 <xs:attribute name="typeID" type="xs:string" use="required"/> |
228 <xs:anyAttribute processContents="lax"/> | 228 <xs:anyAttribute processContents="lax"/> |
229 </xs:complexType> | 229 </xs:complexType> |
230 </xs:element> | 230 </xs:element> |
231 </xs:sequence> | 231 </xs:sequence> |
232 </xs:complexType> | 232 </xs:complexType> |
233 </xs:element> | 233 </xs:element> |
238 <xs:complexType> | 238 <xs:complexType> |
239 <xs:sequence> | 239 <xs:sequence> |
240 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> | 240 <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> |
241 </xs:sequence> | 241 </xs:sequence> |
242 <xs:attribute name="catID" type="xs:string" use="required"/> | 242 <xs:attribute name="catID" type="xs:string" use="required"/> |
243 <xs:anyAttribute processContents="lax"/> | 243 <xs:anyAttribute processContents="lax"/> |
244 </xs:complexType> | 244 </xs:complexType> |
245 </xs:element> | 245 </xs:element> |
246 </xs:sequence> | 246 </xs:sequence> |
247 </xs:complexType> | 247 </xs:complexType> |
248 </xs:element> | 248 </xs:element> |