summaryrefslogtreecommitdiff
path: root/tests/cxx/tree/default/omit/test.xsd
blob: bfc68d48e934f8aa46e364920c4408b07b9a3762 (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
<?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="type">
    <sequence>
      <element name="derived" type="t:derived"/>
    </sequence>
  </complexType>

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

</schema>