Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

49 lines
1.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:simpleType name="MyString">
<xs:restriction base="xs:string">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleType>
<xs:complexType name="MyType">
<xs:simpleContent>
<xs:extension base="MyString">
<xs:attribute name="Id" type="MyString" use="required" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="MyTest1">
<xs:complexType>
<xs:simpleContent>
<xs:restriction base="MyType">
<xs:maxLength value="10" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="MyTest2">
<xs:complexType>
<xs:simpleContent>
<xs:restriction base="MyType">
<xs:attribute name="Id" type="MyString" use="required" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="MyTest3">
<xs:complexType>
<xs:simpleContent>
<xs:restriction base="MyType">
<xs:maxLength value="10" />
<xs:attribute name="Id" type="MyString" use="required" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>