annotate dtds/army.xsd @ 72:e7a6f460be57

Re #80: Collapse XSD definitions * Collapse System definition * Collapse Army definition Also: * Fix namespace issue for "core" in army.xsd
author IBBoard <dev@ibboard.co.uk>
date Sun, 10 May 2009 18:43:17 +0000
parents 0c3500fca49d
children 76d274df9f28
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 <?xml version="1.0"?>
72
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/warfoundry/army" xmlns="http://ibboard.co.uk/warfoundry/army" xmlns:core="http://ibboard.co.uk/warfoundry/core" elementFormDefault="qualified">
36
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 <xs:element name="army">
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 <xs:complexType>
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 <xs:all>
72
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
6 <xs:element name="units" minOccurs="1">
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
7 <xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
8 <xs:sequence>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
9 <xs:element name="unit" minOccurs="0" maxOccurs="unbounded">
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
10 <xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
11 <xs:all>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
12 <xs:element name="equipment" minOccurs="0" maxOccurs="1">
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
13 <xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
14 <xs:sequence>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
15 <xs:element name="equipItem" minOccurs="1" maxOccurs="unbounded">
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
16 <xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
17 <xs:attribute name="id" type="xs:string" /> <!-- ID reference to either a custom equipment item or a Race equipment item -->
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
18 <xs:attribute name="amount" type="core:nonNegativeDouble" use="required"/><!-- Double used to allow for percentages to be stored -->
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
19 <xs:attribute name="isCustomEquipment" type="xs:boolean" default="false"/>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
20 </xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
21 </xs:element>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
22 </xs:sequence>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
23 </xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
24 </xs:element>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
25 <xs:element name="contains" minOccurs="0">
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
26 <xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
27 <xs:sequence>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
28 <xs:element name="containedUnit">
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
29 <xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
30 <xs:attribute name="containedID" type="xs:IDREF" use="required"/>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
31 </xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
32 </xs:element>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
33 </xs:sequence>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
34 </xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
35 </xs:element>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
36 </xs:all>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
37 <xs:attribute name="id" type="xs:ID" />
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
38 <xs:attribute name="unitType" type="xs:string" use="required"/>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
39 <xs:attribute name="unitName" type="xs:string" use="required"/>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
40 <xs:attribute name="size" type="xs:positiveInteger" use="required"/>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
41 <xs:attribute name="race" type="xs:string" default=""/>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
42 </xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
43 </xs:element>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
44 </xs:sequence>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
45 </xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
46 </xs:element>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
47 <xs:element name="customEquipment" minOccurs="1">
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
48 <xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
49 <xs:sequence>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
50 <xs:element name="customEquip" minOccurs="0" maxOccurs="unbounded">
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
51 <xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
52 <xs:sequence>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
53 <xs:element name="customEquipPart" minOccurs="1" maxOccurs="unbounded">
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
54 <xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
55 <xs:attribute name="partIDRef" type="xs:string" />
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
56 </xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
57 </xs:element>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
58 </xs:sequence>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
59 <xs:attribute name="id" type="xs:ID" />
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
60 </xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
61 </xs:element>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
62 </xs:sequence>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
63 </xs:complexType>
e7a6f460be57 Re #80: Collapse XSD definitions
IBBoard <dev@ibboard.co.uk>
parents: 60
diff changeset
64 </xs:element>
36
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65 </xs:all>
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 <xs:attribute name="id" type="xs:ID" />
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 <xs:attribute name="name" type="xs:string" use="required"/>
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 <xs:attribute name="system" type="xs:string" use="required"/>
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 <xs:attribute name="race" type="xs:string" use="required"/>
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 <xs:attribute name="maxPoints" type="xs:positiveInteger" use="required"/>
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71 </xs:complexType>
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72 </xs:element>
0a1c5fea6a08 Re #32 - Migrate to schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
73 </xs:schema>