title: XSD: How do I import a data type from another XSD?
body: <p>I have the following start of an XSD:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
       xmlns:no="http://www.sychophants.com"&gt;
  &lt;xs:import namespace="http://www.sychophants.com" schemaLocation="current_obs.xsd"/&gt;
  </code></pre>
  
  <p>...and then some other definitions...</p>
  
  <pre><code>&lt;xs:element name="noInDatPletd" ref="no:in_dat"/&gt;
  </code></pre>
  
  <p>Where in_dat exists in a schema written by another organization. What I essentially want to do us create a schema that will contain an element of the in_dat type that is defined in the other ogranization's XSD.</p>
  
  <p>Am I even close to having this correct? I'm pretty new to XML.</p>
  
  <p>I keep getting</p>
  
  <pre><code>    http://location_of_my_xsd/temp.xsd:79:9: Invalid: Undefined element 
      no{http://www.sychophants.com}:in_dat referenced from content model 
  </code></pre>
  
  <p>from <a href="http://www.w3.org/2001/03/webdata/xsv" rel="nofollow noreferrer">http://www.w3.org/2001/03/webdata/xsv</a>, which is a schema validator.</p>
  
  <p>Thanks.</p>
  
  <p>edit:
  Thanks to the two of you who replied. The problem appears to be that the other organization did not define a targetNamespace attribute in their schema. The result is that I cannot import the namespace into my schema, which means I cannot use the type provided.</p>
  
  <p>I had to copy/paste the code, which is what I wanted to avoid... but you can't have everything you want, I guess.</p>