title: Schema import without a namespace-attribute
body: <p>Hy,</p>
  
  <p>If i import a namespace like this:</p>
  
  <pre><code>&lt;xs:import namespace="UniqueIRIstyleNameSpaceName" schemaLocation="mySchema.xsd"&gt;&lt;/xs:import&gt;
  </code></pre>
  
  <p>I know that mySchema.xsd creates a targetNamespace="UniqueIRIstyleNameSpaceName".
  Now if i go to: <a href="http://www.w3schools.com/schema/el_import.asp" rel="nofollow">http://www.w3schools.com/schema/el_import.asp</a> and read the according API of the 'import' element defined in the namespace bound to 'xs' it says the attribute 'namespace' is optional. </p>
  
  <p>Now here are the questions:</p>
  
  <ul>
  <li><p>MUST the value of attribute 'namespace' of such an import always be the same as the value of 'targetNamespace' in the corresponding schema (.xsd)?</p></li>
  <li><p>If so: Wouldnt it be easier to just completly leave away the 'namespace' attribute at all?</p></li>
  <li><p>If not: ... Im in deep trouble since i seem to not have fully understood the namespace concept and would be realy interested in a few keywords where to look up information to close the leaks :)</p></li>
  </ul>
  
  <p>I ask this because i am currently working with XML/ XSDs for like the 5th time in my career and never seen it in another variation but 'namespace' attribute always there and matching 'targetNamespace's value in the according schema. </p>
  
  <p>Many thanks in advance &amp; regards</p>
  
  <p>Jba</p>