title: JiBX: How to run codegen on a schema that imports into the no-namespace schema
body: <p>I have a schema here where I am trying to include/import another schema that has no namespace (and this cannot be changed because it comes from another vendor and it would no longer validate their XML). Here is the first Schema:</p>
  
  <pre><code>&lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
  xmlns:samp="http://sample/namespace" 
  targetNamespace="http://sample/namespace" 
  elementFormDefault="unqualified" attributeFormDefault="unqualified"
  xmlns:otr1="http://sample/import/namespace1" 
  xmlns:otr2="http://sample/import/namespace2"&gt;
  
  &lt;xs:import namespace="http://sample/import/namespace1" schemaLocation="other1.xsd" /&gt;
  &lt;xs:import namespace="http://sample/import/namespace2" schemaLocation="other2.xsd"  /&gt;
  &lt;!-- This one below is having problems, it is valid XML, and I am able to use it
  but I am not meeting the actual requirments I have (explained later) --&gt;
  &lt;xs:import schemaLocation=="NO_NAME_SPACE_PROBLEM.xsd"/&gt;
  
  ...
  &lt;xs:element ref="some-elem-from-NO_NAME_SPACE_PROBLEM_SCHEMA"/&gt;
  ...
  
  
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>And the "NO_NAME_SPACE_SHEMA_PROBLEM.xsd" which can be changed to some extent, but it cannot have namespace.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
       elementFormDefault="unqualified" attributeFormDefault="unqualified"&gt;
  
   &lt;xsd:element name="some-elem-from-NO_NAME_SPACE_PROBLEM_SCHEMA" 
      type="xsd:string" nillable="true"/&gt;
  
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>The problem I get when running JiBX codegen:</p>
  
  <pre><code> [echo] Running code generation
   [java] Output to directory C:\DOCUME~1\user1\LOCALS~1\Temp\nguser\Temp-Src
   [java] ERROR validation.ValidationContext - Error: Referenced element '{http://sample/namespace}:some-elem-from-NO_NAME_SPACE_PROBLEM_SCHEMA` is not defined for element at (line 69, col 32, in parent.xsd)
   [java] Terminating due to errors in input schemas
   [java] Error: Referenced element '{http://sample/namespace}:some-elem-from-NO_NAME_SPACE_PROBLEM_SCHEMA' is not defined for element at (line 69, col 32, in parent.xsd)
  </code></pre>