Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison schemas/race.xsd @ 272:166d01079acf
Re #290: Migrate to using key/keyref definitions instead of ID/IDREF type
* Make extraData use local keys instead of global IDs
* Change army to using a string, since we don't care what it is
Also:
* Implement loading of extra data so we can test it is loaded
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 19 Jun 2010 15:50:05 +0000 |
parents | da286069b9c6 |
children | 3157ac054461 |
comparison
equal
deleted
inserted
replaced
271:da286069b9c6 | 272:166d01079acf |
---|---|
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> |
62 <xs:attribute name="id" type="xs:ID" /> | 62 <xs:attribute name="id" type="xs:string" use="required" /> |
63 <xs:attribute name="subid" type="xs:string" default=""/> | 63 <xs:attribute name="subid" type="xs:string" default=""/> |
64 <xs:attribute name="name" type="xs:string" use="required"/> | 64 <xs:attribute name="name" type="xs:string" use="required"/> |
65 <xs:attribute name="system" type="xs:string" use="required"/> | 65 <xs:attribute name="system" type="xs:string" use="required"/> |
66 <xs:anyAttribute processContents="lax"/> | 66 <xs:anyAttribute processContents="lax"/> |
67 </xs:complexType> | 67 </xs:complexType> |
209 </xs:complexType> | 209 </xs:complexType> |
210 </xs:element> | 210 </xs:element> |
211 </xs:sequence> | 211 </xs:sequence> |
212 <xs:anyAttribute processContents="lax"/> | 212 <xs:anyAttribute processContents="lax"/> |
213 </xs:complexType> | 213 </xs:complexType> |
214 <xs:key name="extraDataKey"> | |
215 <xs:selector xpath="race:data"/> | |
216 <xs:field xpath="@id"/> | |
217 </xs:key> | |
214 </xs:element> | 218 </xs:element> |
215 <xs:element name="unitMembers" minOccurs="0"> | 219 <xs:element name="unitMembers" minOccurs="0"> |
216 <xs:complexType> | 220 <xs:complexType> |
217 <xs:sequence> | 221 <xs:sequence> |
218 <xs:element name="unitMember" maxOccurs="unbounded"> | 222 <xs:element name="unitMember" maxOccurs="unbounded"> |