Mercurial > repos > IBBoard.WarFoundry.API
annotate dtds/warfoundry-core.xsd @ 156:62ff1ac132d2
Fixes #185: Problems with decimals in race definitions
* Problem fixed with ibboard:r103 (XmlTools were using int.parse in double parsing code!)
* Catch and wrap exceptions so that they get caught with a dialog for the user
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 29 Sep 2009 19:21:50 +0000 |
parents | 863518044d38 |
children | 41b927998a41 |
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"> |
40
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
4 <xs:simpleType name="positiveOrInfiniteInteger"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
5 <xs:union memberTypes="xs:positiveInteger infinity"/> |
40
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
6 </xs:simpleType> |
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
7 <xs:simpleType name="nonNegativeOrInfiniteInteger"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
8 <xs:union memberTypes="xs:nonNegativeInteger infinity"/> |
40
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
9 </xs:simpleType> |
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
10 <xs:simpleType name="infinity"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
11 <xs:restriction base="xs:integer"> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
12 <xs:minInclusive value="-1"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
13 <xs:maxInclusive value="-1"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
14 </xs:restriction> |
40
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
15 </xs:simpleType> |
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
16 <xs:simpleType name="nonNegativeDouble"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
17 <xs:restriction base="xs:double"> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
18 <xs:minInclusive value="0"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
19 </xs:restriction> |
21
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
20 </xs:simpleType> |
40
3664eee50390
Fixes #47 - remove magic numbers
IBBoard <dev@ibboard.co.uk>
parents:
38
diff
changeset
|
21 <xs:simpleType name="nonNegativeNonInfiniteDouble"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
22 <xs:restriction base="xs:double"> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
23 <xs:minInclusive value="0"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
24 <xs:maxExclusive value="INF"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
25 </xs:restriction> |
21
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
26 </xs:simpleType> |
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
27 <xs:simpleType name="percentage"> |
74
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
28 <xs:restriction base="xs:double"> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
29 <xs:minInclusive value="0"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
30 <xs:maxInclusive value="100"/> |
76d274df9f28
Closes #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents:
43
diff
changeset
|
31 </xs:restriction> |
21
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
32 </xs:simpleType> |
112
863518044d38
Re #54: Add Army support to WarFoundryFactory
IBBoard <dev@ibboard.co.uk>
parents:
74
diff
changeset
|
33 <xs:simpleType name="nonNegativeOrInfiniteIntegerOrPercentage"> |
863518044d38
Re #54: Add Army support to WarFoundryFactory
IBBoard <dev@ibboard.co.uk>
parents:
74
diff
changeset
|
34 <xs:union memberTypes="xs:nonNegativeInteger infinity percentage"/> |
43
d0812d7de39d
Re #49 - Resolve namespace issues
IBBoard <dev@ibboard.co.uk>
parents:
40
diff
changeset
|
35 </xs:simpleType> |
21
1e18de815472
Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff
changeset
|
36 </xs:schema> |