Imported Upstream version 2.8.0
[platform/upstream/libxml2.git] / test / schemas / xsd-simpleType-varieties_0.xsd
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2
3 <!-- This test checks the implementation of the varieties of the xsd:simpleType element. -->
4     
5 <schema xmlns="http://www.w3.org/2001/XMLSchema" 
6         targetNamespace="http://FOO" xmlns:foo="http://FOO" 
7         elementFormDefault="qualified"> 
8
9         <element name="foo">
10                 <complexType>
11                         <sequence maxOccurs="unbounded">
12                                 <element name="barA">
13                                         <simpleType>
14                                                 <union memberTypes="foo:typeA foo:typeB"/>      
15                                         </simpleType>
16                                 </element>
17                                 <element name="barB">
18                                         <simpleType>
19                                                 <list itemType="foo:typeA"/>      
20                                         </simpleType>
21                                 </element>        
22                                 <element name="barC">
23                                         <simpleType>
24                                                 <restriction base="string">
25                                                         <enumeration value="tequilla"/>                   
26                                                 </restriction>     
27                                         </simpleType>
28                                 </element>                
29                         </sequence>
30                 </complexType>
31         </element>
32    
33         <simpleType name="typeA">
34                 <restriction base="string">
35                         <enumeration value="pub"/>                
36                 </restriction>
37         </simpleType> 
38    
39         <simpleType name="typeB">
40                 <restriction base="string">
41                         <enumeration value="fajita"/>             
42                 </restriction>
43         </simpleType>    
44   
45 </schema>