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"> 4 5 <xs:element name="foo"> 6 <xs:complexType> 7 <xs:complexContent> 8 <xs:extension base="typeA"> 9 <xs:attribute name="barA_1" type="xs:string" use="optional"/> 10 <xs:attribute name="barA_2" type="xs:string" use="required"/> 11 </xs:extension> 12 </xs:complexContent> 13 </xs:complexType> 14 </xs:element> 15 16 <xs:complexType name="typeA"> 17 <xs:attribute name="barA_1" type="xs:string" use="required"/> 18 </xs:complexType> 19 20</xs:schema> 21 22 23