aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/tree/default/test.xsd
blob: aa9ac66c7bdac6a0fb02a60fe904bd4610541cbd (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
32
33
34
35
36
37
38
39
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <complexType name="base">
    <sequence>
      <element name="a" type="string"/>
    </sequence>
    <attribute name="x" type="string" default="foo"/>
    <attribute name="q1" type="int" fixed="1" use="required"/>
  </complexType>

  <complexType name="derived">
    <complexContent>
      <extension base="t:base">
        <attribute name="y" type="int" default="-20"/>
        <attribute name="p" type="string" fixed="bar"/>
	<attribute name="q2" type="int" fixed="2" use="required"/>
      </extension>
    </complexContent>
  </complexType>

  <complexType name="qname">
    <sequence>
      <!--element name="a" type="QName" default="a"/-->
    </sequence>
    <attribute name="x" type="QName" default="x"/>
    <attribute name="y" type="QName" fixed="y" use="required"/>
  </complexType>

  <complexType name="type">
    <sequence>
      <element name="derived" type="t:derived"/>
      <element name="qname" type="t:qname"/>
    </sequence>
  </complexType>

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

</schema>