aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/tree/containment/test.xsd
blob: 002bddae28120b93c81ebde9e527e491bf359001 (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
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">

  <complexType name="id-ex">
    <simpleContent>
      <extension base="ID">
        <attribute name="id" type="ID"/>
      </extension>
    </simpleContent>
  </complexType>

  <complexType name="inner">
    <sequence>
      <element name="id" type="ID" minOccurs="0"/>
      <element name="id-ex" type="t:id-ex" minOccurs="0"/>
      <element name="ref" type="IDREF" minOccurs="0"/>
    </sequence>
  </complexType>

  <complexType name="outer">
    <sequence>
      <element name="i" type="t:inner" minOccurs="0"/>
      <element name="ref" type="IDREF" minOccurs="0"/>
    </sequence>
  </complexType>

</schema>