comparison 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
comparison
equal deleted inserted replaced
29:d7899f462d8c 30:92cf25b0493b
33 <xs:attribute name="id" type="xs:ID" /> 33 <xs:attribute name="id" type="xs:ID" />
34 <xs:attribute name="typeName" type="xs:string" use="required"/> 34 <xs:attribute name="typeName" type="xs:string" use="required"/>
35 <xs:attribute name="cat" type="xs:string" use="required"/> 35 <xs:attribute name="cat" type="xs:string" use="required"/>
36 <xs:attribute name="unitPoints" type="core:nonNegativeDecimal" default="0"/> 36 <xs:attribute name="unitPoints" type="core:nonNegativeDecimal" default="0"/>
37 <xs:attribute name="points" type="core:nonNegativeDecimal" use="required"/> 37 <xs:attribute name="points" type="core:nonNegativeDecimal" use="required"/>
38 <xs:attribute name="minNumber" type="xs:nonNegativeInteger" default="0"/> 38 <xs:attribute name="minNum" type="xs:nonNegativeInteger" default="0"/>
39 <xs:attribute name="maxNumber" type="core:infiniteOrNonNegativeInteger" default="-1"/> 39 <xs:attribute name="maxNum" type="core:infiniteOrNonNegativeInteger" default="-1"/>
40 <xs:attribute name="minSize" type="xs:positiveInteger" default="5"/> 40 <xs:attribute name="minSize" type="xs:positiveInteger" default="5"/>
41 <xs:attribute name="maxSize" type="core:infiniteOrNonNegativeInteger" default="-1"/> 41 <xs:attribute name="maxSize" type="core:infiniteOrNonNegativeInteger" default="-1"/>
42 <xs:attribute name="baseSize" type="xs:nonNegativeInteger" default="0"/> 42 <xs:attribute name="baseSize" type="xs:nonNegativeInteger" default="0"/>
43 </xs:complexType> 43 </xs:complexType>
44 <xs:complexType name="statstype"> 44 <xs:complexType name="statstype">
60 </xs:complexType> 60 </xs:complexType>
61 <xs:complexType name="unitequipmentitemtype"> 61 <xs:complexType name="unitequipmentitemtype">
62 <xs:attribute name="equipID" type="xs:IDREF" /> 62 <xs:attribute name="equipID" type="xs:IDREF" />
63 <xs:attribute name="required" type="xs:boolean" default="false"/> 63 <xs:attribute name="required" type="xs:boolean" default="false"/>
64 <xs:attribute name="exclusivityGroup" type="xs:string" default=""/> 64 <xs:attribute name="exclusivityGroup" type="xs:string" default=""/>
65 <xs:attribute name="minNumber" type="core:infiniteOrNonNegativeInteger" default="-1"/> 65 <xs:attribute name="minNum" type="core:infiniteOrNonNegativeInteger" default="-1"/>
66 <xs:attribute name="maxNumber" type="core:infiniteOrNonNegativeInteger" default="-1"/> 66 <xs:attribute name="maxNum" type="core:infiniteOrNonNegativeInteger" default="-1"/>
67 <xs:attribute name="minPercentage" type="core:percentage" default="100"/> 67 <xs:attribute name="minPercentage" type="core:percentage" default="100"/>
68 <xs:attribute name="maxPercentage" type="core:percentage" default="100"/> 68 <xs:attribute name="maxPercentage" type="core:percentage" default="100"/>
69 <xs:attribute name="roundDirection" type="updowntype" default="up"/> 69 <xs:attribute name="roundDirection" type="updowntype" default="up"/>
70 </xs:complexType> 70 </xs:complexType>
71 <xs:complexType name="unitabilitiestype"> 71 <xs:complexType name="unitabilitiestype">