Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff 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 diff
--- a/dtds/warfoundry-core.xsd Sat Mar 14 20:14:07 2009 +0000 +++ b/dtds/warfoundry-core.xsd Sat Mar 14 20:16:09 2009 +0000 @@ -2,7 +2,7 @@ <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:decimal"> + <xs:restriction base="xs:double"> <xs:minInclusive value="-1"/> </xs:restriction> </xs:simpleType> @@ -12,12 +12,12 @@ </xs:restriction> </xs:simpleType> <xs:simpleType name="nonNegativeDecimal"> - <xs:restriction base="xs:decimal"> + <xs:restriction base="xs:double"> <xs:minInclusive value="0"/> </xs:restriction> </xs:simpleType> <xs:simpleType name="percentage"> - <xs:restriction base="xs:decimal"> + <xs:restriction base="xs:double"> <xs:minInclusive value="0"/> <xs:maxInclusive value="100"/> </xs:restriction>