Mercurial > repos > IBDev-IBBoard.WarFoundry.API
view dtds/warfoundry-core.xsd @ 44:db951aad24b9
Re #50 - Complete loading of WarFoundry XML
* Fix loading of armour type by fixing typo in Race schema
* Revert to an exception if there is a parse error on the armour type (since the schema should validate it)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 22 Mar 2009 17:10:49 +0000 |
parents | d0812d7de39d |
children | 76d274df9f28 |
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="nonNegativeOrInfiniteIntegerOrRatio"> <xs:union memberTypes="xs:nonNegativeInteger infinity ratio"/> </xs:simpleType> <xs:simpleType name="ratio"> <xs:restriction base="xs:double"> <xs:minInclusive value="0"/> <xs:maxInclusive value="1"/> </xs:restriction> </xs:simpleType> </xs:schema>