1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
3 xmlns="http://FOO" targetNamespace="http://FOO">
5 <xs:element name="foo">
8 <xs:restriction base="typeA">
9 <xs:attribute name="barA_1" type="xs:string" use="optional"/>
11 <xs:attribute name="barA_2" type="xs:string" use="required"/>
13 <xs:attribute name="barA_3" type="xs:string" use="prohibited"/>
16 <xs:attribute name="barB_1" type="xs:string" use="optional"/>
17 <!-- 2.1.1 inconsistent ( OR 3 ) -->
18 <xs:attribute name="barB_2" type="xs:string" use="required"/>
20 <xs:attribute name="barB_3" type="xs:string" use="prohibited"/>
23 <xs:attribute name="barC_1" type="xs:string" use="optional"/>
24 <!-- 2.2 no match in base -->
25 <xs:attribute name="barC_2" type="xs:string" use="required"/>
26 <!-- 2.2 no match in base -->
27 <xs:attribute name="barC_3" type="xs:string" use="prohibited"/>
30 <xs:attribute name="barD_1" type="xs:string" use="optional"/>
31 <!-- 2.2 no match in base -->
32 <xs:attribute name="barD_2" type="xs:string" use="required"/>
33 <!-- 2.2 no match in base -->
34 <xs:attribute name="barD_3" type="xs:string" use="prohibited"/>
42 <xs:complexType name="typeA">
43 <xs:attribute name="barA_1" type="xs:string" use="optional"/>
44 <xs:attribute name="barA_2" type="xs:string" use="optional"/>
45 <xs:attribute name="barA_3" type="xs:string" use="optional"/>
46 <xs:attribute name="barB_1" type="xs:string" use="required"/>
47 <xs:attribute name="barB_2" type="xs:string" use="required"/>
48 <xs:attribute name="barB_3" type="xs:string" use="required"/>
49 <xs:attribute name="barC_1" type="xs:string" use="prohibited"/>
50 <xs:attribute name="barC_2" type="xs:string" use="prohibited"/>
51 <xs:attribute name="barC_3" type="xs:string" use="prohibited"/>