Updated schema with custom type names to better match their C++ counterparts

This commit is contained in:
sippeangelo
2015-11-26 16:09:11 +01:00
parent ac05975fd5
commit 8419d2e7b9
4 changed files with 15 additions and 5 deletions
+3 -3
View File
@@ -9,9 +9,9 @@
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element name="Integer" type="xs:integer" minOccurs="0"/>
<xs:element name="Float" type="xs:decimal" minOccurs="0"/>
<xs:element name="String" type="xs:string" minOccurs="0"/>
<xs:element name="Integer" type="t:int" minOccurs="0"/>
<xs:element name="Double" type="t:double" minOccurs="0"/>
<xs:element name="String" type="t:string" minOccurs="0"/>
<xs:element name="Vector" type="t:Vector" minOccurs="0"/>
<xs:element name="Quaternion" type="t:Quaternion" minOccurs="0"/>
</xs:all>
+1 -1
View File
@@ -4,7 +4,7 @@
<Components>
<c:Test>
<Integer>5555</Integer>
<Float>12.34</Float>
<Double>12.34</Double>
</c:Test>
</Components>
</Entity>
+2 -1
View File
@@ -9,7 +9,8 @@
</c:Transform>
<c:Test>
<Integer>12</Integer>
<Float>11.11</Float>
<Double>11.11</Double>
<String>Hello World</String>
</c:Test>
</Components>
<Children>
+9
View File
@@ -3,4 +3,13 @@
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="types" elementFormDefault="qualified">
<xs:include schemaLocation="Types/Quaternion.xsd"/>
<xs:include schemaLocation="Types/Vector.xsd"/>
<xs:simpleType name="int">
<xs:restriction base="xs:integer"></xs:restriction>
</xs:simpleType>
<xs:simpleType name="double">
<xs:restriction base="xs:decimal"></xs:restriction>
</xs:simpleType>
<xs:simpleType name="string">
<xs:restriction base="xs:string"></xs:restriction>
</xs:simpleType>
</xs:schema>