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

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

  <attribute name="abar" type="int"/>

  <complexType name="derived1">
    <complexContent>
      <extension base="f:base">
        <sequence>
          <element name="y" type="int"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

  <complexType name="derived2">
    <complexContent>
      <extension base="f:base">
        <sequence>
          <element name="z" type="int"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

  <element name="derived" type="b:derived1" substitutionGroup="f:base"/>

</schema>