summaryrefslogtreecommitdiff
path: root/testxml
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-30 18:00:34 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-30 18:00:34 +0300
commit21d74b1f11be28128f9c3bed4b7ff94c05657012 (patch)
treec6f40f6de36818e2cb3dd89c590d7cc30cccca14 /testxml
parent01762542057919e0a4dbd2f1e2fbe44a091bbb9e (diff)
downloadevol-tools-21d74b1f11be28128f9c3bed4b7ff94c05657012.tar.gz
evol-tools-21d74b1f11be28128f9c3bed4b7ff94c05657012.tar.bz2
evol-tools-21d74b1f11be28128f9c3bed4b7ff94c05657012.tar.xz
evol-tools-21d74b1f11be28128f9c3bed4b7ff94c05657012.zip
testxml: add into xsd validation for stats.xml
Diffstat (limited to 'testxml')
-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