Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff dtds/race.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 | 72312a7ac08a |
children | 457c9357dd64 |
line wrap: on
line diff
--- a/dtds/race.xsd Sat Mar 14 20:14:07 2009 +0000 +++ b/dtds/race.xsd Sat Mar 14 20:16:09 2009 +0000 @@ -35,8 +35,8 @@ <xs:attribute name="cat" type="xs:string" use="required"/> <xs:attribute name="unitPoints" type="core:nonNegativeDecimal" default="0"/> <xs:attribute name="points" type="core:nonNegativeDecimal" use="required"/> - <xs:attribute name="minNumber" type="xs:nonNegativeInteger" default="0"/> - <xs:attribute name="maxNumber" type="core:infiniteOrNonNegativeInteger" default="-1"/> + <xs:attribute name="minNum" type="xs:nonNegativeInteger" default="0"/> + <xs:attribute name="maxNum" type="core:infiniteOrNonNegativeInteger" default="-1"/> <xs:attribute name="minSize" type="xs:positiveInteger" default="5"/> <xs:attribute name="maxSize" type="core:infiniteOrNonNegativeInteger" default="-1"/> <xs:attribute name="baseSize" type="xs:nonNegativeInteger" default="0"/> @@ -62,8 +62,8 @@ <xs:attribute name="equipID" type="xs:IDREF" /> <xs:attribute name="required" type="xs:boolean" default="false"/> <xs:attribute name="exclusivityGroup" type="xs:string" default=""/> - <xs:attribute name="minNumber" type="core:infiniteOrNonNegativeInteger" default="-1"/> - <xs:attribute name="maxNumber" type="core:infiniteOrNonNegativeInteger" default="-1"/> + <xs:attribute name="minNum" type="core:infiniteOrNonNegativeInteger" default="-1"/> + <xs:attribute name="maxNum" type="core:infiniteOrNonNegativeInteger" default="-1"/> <xs:attribute name="minPercentage" type="core:percentage" default="100"/> <xs:attribute name="maxPercentage" type="core:percentage" default="100"/> <xs:attribute name="roundDirection" type="updowntype" default="up"/>