1# simple choice test
2
3--- |
4  <?xml version="1.0" encoding="UTF-8"?>
5  <schema xmlns="http://www.w3.org/2001/XMLSchema">
6    <element name="foo">
7      <complexType>
8        <choice>
9          <element name="this" />
10          <element name="that" />
11          <element name="other"/>
12        </choice>
13      </complexType>
14    </element>
15  </schema>
16
17--- |
18  <foo>
19    <this/>
20  </foo>
21--- >
22PASS
23
24--- |
25  <foo>
26    <that/>
27  </foo>
28--- >
29PASS
30
31--- |
32  <foo>
33    <other/>
34  </foo>
35--- >
36PASS
37
38--- |
39  <foo>
40    <this/>
41    <that/>
42  </foo>
43--- >
44FAIL /'that' does not match/
45
46--- |
47  <foo>
48    <that/>
49    <other/>
50  </foo>
51--- >
52FAIL
53