view dtds/warfoundry-core.xsd @ 112:863518044d38

Re #54: Add Army support to WarFoundryFactory * Stop "custom equipment" node being mandatory * Remove unused "ratio" definition * Change "integer or ratio" definition to "integer or percentage" * Use "integer or percentage" definition in army XSD * Add exception to say that required objects were missing (Game System and Race) * Throw exceptions on creating army if game system or race is missing Re #53: Add saving of Army to XML file * Add namespace attributes to XML root node
author IBBoard <dev@ibboard.co.uk>
date Sat, 22 Aug 2009 18:18:20 +0000
parents 76d274df9f28
children 41b927998a41
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: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>