summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testxml/xsd/tmw.xsd38
-rwxr-xr-xtestxml/xsdcheck.sh1
2 files changed, 39 insertions, 0 deletions
diff --git a/testxml/xsd/tmw.xsd b/testxml/xsd/tmw.xsd
index 860490d..71d83a7 100644
--- a/testxml/xsd/tmw.xsd
+++ b/testxml/xsd/tmw.xsd
@@ -1395,6 +1395,44 @@
</xs:sequence>
</xs:complexType>
+ <xs:element name="stats" type="root_stats"/>
+ <xs:complexType name="root_stats">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="include"/>
+ <xs:element name="basic">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="stat">
+ <xs:complexType>
+ <xs:attribute name="id" type="xs:int" use="required"/>
+ <xs:attribute name="tag" type="xs:string" use="required"/>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="extended">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="stat">
+ <xs:complexType>
+ <xs:attribute name="id" type="xs:int" use="required"/>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+
<xs:element name="horses" type="root_horses"/>
<xs:complexType name="horse_sprite">
<xs:simpleContent>
diff --git a/testxml/xsdcheck.sh b/testxml/xsdcheck.sh
index ae702de..ca5fe30 100755
--- a/testxml/xsdcheck.sh
+++ b/testxml/xsdcheck.sh
@@ -42,6 +42,7 @@ check quests.xml
check skills.xml
check skillunits.xml
check sounds.xml
+check stats.xml
check status-effects.xml
check units.xml
check weapons.xml