Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff dtds/race.xsd @ 146:0b32cc40d82f
Re #152: Test and fix extensibility of current schemas
* Add extensibility to Race schema
Also:
* Code tidy for WarFoundryXmlFactoryUtils
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 23 Sep 2009 19:58:21 +0000 |
parents | f70c709dad8b |
children | 938409fc24cc |
line wrap: on
line diff
--- a/dtds/race.xsd Mon Sep 21 19:20:42 2009 +0000 +++ b/dtds/race.xsd Wed Sep 23 19:58:21 2009 +0000 @@ -18,11 +18,13 @@ <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="name" type="xs:string" use="required"/> + <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:sequence> + <xs:anyAttribute/> </xs:complexType> </xs:element> <xs:element name="unitEquipment"> @@ -40,9 +42,11 @@ <xs:attribute name="roundDirection" type="updowntype" default="up"/> <xs:attribute name="costMultiplier" type="core:nonNegativeDouble" default="1"/> <xs:attribute name="costRounding" type="costroundingtype" default="UpToHalf"/> + <xs:anyAttribute/> </xs:complexType> </xs:element> </xs:sequence> + <xs:anyAttribute/> </xs:complexType> </xs:element> <xs:element name="unitAbilities" minOccurs="0"> @@ -52,9 +56,11 @@ <xs:complexType> <xs:attribute name="abilityID" type="xs:IDREF" /> <xs:attribute name="required" type="xs:boolean" default="true"/> + <xs:anyAttribute/> </xs:complexType> </xs:element> </xs:sequence> + <xs:anyAttribute/> </xs:complexType> </xs:element> <xs:element name="requirements" minOccurs="0"> @@ -65,11 +71,13 @@ <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="requirementName" type="xs:string" use="required"/> + <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:sequence> + <xs:anyAttribute/> </xs:complexType> </xs:element> <xs:element name="contains" minOccurs="0"> @@ -78,9 +86,11 @@ <xs:element name="containedUnit"> <xs:complexType> <xs:attribute name="containedID" type="xs:IDREF" use="required"/> + <xs:anyAttribute/> </xs:complexType> </xs:element> </xs:sequence> + <xs:anyAttribute/> </xs:complexType> </xs:element> <xs:element name="extraData" minOccurs="0"> @@ -91,11 +101,13 @@ <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="id" type="xs:ID" use="required"/> + <xs:anyAttribute/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:sequence> + <xs:anyAttribute/> </xs:complexType> </xs:element> <xs:element name="notes" type="xs:string" minOccurs="0" /> @@ -110,6 +122,7 @@ <xs:attribute name="minSize" type="xs:nonNegativeInteger" default="5"/> <xs:attribute name="maxSize" type="core:positiveOrInfiniteInteger" default="-1"/> <xs:attribute name="baseSize" type="xs:nonNegativeInteger" default="0"/> + <xs:anyAttribute/> </xs:complexType> </xs:element> </xs:sequence> @@ -128,9 +141,11 @@ <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="cost" type="core:nonNegativeNonInfiniteDouble" use="required"/> <xs:attribute name="armourType" type="armourtype" default="None"/> + <xs:anyAttribute/> </xs:complexType> </xs:element> </xs:sequence> + <xs:anyAttribute/> </xs:complexType> </xs:element> <xs:element name="abilities" minOccurs="0"> @@ -143,9 +158,11 @@ </xs:all> <xs:attribute name="id" type="xs:ID" use="required"/> <xs:attribute name="name" type="xs:string" use="required"/> + <xs:anyAttribute/> </xs:complexType> </xs:element> </xs:sequence> + <xs:anyAttribute/> </xs:complexType> </xs:element> </xs:all> @@ -153,6 +170,7 @@ <xs:attribute name="subid" type="xs:string" default=""/> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="system" type="xs:string" use="required"/> + <xs:anyAttribute/> </xs:complexType> </xs:element> <xs:simpleType name="updowntype">