Mercurial > repos > IBDev-IBBoard.WarFoundry.API
comparison schemas/warfoundry-core.xsd @ 224:f097888efcfe
Fixes #233: "unitPoints" attribute is badly named
* Rename "unitPoints" to "basePoints"
* Re-order schema to more sensible name
* Use new name in code when parsing XML (object property already has sensible name)
Also:
* Rename "dtds" folder to more accurate "schemas"
* Change references to folder in code
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 14 Dec 2009 20:50:39 +0000 |
parents | |
children | 6abf70f31ae4 |
comparison
equal
deleted
inserted
replaced
223:fe5a03d73918 | 224:f097888efcfe |
---|---|
1 <?xml version="1.0"?> | |
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/warfoundry/core" | |
3 xmlns="http://ibboard.co.uk/warfoundry/core" elementFormDefault="qualified"> | |
4 <xs:element name="extension"> | |
5 <xs:complexType> | |
6 <xs:sequence> | |
7 <xs:any minOccurs="0" maxOccurs="unbounded" /> | |
8 </xs:sequence> | |
9 </xs:complexType> | |
10 </xs:element> | |
11 <xs:complexType name="limit"> | |
12 <xs:choice> | |
13 <xs:element name="percentageLimit"> | |
14 <xs:complexType> | |
15 <xs:attribute name="limit" type="percentage" use="required"/> | |
16 <xs:attribute name="round" type="updowntype" default="up" /> | |
17 <xs:anyAttribute/> | |
18 </xs:complexType> | |
19 </xs:element> | |
20 <xs:element name="sizeConstrainedLimit"> | |
21 <xs:complexType> | |
22 <xs:attribute name="limit" type="xs:nonNegativeInteger" use="required"/> | |
23 <xs:anyAttribute/> | |
24 </xs:complexType> | |
25 </xs:element> | |
26 <xs:element name="absoluteLimit"> | |
27 <xs:complexType> | |
28 <xs:attribute name="limit" type="xs:nonNegativeInteger" use="required"/> | |
29 <xs:anyAttribute/> | |
30 </xs:complexType> | |
31 </xs:element> | |
32 <xs:element name="unitSizeLimit"> | |
33 <xs:complexType> | |
34 <xs:anyAttribute/> | |
35 </xs:complexType> | |
36 </xs:element> | |
37 </xs:choice> | |
38 </xs:complexType> | |
39 <xs:simpleType name="positiveOrInfiniteInteger"> | |
40 <xs:union memberTypes="xs:positiveInteger infinity"/> | |
41 </xs:simpleType> | |
42 <xs:simpleType name="nonNegativeOrInfiniteInteger"> | |
43 <xs:union memberTypes="xs:nonNegativeInteger infinity"/> | |
44 </xs:simpleType> | |
45 <xs:simpleType name="infinity"> | |
46 <xs:restriction base="xs:integer"> | |
47 <xs:minInclusive value="-1"/> | |
48 <xs:maxInclusive value="-1"/> | |
49 </xs:restriction> | |
50 </xs:simpleType> | |
51 <xs:simpleType name="nonNegativeDouble"> | |
52 <xs:restriction base="xs:double"> | |
53 <xs:minInclusive value="0"/> | |
54 </xs:restriction> | |
55 </xs:simpleType> | |
56 <xs:simpleType name="nonNegativeNonInfiniteDouble"> | |
57 <xs:restriction base="xs:double"> | |
58 <xs:minInclusive value="0"/> | |
59 <xs:maxExclusive value="INF"/> | |
60 </xs:restriction> | |
61 </xs:simpleType> | |
62 <xs:simpleType name="percentage"> | |
63 <xs:restriction base="xs:double"> | |
64 <xs:minInclusive value="0"/> | |
65 <xs:maxInclusive value="100"/> | |
66 </xs:restriction> | |
67 </xs:simpleType> | |
68 <xs:simpleType name="nonNegativeOrInfiniteIntegerOrPercentage"> | |
69 <xs:union memberTypes="xs:nonNegativeInteger infinity percentage"/> | |
70 </xs:simpleType> | |
71 <xs:simpleType name="updowntype"> | |
72 <xs:restriction base="xs:string"> | |
73 <xs:enumeration value="up"/> | |
74 <xs:enumeration value="down"/> | |
75 </xs:restriction> | |
76 </xs:simpleType> | |
77 </xs:schema> |