blob: 8a752e2e38270a06856a1de84d58e6244d3bb5c2 [file] [log] [blame]
Daniel Veillard88399382004-06-04 09:29:37 +00001<?xml version="1.0" encoding="ISO-8859-1" ?>
2
3<!-- This test checks the implementation of the varieties of the xsd:simpleType element. -->
4
Daniel Veillardc0826a72004-08-10 14:17:33 +00005<schema xmlns="http://www.w3.org/2001/XMLSchema"
6 targetNamespace="http://FOO" xmlns:foo="http://FOO"
7 elementFormDefault="qualified">
Daniel Veillard88399382004-06-04 09:29:37 +00008
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>