annotate dtds/warfoundry-core.xsd @ 211:1f39e325deee

Fixes #219: Units can only have one contained type * Commit Snowblizz's schema fix that makes the contained unit type list "unbounded"
author IBBoard <dev@ibboard.co.uk>
date Sat, 21 Nov 2009 11:50:48 +0000
parents d63bef60bb51
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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" targetNamespace="http://ibboard.co.uk/warfoundry/core"
23
f9846f896df3 Re #32 - Migrate WarFoundry files to using Schemas
IBBoard <dev@ibboard.co.uk>
parents: 21
diff changeset
3 xmlns="http://ibboard.co.uk/warfoundry/core" elementFormDefault="qualified">
160
41b927998a41 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
4 <xs:element name="extension">
41b927998a41 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
5 <xs:complexType>
41b927998a41 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
6 <xs:sequence>
41b927998a41 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
7 <xs:any minOccurs="0" maxOccurs="unbounded" />
41b927998a41 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
8 </xs:sequence>
41b927998a41 Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents: 112
diff changeset
9 </xs:complexType>
176
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
10 </xs:element>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
11 <xs:complexType name="limit">
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
12 <xs:choice>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
13 <xs:element name="percentageLimit">
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
14 <xs:complexType>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
15 <xs:attribute name="limit" type="percentage" use="required"/>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
16 <xs:attribute name="round" type="updowntype" default="up" />
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
17 <xs:anyAttribute/>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
18 </xs:complexType>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
19 </xs:element>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
20 <xs:element name="sizeConstrainedLimit">
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
21 <xs:complexType>
191
d63bef60bb51 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 183
diff changeset
22 <xs:attribute name="limit" type="xs:nonNegativeInteger" use="required"/>
176
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
23 <xs:anyAttribute/>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
24 </xs:complexType>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
25 </xs:element>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
26 <xs:element name="absoluteLimit">
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
27 <xs:complexType>
191
d63bef60bb51 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 183
diff changeset
28 <xs:attribute name="limit" type="xs:nonNegativeInteger" use="required"/>
176
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
29 <xs:anyAttribute/>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
30 </xs:complexType>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
31 </xs:element>
183
36adabb1c3ea Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 176
diff changeset
32 <xs:element name="unitSizeLimit">
176
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
33 <xs:complexType>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
34 <xs:anyAttribute/>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
35 </xs:complexType>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
36 </xs:element>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
37 </xs:choice>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
38 </xs:complexType>
40
3664eee50390 Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents: 38
diff changeset
39 <xs:simpleType name="positiveOrInfiniteInteger">
74
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
40 <xs:union memberTypes="xs:positiveInteger infinity"/>
40
3664eee50390 Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents: 38
diff changeset
41 </xs:simpleType>
3664eee50390 Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents: 38
diff changeset
42 <xs:simpleType name="nonNegativeOrInfiniteInteger">
74
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
43 <xs:union memberTypes="xs:nonNegativeInteger infinity"/>
40
3664eee50390 Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents: 38
diff changeset
44 </xs:simpleType>
3664eee50390 Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents: 38
diff changeset
45 <xs:simpleType name="infinity">
74
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
46 <xs:restriction base="xs:integer">
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
47 <xs:minInclusive value="-1"/>
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
48 <xs:maxInclusive value="-1"/>
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
49 </xs:restriction>
40
3664eee50390 Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents: 38
diff changeset
50 </xs:simpleType>
3664eee50390 Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents: 38
diff changeset
51 <xs:simpleType name="nonNegativeDouble">
74
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
52 <xs:restriction base="xs:double">
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
53 <xs:minInclusive value="0"/>
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
54 </xs:restriction>
21
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 </xs:simpleType>
40
3664eee50390 Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents: 38
diff changeset
56 <xs:simpleType name="nonNegativeNonInfiniteDouble">
74
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
57 <xs:restriction base="xs:double">
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
58 <xs:minInclusive value="0"/>
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
59 <xs:maxExclusive value="INF"/>
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
60 </xs:restriction>
21
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 </xs:simpleType>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62 <xs:simpleType name="percentage">
74
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
63 <xs:restriction base="xs:double">
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
64 <xs:minInclusive value="0"/>
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
65 <xs:maxInclusive value="100"/>
76d274df9f28 Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 43
diff changeset
66 </xs:restriction>
21
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 </xs:simpleType>
112
863518044d38 Re #54: Add Army support to WarFoundryFactory
IBBoard <dev@ibboard.co.uk>
parents: 74
diff changeset
68 <xs:simpleType name="nonNegativeOrInfiniteIntegerOrPercentage">
863518044d38 Re #54: Add Army support to WarFoundryFactory
IBBoard <dev@ibboard.co.uk>
parents: 74
diff changeset
69 <xs:union memberTypes="xs:nonNegativeInteger infinity percentage"/>
43
d0812d7de39d Re #49 - Resolve namespace issues
IBBoard <dev@ibboard.co.uk>
parents: 40
diff changeset
70 </xs:simpleType>
176
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
71 <xs:simpleType name="updowntype">
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
72 <xs:restriction base="xs:string">
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
73 <xs:enumeration value="up"/>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
74 <xs:enumeration value="down"/>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
75 </xs:restriction>
22429737cd77 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 160
diff changeset
76 </xs:simpleType>
21
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
77 </xs:schema>