Added additional restriction for XSD schema.
--HG-- branch : feature
This commit is contained in:
parent
c33b178e3c
commit
b6bc6cbeae
|
@ -114,7 +114,7 @@
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
<xs:element name="material" minOccurs="0" maxOccurs="9">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:attribute name="number" type="xs:unsignedInt" use="required"/>
|
<xs:attribute name="number" type="userMaterialType" use="required"/>
|
||||||
<xs:attribute name="name" type="xs:string"/>
|
<xs:attribute name="name" type="xs:string"/>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
@ -946,4 +946,10 @@
|
||||||
<xs:enumeration value="4"/><!--Centers horizontally in the available space-->
|
<xs:enumeration value="4"/><!--Centers horizontally in the available space-->
|
||||||
</xs:restriction>
|
</xs:restriction>
|
||||||
</xs:simpleType>
|
</xs:simpleType>
|
||||||
|
<xs:simpleType name="userMaterialType">
|
||||||
|
<xs:restriction base="xs:unsignedInt">
|
||||||
|
<xs:minInclusive value="1"/>
|
||||||
|
<xs:maxInclusive value="9"/>
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
</xs:schema>
|
</xs:schema>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user