XMLSchema > Attributes : introducung the type arrow
This commit is contained in:
parent
7d0719a227
commit
4fc99aee92
|
@ -29,8 +29,18 @@
|
|||
<arrow x="0" y="0" z="0" site="0" weight="0"/>
|
||||
</objects>
|
||||
|
||||
<space>aaa</space>
|
||||
<savestates>aaa</savestates>
|
||||
<initial_state id="test" date="1629830000" author="Jean Sirmai">
|
||||
<arrow x="0" y="0" z="0" site="1" weight="1"/>
|
||||
<arrow x="1" y="0" z="0" site="0" weight="1"/>
|
||||
<arrow x="10" y="0" z="0" site="1" weight="1"/>
|
||||
<arrow x="11" y="0" z="0" site="0" weight="1"/>
|
||||
<arrow x="20" y="0" z="0" site="1" weight="1"/>
|
||||
<arrow x="21" y="0" z="0" site="0" weight="1"/>
|
||||
<!-- three dimers have been defined-->
|
||||
|
||||
</initial_state>
|
||||
|
||||
<saved_states></saved_states>
|
||||
<transitions>aaa</transitions>
|
||||
<ref>aaa</ref>
|
||||
<quote>aaa</quote>
|
||||
|
|
|
@ -12,11 +12,15 @@
|
|||
<xs:attribute name="version" type="xs:float"/>
|
||||
<xs:attribute name="owner_id" type="xs:integer"/>
|
||||
|
||||
<xs:element name="arrow">
|
||||
<xs:complexType>
|
||||
<xs:attribute name="x" type="xs:integer" default="1"/>
|
||||
<xs:attribute name="y" type="xs:integer" default="0"/>
|
||||
<xs:attribute name="z" type="xs:integer" default="0"/>
|
||||
<xs:attribute name="site" type="xs:integer" default="1"/>
|
||||
<xs:attribute name="weight" type="xs:integer" default="0"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="gem-graph-model">
|
||||
<xs:complexType>
|
||||
|
@ -106,17 +110,9 @@
|
|||
|
||||
<xs:element name="objects">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
||||
|
||||
<xs:element name="arrow">
|
||||
<xs:complexType>
|
||||
<xs:attribute ref="x" use="required"/>
|
||||
<xs:attribute ref="y" use="required"/>
|
||||
<xs:attribute ref="z" use="required"/>
|
||||
<xs:attribute ref="site" use="required"/>
|
||||
<xs:attribute ref="weight" use="required"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
<xs:element ref="arrow"/>
|
||||
|
||||
</xs:sequence>
|
||||
<xs:attribute ref="id" use="required"/>
|
||||
|
@ -125,8 +121,20 @@
|
|||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="space" type="xs:string"/>
|
||||
<xs:element name="savestates" type="xs:string"/>
|
||||
<xs:element name="initial_state">
|
||||
<xs:complexType>
|
||||
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
||||
|
||||
<xs:element ref="arrow"/>
|
||||
|
||||
</xs:sequence>
|
||||
<xs:attribute ref="id" use="required"/>
|
||||
<xs:attribute ref="date" use="required"/>
|
||||
<xs:attribute ref="author" use="required"/>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
|
||||
<xs:element name="saved_states" type="xs:string"/>
|
||||
<xs:element name="transitions" type="xs:string"/>
|
||||
<xs:element name="ref" type="xs:string"/>
|
||||
<xs:element name="quote" type="xs:string"/>
|
||||
|
|
Loading…
Reference in New Issue