1 <?xml version=
"1.0" encoding=
"ISO-8859-1"?>
2 <xs:schema xmlns:
xs=
"http://www.w3.org/2001/XMLSchema" xmlns=
"http://FOO" targetNamespace=
"http://FOO">
4 <xs:element name=
"foo">
7 <xs:restriction base=
"typeA">
8 <xs:attribute name=
"barA" type=
"xs:string" use=
"optional"/>
14 <xs:complexType name=
"typeA">
15 <xs:attribute name=
"barA" type=
"xs:string" use=
"required"/>