summaryrefslogtreecommitdiff
path: root/tests/cxx/parser/validation/built-in/any-type/test.xsd
blob: 86a4e13842bb67fb865c2d1ab8beec15fabf2390 (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
27
28
29
30
31
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <complexType name="any-extension">
    <complexContent mixed="true">
      <extension base="anyType">
	<attribute name="x" type="string"/>
      </extension>
    </complexContent>
  </complexType>

  <complexType name="any-simple-extension">
    <simpleContent>
      <extension base="anySimpleType">
	<attribute name="x" type="string"/>
      </extension>
    </simpleContent>
  </complexType>

  <complexType name="type">
    <choice maxOccurs="unbounded">
      <element name="a" type="anyType"/>
      <element name="a-extension" type="t:any-extension"/>
      <element name="as-extension" type="t:any-simple-extension"/>
    </choice>
    <attribute name="as" type="anySimpleType"/>
  </complexType>

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

</schema>