aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/hybrid/union/test.xsd
blob: 60a8d212b01a83a451208c978baf989b4e10fe13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <simpleType name="int-string-union">
    <union memberTypes="int string"/>
  </simpleType>

  <complexType name="int-string-union-lang">
    <simpleContent>
      <extension base="t:int-string-union">
        <attribute name="lang" type="string"/>
      </extension>
    </simpleContent>
  </complexType>

  <complexType name="type">
    <sequence>
      <element name="int-string-union" type="t:int-string-union"/>
      <element name="int-string-union-lang" type="t:int-string-union-lang"/>
      <element name="dummy" type="boolean" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
  </complexType>

  <element name="root" type="t:type"/>

</schema>