aboutsummaryrefslogtreecommitdiff
path: root/tests/cxx/tree/prefix/test.xsd
blob: 421fdc0d1b1a5f8f9f2e13c42284f7cf1972588a (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
40
<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
        xmlns:f="foo"
	xmlns:b="bar"
	xmlns:t="test"
	targetNamespace="test">

  <import namespace="foo" schemaLocation="foo.xsd"/>
  <import namespace="bar" schemaLocation="bar.xsd"/>

  <complexType name="a">
    <sequence>
      <element ref="f:efoo"/>
    </sequence>
    <attribute ref="b:abar"/>
  </complexType>

  <complexType name="b">
    <sequence>
      <element ref="f:base"/>
    </sequence>
  </complexType>

  <complexType name="c">
    <sequence>
      <element ref="f:base"/>
    </sequence>
  </complexType>

  <complexType name="type">
    <sequence>
      <element name="a" type="t:a"/>
      <element name="b" type="t:b"/>
      <element name="c" type="t:c"/>
    </sequence>
  </complexType>

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

</schema>