title: Xsd redefine complexType
body: <p>I have 2 xsds.</p>
  
  <p>I'm trying to redefine some complex type from 1 xsd in the second one.</p>
  
  <p>But I get validation error on the redefinition.</p>
  
  <p>I can't understand why.</p>
  
  <p>The First Xsd (ConfigProperties.xsd):</p>
  
  <pre><code>?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xs:schema xmlns="http://example.com/configProperties" targetNamespace="http://example.com/configProperties" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"&gt;
  &lt;xs:element name="config-properties"&gt;
      &lt;xs:complexType&gt;
          &lt;xs:sequence&gt;
              &lt;xs:element ref="System"/&gt;
          &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  &lt;xs:element name="System"&gt;
      &lt;xs:complexType&gt;
          &lt;xs:sequence&gt;
              &lt;xs:element minOccurs="1" maxOccurs="1" name="PushMessageFields" type="PushMessageFields"/&gt;
          &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  &lt;xs:complexType name="PushMessageFields"/&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>The Second Xsd (SomeConfigProperties.xsd):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xs:schema xmlns="http://example.com/SomeConfigProperties"  targetNamespace="http://example.com/SomeConfigProperties"  xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"&gt;
  
  
      &lt;xs:redefine schemaLocation="ConfigProperties.xsd"&gt;
          &lt;xs:complexType name="PushMessageFields"&gt;
            &lt;xs:complexContent&gt;
              &lt;xs:extension base="PushMessageFields"&gt;
                &lt;xs:sequence&gt;
                  &lt;xs:element name="color" type="xs:string"/&gt;
                &lt;/xs:sequence&gt;
              &lt;/xs:extension&gt;
            &lt;/xs:complexContent&gt;
          &lt;/xs:complexType&gt;
        &lt;/xs:redefine&gt;
  &lt;/xs:schema&gt; 
  </code></pre>
  
  <p>I get the error in the second XSD: "cannot resolve the name 'PushMessageFields' ".</p>
  
  <p>Where is my problem? </p>