Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff dtds/system.xsd @ 72:e7a6f460be57
Re #80: Collapse XSD definitions
* Collapse System definition
* Collapse Army definition
Also:
* Fix namespace issue for "core" in army.xsd
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 10 May 2009 18:43:17 +0000 |
parents | 4308424b4145 |
children | 76d274df9f28 |
line wrap: on
line diff
--- a/dtds/system.xsd Sat Apr 25 19:38:55 2009 +0000 +++ b/dtds/system.xsd Sun May 10 18:43:17 2009 +0000 @@ -5,7 +5,25 @@ <xs:complexType> <xs:all> <xs:element name="categories" type="cats:categoriestype" minOccurs="1"/> - <xs:element name="sysStatsList" type="statslisttype" minOccurs="1"/> + <xs:element name="sysStatsList" minOccurs="1"> + <xs:complexType> + <xs:sequence> + <xs:element name="sysStats" minOccurs="1" maxOccurs="unbounded"> + <xs:complexType> + <xs:sequence> + <xs:element name="sysStat" minOccurs="1" maxOccurs="unbounded"> + <xs:complexType> + <xs:attribute name="name" type="xs:string" use="required"/> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="id" type="xs:ID" /> + </xs:complexType> + </xs:element> + </xs:sequence> + <xs:attribute name="defaultStats" type="xs:IDREF" /> + </xs:complexType> + </xs:element> </xs:all> <xs:attribute name="id" type="xs:ID" /> <xs:attribute name="name" type="xs:string" use="required"/> @@ -13,19 +31,4 @@ <xs:attribute name="allowAllies" type="xs:boolean" default="true"/> </xs:complexType> </xs:element> -<xs:complexType name="statslisttype"> - <xs:sequence> - <xs:element name="sysStats" type="sysstatstype" minOccurs="1" maxOccurs="unbounded"/> - </xs:sequence> - <xs:attribute name="defaultStats" type="xs:IDREF" /> -</xs:complexType> -<xs:complexType name="sysstatstype"> - <xs:sequence> - <xs:element name="sysStat" type="sysstattype" minOccurs="1" maxOccurs="unbounded"/> - </xs:sequence> - <xs:attribute name="id" type="xs:ID" /> -</xs:complexType> -<xs:complexType name="sysstattype"> - <xs:attribute name="name" type="xs:string" use="required"/> -</xs:complexType> </xs:schema> \ No newline at end of file