Mercurial > repos > snowblizz-super-API-ideas
view dtds/warfoundry-core.xsd @ 30:92cf25b0493b
Re #32 - Migrate to using Schemas
* Replace decimal with double to try to get around type cast issues
* Correct schema to use minNum and maxNum instead of min/maxNumber for attributes
* Use new FileLoadFailure parameters to better log errors while loading files
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 14 Mar 2009 20:16:09 +0000 |
parents | f9846f896df3 |
children | 548cfc776f54 |
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="infiniteOrNonNegativeDecimal"> <xs:restriction base="xs:double"> <xs:minInclusive value="-1"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="infiniteOrNonNegativeInteger"> <xs:restriction base="xs:integer"> <xs:minInclusive value="-1"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="nonNegativeDecimal"> <xs:restriction base="xs:double"> <xs:minInclusive value="0"/> </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:schema>