<?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>
