Mercurial > repos > IBBoard.WarFoundry.API
diff dtds/army.xsd @ 112:863518044d38
Re #54: Add Army support to WarFoundryFactory
* Stop "custom equipment" node being mandatory
* Remove unused "ratio" definition
* Change "integer or ratio" definition to "integer or percentage"
* Use "integer or percentage" definition in army XSD
* Add exception to say that required objects were missing (Game System and Race)
* Throw exceptions on creating army if game system or race is missing
Re #53: Add saving of Army to XML file
* Add namespace attributes to XML root node
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 22 Aug 2009 18:18:20 +0000 |
parents | 2060f23abee9 |
children | 7b98e71b8511 |
line wrap: on
line diff
--- a/dtds/army.xsd Sat Aug 22 15:34:25 2009 +0000 +++ b/dtds/army.xsd Sat Aug 22 18:18:20 2009 +0000 @@ -15,7 +15,7 @@ <xs:element name="equipItem" minOccurs="1" maxOccurs="unbounded"> <xs:complexType> <xs:attribute name="id" type="xs:string" /> <!-- ID reference to either a custom equipment item or a Race equipment item --> - <xs:attribute name="amount" type="core:nonNegativeDouble" use="required"/><!-- Double used to allow for percentages to be stored --> + <xs:attribute name="amount" type="core:nonNegativeOrInfiniteIntegerOrPercentage" use="required"/><!-- Double used to allow for percentages to be stored --> <xs:attribute name="amountType" type="equipmentAmountType" default="ratio"/> <xs:attribute name="isCustomEquipment" type="xs:boolean" default="false"/> </xs:complexType> @@ -45,7 +45,7 @@ </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="customEquipment" minOccurs="1"> + <xs:element name="customEquipment" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="customEquip" minOccurs="0" maxOccurs="unbounded">