Imported Upstream version 2.8.0
[platform/upstream/libxml2.git] / test / schemas / derivation-restriction-anyType.xsd
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="xs:anyType">
9                                         <xs:attribute name="barA_1" type="xs:string"  use="optional"/>
10                                         <!-- OK -->                                                             
11                                         <xs:attribute name="barA_2" type="xs:string"  use="required"/>
12                                         <!-- OK -->                                                                     
13                                         <xs:attribute name="barA_3" type="xs:string"  use="prohibited"/>
14                                         <!-- OK -->     
15                                 </xs:extension>
16                         </xs:complexContent>
17                 </xs:complexType>
18         </xs:element>   
19
20 </xs:schema>
21
22