Learning XMLSchema

This commit is contained in:
Jean Sirmai 2021-09-18 17:01:53 +02:00
parent ae296cdcf9
commit d3f52853d5
Signed by untrusted user who does not match committer: jean
GPG Key ID: FB3115C340E057E3
2 changed files with 38 additions and 18 deletions

View File

@ -9,14 +9,14 @@
</identity> </identity>
<parameters id="0" date="0" author="Gaston Lagaffe"> <parameters id="0" date="0" author="Gaston Lagaffe">
<modelization> <modelization>
<max_thread>0</max_thread> <max_thread value="0"/>
<max_cycles>13</max_cycles> <max_cycles value="13"/>
</modelization> </modelization>
<space> <space>
<dimension>1</dimension> <dimension value="1"/>
<size>1</size> <size value="39"/>
<site_multiplicity>2</site_multiplicity> <site_multiplicity value="2"/>
<boundaries>0</boundaries> <boundaries/>
</space> </space>
</parameters> </parameters>
<objects>aaa</objects> <objects>aaa</objects>
@ -26,5 +26,3 @@
<ref>aaa</ref> <ref>aaa</ref>
<quote>aaa</quote> <quote>aaa</quote>
</gem-graph-model> </gem-graph-model>

View File

@ -1,4 +1,3 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="gem-graph-model"> <xs:element name="gem-graph-model">
@ -25,8 +24,16 @@
<xs:element name="modelization"> <xs:element name="modelization">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="max_thread" type="xs:integer"/> <xs:element name="max_thread">
<xs:element name="max_cycles" type="xs:integer"/> <xs:complexType>
<xs:attribute name="value" type="xs:integer"/>
</xs:complexType>
</xs:element>
<xs:element name="max_cycles">
<xs:complexType>
<xs:attribute name="value" type="xs:integer"/>
</xs:complexType>
</xs:element>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>
@ -34,10 +41,25 @@
<xs:element name="space"> <xs:element name="space">
<xs:complexType> <xs:complexType>
<xs:sequence> <xs:sequence>
<xs:element name="dimension" type="xs:integer"/> <xs:element name="dimension">
<xs:element name="size" type="xs:integer"/> <xs:complexType>
<xs:element name="site_multiplicity" type="xs:integer"/> <xs:attribute name="value" type="xs:integer"/>
<xs:element name="boundaries" type="xs:integer"/> </xs:complexType>
</xs:element>
<xs:element name="size">
<xs:complexType>
<xs:attribute name="value" type="xs:integer"/>
</xs:complexType>
</xs:element>
<xs:element name="site_multiplicity">
<xs:complexType>
<xs:attribute name="value" type="xs:integer"/>
</xs:complexType>
</xs:element>
<xs:element name="boundaries">
<xs:complexType>
</xs:complexType>
</xs:element>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
</xs:element> </xs:element>