Mercurial > repos > IBBoard.WarFoundry.API
annotate dtds/army.xsd @ 184:cedf8bba1d52
Re #198: Add equipment slots
* Alter handling of setting one limit and other limit matching by checking on Get instead of Set
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 27 Oct 2009 20:09:40 +0000 |
parents | 41b927998a41 |
children |
rev | line source |
---|---|
36 | 1 <?xml version="1.0"?> |
72
e7a6f460be57
Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
60
diff
changeset
|
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/warfoundry/army" xmlns="http://ibboard.co.uk/warfoundry/army" xmlns:core="http://ibboard.co.uk/warfoundry/core" elementFormDefault="qualified"> |
36 | 3 <xs:element name="army"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
4 <xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
5 <xs:all> |
160
41b927998a41
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
159
diff
changeset
|
6 <xs:element name="units"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
7 <xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
8 <xs:sequence> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
9 <xs:element name="unit" minOccurs="0" maxOccurs="unbounded"> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
10 <xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
11 <xs:all> |
160
41b927998a41
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
159
diff
changeset
|
12 <xs:element name="equipment" minOccurs="0"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
13 <xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
14 <xs:sequence> |
160
41b927998a41
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
159
diff
changeset
|
15 <xs:element name="equipItem" maxOccurs="unbounded"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
16 <xs:complexType> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
17 <xs:sequence> |
160
41b927998a41
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
159
diff
changeset
|
18 <xs:element ref="core:extension" minOccurs="0" /> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
19 </xs:sequence> |
160
41b927998a41
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
159
diff
changeset
|
20 <xs:attribute name="id" type="xs:string" /> |
41b927998a41
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
159
diff
changeset
|
21 <xs:attribute name="amount" type="core:nonNegativeOrInfiniteIntegerOrPercentage" use="required"/> |
108 | 22 <xs:attribute name="amountType" type="equipmentAmountType" default="ratio"/> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
23 <xs:attribute name="isCustomEquipment" type="xs:boolean" default="false"/> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
24 <xs:anyAttribute/> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
25 </xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
26 </xs:element> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
27 </xs:sequence> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
28 </xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
29 </xs:element> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
30 <xs:element name="contains" minOccurs="0"> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
31 <xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
32 <xs:sequence> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
33 <xs:element name="containedUnit"> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
34 <xs:complexType> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
35 <xs:sequence> |
160
41b927998a41
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
159
diff
changeset
|
36 <xs:element ref="core:extension" minOccurs="0" /> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
37 </xs:sequence> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
38 <xs:attribute name="containedID" type="xs:IDREF" use="required"/> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
39 <xs:anyAttribute/> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
40 </xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
41 </xs:element> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
42 </xs:sequence> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
43 </xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
44 </xs:element> |
160
41b927998a41
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
159
diff
changeset
|
45 <xs:element ref="core:extension" minOccurs="0" /> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
46 </xs:all> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
47 <xs:attribute name="id" type="xs:ID" /> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
48 <xs:attribute name="unitType" type="xs:string" use="required"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
49 <xs:attribute name="unitName" type="xs:string" use="required"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
50 <xs:attribute name="size" type="xs:positiveInteger" use="required"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
51 <xs:attribute name="race" type="xs:string" default=""/> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
52 <xs:anyAttribute/> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
53 </xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
54 </xs:element> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
55 </xs:sequence> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
56 </xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
57 </xs:element> |
112
863518044d38
Re #54: Add Army support to WarFoundryFactory
IBBoard <dev@ibboard.co.uk>
parents:
108
diff
changeset
|
58 <xs:element name="customEquipment" minOccurs="0"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
59 <xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
60 <xs:sequence> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
61 <xs:element name="customEquip" minOccurs="0" maxOccurs="unbounded"> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
62 <xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
63 <xs:sequence> |
160
41b927998a41
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
159
diff
changeset
|
64 <xs:element name="customEquipPart" maxOccurs="unbounded"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
65 <xs:complexType> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
66 <xs:sequence> |
160
41b927998a41
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
159
diff
changeset
|
67 <xs:element ref="core:extension" minOccurs="0" /> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
68 </xs:sequence> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
69 <xs:attribute name="partIDRef" type="xs:string" /> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
70 <xs:anyAttribute/> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
71 </xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
72 </xs:element> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
73 </xs:sequence> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
74 <xs:attribute name="id" type="xs:ID" /> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
75 <xs:anyAttribute/> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
76 </xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
77 </xs:element> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
78 </xs:sequence> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
79 </xs:complexType> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
80 </xs:element> |
160
41b927998a41
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
159
diff
changeset
|
81 <xs:element ref="core:extension" minOccurs="0" /> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
82 </xs:all> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
83 <xs:attribute name="id" type="xs:ID" /> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
84 <xs:attribute name="name" type="xs:string" use="required"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
85 <xs:attribute name="system" type="xs:string" use="required"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
86 <xs:attribute name="race" type="xs:string" use="required"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
87 <xs:attribute name="maxPoints" type="xs:positiveInteger" use="required"/> |
159
7b98e71b8511
Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
112
diff
changeset
|
88 <xs:anyAttribute/> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
72
diff
changeset
|
89 </xs:complexType> |
36 | 90 </xs:element> |
108 | 91 <xs:simpleType name="equipmentAmountType"> |
92 <xs:restriction base="xs:string"> | |
93 <xs:enumeration value="ratio"/> | |
94 <xs:enumeration value="fixed"/> | |
95 </xs:restriction> | |
96 </xs:simpleType> | |
36 | 97 </xs:schema> |