summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-01 23:05:05 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-01 23:05:05 +0300
commit3368eb16a330e3f8ff693e7d2c580d9f8b0a670c (patch)
tree207218e1ff9b6f491ae1e16b34df7625eb582dff
parent20601d8d891e120cc649db9022795299e4c006fb (diff)
downloadevol-tools-3368eb16a330e3f8ff693e7d2c580d9f8b0a670c.tar.gz
evol-tools-3368eb16a330e3f8ff693e7d2c580d9f8b0a670c.tar.bz2
evol-tools-3368eb16a330e3f8ff693e7d2c580d9f8b0a670c.tar.xz
evol-tools-3368eb16a330e3f8ff693e7d2c580d9f8b0a670c.zip
testxml: add scheme validation for itemfields.xml
-rw-r--r--testxml/xsd/tmw.xsd34
-rwxr-xr-xtestxml/xsdcheck.sh1
2 files changed, 35 insertions, 0 deletions
diff --git a/testxml/xsd/tmw.xsd b/testxml/xsd/tmw.xsd
index 0617901..4ddb047 100644
--- a/testxml/xsd/tmw.xsd
+++ b/testxml/xsd/tmw.xsd
@@ -1460,6 +1460,40 @@
<xs:attribute name="downOffsetY" type="xs:int" default="0"/>
</xs:complexType>
+ <xs:element name="itemfields" type="root_itemfields"/>
+ <xs:complexType name="root_itemfields">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="include"/>
+ <xs:sequence>
+ <xs:element name="required" minOccurs="1" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="field" type="itemfield_node" />
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="add" minOccurs="1" maxOccurs="1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="field" type="itemfield_node" />
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="itemfield_node">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="description" type="xs:string" use="required"/>
+ <xs:attribute name="signed" type="bool" default="true"/>
+ </xs:complexType>
+
<!-- probably not all tags correct here -->
<xs:element name="homunculuses" type="root_homunculuses"/>
<xs:complexType name="root_homunculuses">
diff --git a/testxml/xsdcheck.sh b/testxml/xsdcheck.sh
index e2bd680..47ddde2 100755
--- a/testxml/xsdcheck.sh
+++ b/testxml/xsdcheck.sh
@@ -27,6 +27,7 @@ check features.xml
check homunculuses.xml
check horses.xml
check itemcolors.xml
+check itemfields.xml
check items.xml
check maps.xml
check mercenaries.xml