Возможно, вы захотите ограничить значения для console
, maker
.См. XSD Ограничения / Фасеты .Кроме того, number
не может иметь отрицательных значений.Все остальное в порядке, я думаю.
обновление:
...
<xs:element name="gaming-platform">
<xs:complexType>
<xs:attribute name="console" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="XBox"/>
<xs:enumeration value="PSP"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="maker" use="required">
...
</xs:attribute>
<xs:attribute name="ninstock" use="required">
...
</xs:attribute>
</xs:complexType>
</xs:element>