view schemas/system.xsd @ 238:d1068f4b6d1c

Fixes #141: Check IDs of units on loading army * IDs were already checked - now exceptions instead of ignoring (exception is already caught for other reasons) Also: * Code cleanup of main XML file factory
author IBBoard <dev@ibboard.co.uk>
date Sun, 21 Feb 2010 20:25:52 +0000
parents f097888efcfe
children 7c14537d4a23
line wrap: on
line source

<?xml version="1.0"?>
<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"
targetNamespace="http://ibboard.co.uk/warfoundry/system" xmlns="http://ibboard.co.uk/warfoundry/system" elementFormDefault="qualified">
<xs:element name="system">
	<xs:complexType>
		<xs:all>
			<xs:element name="categories" type="cats:categoriestype"/>
			<xs:element name="sysStatsList">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="sysStats" maxOccurs="unbounded">
							<xs:complexType>
								<xs:sequence>
									<xs:element name="sysStat" maxOccurs="unbounded">
										<xs:complexType>
											<xs:attribute name="name" type="xs:string" use="required"/>
											<xs:anyAttribute/>
										</xs:complexType>
									</xs:element>
								</xs:sequence>
								<xs:attribute name="id" type="xs:ID" />
								<xs:anyAttribute/>
							</xs:complexType>
						</xs:element>
					</xs:sequence>
					<xs:attribute name="defaultStats" type="xs:IDREF" use="required" />
					<xs:anyAttribute/>
				</xs:complexType>
			</xs:element>
			<xs:element ref="core:extension" minOccurs="0" />
		</xs:all>
		<xs:attribute name="id" type="xs:ID" />
		<xs:attribute name="name" type="xs:string" use="required"/>
		<xs:attribute name="warn" type="xs:boolean" default="false"/>
		<xs:attribute name="allowAllies" type="xs:boolean" default="true"/>
		<xs:anyAttribute/>
	</xs:complexType>
</xs:element>
</xs:schema>