summaryrefslogtreecommitdiff
path: root/tests/schema/forward/test.xsd
blob: c7cc24ec8b00d4c2a887808c797cffc33494a553 (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
<?xml version="1.0" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd"
	    xmlns:test="http://www.codesynthesis.com/xmlns/test"
            targetNamespace="http://www.codesynthesis.com/xmlns/test">

<!--

  Various weird forward reference combinations.

-->

  <!-- case 1 -->  
    
  <xsd:complexType name="Type1A">
    <xsd:complexContent>
      <xsd:extension base="test:Type1B">
        <xsd:sequence>
          <xsd:element name="bar" type="xsd:string"/>
        </xsd:sequence>
      </xsd:extension>
    </xsd:complexContent>  
  </xsd:complexType>
  
  <xsd:complexType name="Type1B">
    <xsd:sequence>
      <xsd:element name="foo" type="xsd:string"/>
    </xsd:sequence>
  </xsd:complexType>
 
</xsd:schema>