Mercurial > repos > IBBoard.WarFoundry.API
annotate dtds/race.xsd @ 43:d0812d7de39d
Re #49 - Resolve namespace issues
* Fix up some XPath queries
* Remove one unnecessary namespace
* Check local name of elements, not name (which is qualified)
* Add method to get double value from an attribute including handling INF
* Remove min/max for equipment item as it is now moved to the UnitType's reference to the equipment item
*
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 22 Mar 2009 17:05:01 +0000 |
parents | 3664eee50390 |
children | db951aad24b9 |
rev | line source |
---|---|
21
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
1 <?xml version="1.0"?> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
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" |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
3 targetNamespace="http://ibboard.co.uk/warfoundry/race" xmlns="http://ibboard.co.uk/warfoundry/race" elementFormDefault="qualified"> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
4 <xs:element name="race"> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
5 <xs:complexType> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
6 <xs:all> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
7 <xs:element name="units" type="unitstype" minOccurs="1"/> |
31 | 8 <xs:element name="categories" type="cats:categoriestype" minOccurs="0" /> |
9 <xs:element name="equipment" type="equipmenttype" minOccurs="0" /> | |
10 <xs:element name="abilities" type="abilitiestype" minOccurs="0" /> | |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
11 </xs:all> |
21
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
12 <xs:attribute name="id" type="xs:ID" /> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
13 <xs:attribute name="subid" type="xs:string" default=""/> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
14 <xs:attribute name="name" type="xs:string" use="required"/> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
15 <xs:attribute name="system" type="xs:string" use="required"/> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
16 </xs:complexType> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
17 </xs:element> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
18 <xs:complexType name="unitstype"> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
19 <xs:sequence> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
20 <xs:element name="unit" type="unittype" minOccurs="1" maxOccurs="unbounded"/> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
21 </xs:sequence> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
22 </xs:complexType> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
23 <xs:complexType name="unittype"> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
24 <xs:all> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
25 <xs:element name="stats" type="statstype" minOccurs="1" /> |
21
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
26 <xs:element name="unitEquipment" type="unitequipmenttype" /> |
31 | 27 <xs:element name="unitAbilities" type="unitabilitiestype" minOccurs="0" /> |
28 <xs:element name="requirements" type="requirementstype" minOccurs="0" /> | |
29 <xs:element name="contains" type="containstype" minOccurs="0" /> | |
30 <xs:element name="extraData" type="extradatatype" minOccurs="0" /> | |
31 <xs:element name="notes" type="xs:string" minOccurs="0" /> | |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
32 </xs:all> |
21
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
33 <xs:attribute name="id" type="xs:ID" /> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
34 <xs:attribute name="typeName" type="xs:string" use="required"/> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
35 <xs:attribute name="cat" type="xs:string" use="required"/> |
40
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
36 <xs:attribute name="unitPoints" type="core:nonNegativeNonInfiniteDouble" default="0"/> |
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
37 <xs:attribute name="points" type="core:nonNegativeNonInfiniteDouble" use="required"/> |
30
92cf25b0493b
Re #32 - Migrate to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
24
diff
changeset
|
38 <xs:attribute name="minNum" type="xs:nonNegativeInteger" default="0"/> |
40
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
39 <xs:attribute name="maxNum" type="core:positiveOrInfiniteInteger" default="-1"/> |
24
72312a7ac08a
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
23
diff
changeset
|
40 <xs:attribute name="minSize" type="xs:positiveInteger" default="5"/> |
40
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
41 <xs:attribute name="maxSize" type="core:positiveOrInfiniteInteger" default="-1"/> |
23
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
42 <xs:attribute name="baseSize" type="xs:nonNegativeInteger" default="0"/> |
21
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
43 </xs:complexType> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
44 <xs:complexType name="statstype"> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
45 <xs:sequence> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
46 <xs:element name="stat" type="stattype" minOccurs="1" maxOccurs="unbounded"/> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
47 </xs:sequence> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
48 </xs:complexType> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
49 <xs:complexType name="stattype"> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
50 <xs:simpleContent> |
23
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
51 <xs:extension base="xs:string"> |
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
52 <xs:attribute name="name" type="xs:string" use="required"/> |
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
53 </xs:extension> |
21
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
54 </xs:simpleContent> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
55 </xs:complexType> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
56 <xs:complexType name="unitequipmenttype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
57 <xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
58 <xs:element name="unitEquipmentItem" type="unitequipmentitemtype" maxOccurs="unbounded"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
59 </xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
60 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
61 <xs:complexType name="unitequipmentitemtype"> |
31 | 62 <xs:attribute name="id" type="xs:IDREF" /> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
63 <xs:attribute name="required" type="xs:boolean" default="false"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
64 <xs:attribute name="exclusivityGroup" type="xs:string" default=""/> |
43
d0812d7de39d
Re #49 - Resolve namespace issues
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
65 <xs:attribute name="minNum" type="core:nonNegativeOrInfiniteIntegerOrRatio" default="-1"/> |
d0812d7de39d
Re #49 - Resolve namespace issues
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
66 <xs:attribute name="maxNum" type="core:nonNegativeOrInfiniteIntegerOrRatio" default="-1"/> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
67 <xs:attribute name="minPercentage" type="core:percentage" default="100"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
68 <xs:attribute name="maxPercentage" type="core:percentage" default="100"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
69 <xs:attribute name="roundDirection" type="updowntype" default="up"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
70 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
71 <xs:complexType name="unitabilitiestype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
72 <xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
73 <xs:element name="unitAbility" type="unitabilitytype" maxOccurs="unbounded"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
74 </xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
75 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
76 <xs:complexType name="unitabilitytype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
77 <xs:attribute name="abilityID" type="xs:IDREF" /> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
78 <xs:attribute name="required" type="xs:boolean" default="true"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
79 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
80 <xs:simpleType name="updowntype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
81 <xs:restriction base="xs:string"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
82 <xs:enumeration value="up"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
83 <xs:enumeration value="down"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
84 </xs:restriction> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
85 </xs:simpleType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
86 <xs:complexType name="requirementstype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
87 <xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
88 <xs:element name="requirement" type="requirementtype"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
89 </xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
90 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
91 <xs:complexType name="requirementtype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
92 <xs:simpleContent> |
23
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
93 <xs:extension base="xs:string"> |
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
94 <xs:attribute name="requirementName" type="xs:string" use="required"/> |
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
95 </xs:extension> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
96 </xs:simpleContent> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
97 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
98 <xs:complexType name="containstype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
99 <xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
100 <xs:element name="containedUnit" type="containedunittype"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
101 </xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
102 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
103 <xs:complexType name="containedunittype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
104 <xs:attribute name="containedID" type="xs:IDREF" use="required"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
105 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
106 <xs:complexType name="extradatatype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
107 <xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
108 <xs:element name="data" type="extradatadatatype"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
109 </xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
110 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
111 <xs:complexType name="extradatadatatype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
112 <xs:simpleContent> |
23
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
113 <xs:extension base="xs:string"> |
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
114 <xs:attribute name="id" type="xs:ID" use="required"/> |
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
115 </xs:extension> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
116 </xs:simpleContent> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
117 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
118 <xs:complexType name="equipmenttype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
119 <xs:sequence> |
31 | 120 <xs:element name="equipmentItem" type="equipmentitemtype" maxOccurs="unbounded" /> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
121 </xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
122 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
123 <xs:complexType name="equipmentitemtype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
124 <xs:all> |
31 | 125 <xs:element name="description" type="xs:string" minOccurs="0" /> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
126 </xs:all> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
127 <xs:attribute name="id" type="xs:ID" use="required"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
128 <xs:attribute name="name" type="xs:string" use="required"/> |
40
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
129 <xs:attribute name="cost" type="core:nonNegativeNonInfiniteDouble" use="required"/> |
43
d0812d7de39d
Re #49 - Resolve namespace issues
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
130 <xs:attribute name="armoutType" type="armourtype" default="None"/> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
131 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
132 <xs:simpleType name="armourtype"> |
23
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
133 <xs:restriction base="xs:string"> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
134 <xs:enumeration value="None"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
135 <xs:enumeration value="Shield"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
136 <xs:enumeration value="LightArmour"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
137 <xs:enumeration value="LightArmourShield"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
138 <xs:enumeration value="HeavyArmour"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
139 <xs:enumeration value="HeavyArmourShield"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
140 <xs:enumeration value="Barding"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
141 <xs:enumeration value="BardingShield"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
142 <xs:enumeration value="BardingLightArmour"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
143 <xs:enumeration value="BardingLightArmourShield"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
144 <xs:enumeration value="BardingHeavyArmour"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
145 <xs:enumeration value="BardingHeavyArmourShield"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
146 </xs:restriction> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
147 </xs:simpleType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
148 <xs:complexType name="abilitiestype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
149 <xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
150 <xs:element name="ability" type="abilitytype"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
151 </xs:sequence> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
152 </xs:complexType> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
153 <xs:complexType name="abilitytype"> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
154 <xs:all> |
23
f9846f896df3
Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
22
diff
changeset
|
155 <xs:element name="description" type="xs:string" /> |
22
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
156 </xs:all> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
157 <xs:attribute name="id" type="xs:ID" use="required"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
158 <xs:attribute name="name" type="xs:string" use="required"/> |
28e99aa0053f
Re #34 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents:
21
diff
changeset
|
159 </xs:complexType> |
21
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
160 </xs:schema> |