summaryrefslogtreecommitdiff
path: root/xsd/tests/clash/clash.xsd
blob: 8458908dd0cbb33286190c4004a2ee33449e8d06 (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
<?xml version="1.0" encoding="UTF-8"?>
<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="http://www.codesynthesis.com/xmlns/test/bar"
	    xmlns:f="http://www.codesynthesis.com/xmlns/test/foo"
            targetNamespace="http://www.codesynthesis.com/xmlns/test/bar">

  <xsd:import namespace="http://www.codesynthesis.com/xmlns/test/foo" schemaLocation="foo.xsd"/>

  <!-- example of a name clash. -->

  <xsd:element name="foo" type="xsd:string"/>

  <xsd:complexType name="Foo">
    <xsd:sequence>
      <xsd:element ref="foo"/>
      <xsd:element name="foo" type="xsd:long"/>
      <xsd:element ref="f:foo"/>
      <xsd:element ref="f:foo"/>
    </xsd:sequence>
    <xsd:attribute name="foo" type="xsd:string"/>
  </xsd:complexType>

</xsd:schema>