annotate dtds/race.xsd @ 21:1e18de815472

Re #32 - Migrate WarFoundry to schemas * Add "WarFoundry-Core" schema to define numerical types with -1 taking a special value * Add "WarFoundry-Cats" to store common category definition between race and system * Add full system schema * Add partial implementation of race schema Re #34 - Remove choices and base/increment * "WarFoundry-Cats" schema only includes min/max points and percentage
author IBBoard <dev@ibboard.co.uk>
date Sat, 07 Mar 2009 20:47:32 +0000
parents
children 28e99aa0053f
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" 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>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 <xs:sequence>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 <xs:element name="units" type="unitstype"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 <xs:element name="categories" type="cats:categoriestype" />
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 <xs:element name="equipment" type="equipmenttype" />
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 <xs:element name="abilities" type="abilitiestype" />
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 </xs:sequence>
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">
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 <xs:sequence>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 <xs:element name="unitCats" type="unitcatstype"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 <xs:element name="stats" type="statstype" />
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 <xs:element name="unitEquipment" type="unitequipmenttype" />
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 <xs:element name="requirements" type="requirementstype" />
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 <xs:element name="contains" type="containstype" />
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 <xs:element name="requirements" type="requirementstype" />
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 </xs:sequence>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32 <xs:attribute name="id" type="xs:ID" />
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 <xs:attribute name="typeName" type="xs:string" use="required"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 <xs:attribute name="cat" type="xs:string" use="required"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 <xs:attribute name="unitPoints" type="core:nonNegativeDecimal" default="0"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 <xs:attribute name="points" type="core:nonNegativeDecimal" use="required"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 <xs:attribute name="minNumber" type="core:nonNegativeInteger" default="0"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 <xs:attribute name="maxNumber" type="core:infiniteOrNonNegativeInteger" default="-1"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 <xs:attribute name="minSize" type="core:positiveInteger" default="5"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 <xs:attribute name="maxSize" type="core:infiniteOrNonNegativeInteger" default="-1"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 <xs:attribute name="baseSize" type="xsd:nonNegativeInteger" default="0"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42 </xs:complexType>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43 <xs:complexType name="statstype">
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 <xs:sequence>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 <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
46 </xs:sequence>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 </xs:complexType>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 <xs:complexType name="stattype">
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 <xs:simpleContent>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 <xs:extension base="xs:string"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 </xs:simpleContent>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52 <xs:attribute name="name" type="xs:string" use="required"/>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53 </xs:complexType>
1e18de815472 Re #32 - Migrate WarFoundry to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 </xs:schema>