view dtds/warfoundry-core.xsd @ 165:71e50c0884a2

Fixes #194: Make unit equipment optional * Make unitEquipment tag optional (old schema could get us in to a situation where the race didn't define equipment but the unit had to reference something!)
author IBBoard <dev@ibboard.co.uk>
date Tue, 06 Oct 2009 10:37:08 +0000
parents 41b927998a41
children 22429737cd77
line wrap: on
line source

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/warfoundry/core"
xmlns="http://ibboard.co.uk/warfoundry/core" elementFormDefault="qualified">
<xs:element name="extension">
	<xs:complexType>
		<xs:sequence>
			<xs:any minOccurs="0" maxOccurs="unbounded" />
		</xs:sequence>
	</xs:complexType>
	</xs:element>
<xs:simpleType name="positiveOrInfiniteInteger">
	<xs:union memberTypes="xs:positiveInteger infinity"/>
</xs:simpleType>
<xs:simpleType name="nonNegativeOrInfiniteInteger">
	<xs:union memberTypes="xs:nonNegativeInteger infinity"/>
</xs:simpleType>
<xs:simpleType name="infinity">
	<xs:restriction base="xs:integer">
		<xs:minInclusive value="-1"/>
		<xs:maxInclusive value="-1"/>
	</xs:restriction>
</xs:simpleType>
<xs:simpleType name="nonNegativeDouble">
	<xs:restriction base="xs:double">
		<xs:minInclusive value="0"/>
	</xs:restriction>
</xs:simpleType>
<xs:simpleType name="nonNegativeNonInfiniteDouble">
	<xs:restriction base="xs:double">
		<xs:minInclusive value="0"/>
		<xs:maxExclusive value="INF"/>
	</xs:restriction>
</xs:simpleType>
<xs:simpleType name="percentage">
	<xs:restriction base="xs:double">
		<xs:minInclusive value="0"/>
		<xs:maxInclusive value="100"/>
	</xs:restriction>
</xs:simpleType>
<xs:simpleType name="nonNegativeOrInfiniteIntegerOrPercentage">
	<xs:union memberTypes="xs:nonNegativeInteger infinity percentage"/>
</xs:simpleType>
</xs:schema>