title: Error when validating xml schema
body: <p>I want to make a simple schema for an empty elment</p>
  
  <pre><code> &lt;product orderid="4"/&gt;
  </code></pre>
  
  <p>I created my XSD like this: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  
  &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  targetNamespace="http://xml.netbeans.org/schema/first"
  xmlns:tns="http://xml.netbeans.org/schema/first"
  elementFormDefault="qualified"&gt;
  
  &lt;xsd:element name="product" type="prodtype"/&gt;
  &lt;xsd:complexType name="prodtype"&gt;
          &lt;xsd:attribute name="prodid" type="xsd:integer"/&gt;
  &lt;/xsd:complexType&gt;
  
  &lt;/xsd:schema&gt;
  </code></pre>
  
  <p>I get the following error when validating the XML against the XSD:</p>
  
  <pre><code> Error resolving component 'prodtype'. It was detected that 'prodtype' has no namespace, but components with no target namespace are not referenceable from schema document 'file:/D:/Teacher%20assistant%202011/First%20term/web%20services/test%20programs/BpelModule1/src/product.xsd'. If 'prodtype' is intended to have a namespace, perhaps a prefix needs to be provided. If it is intended that 'prodtype' has no namespace, then an 'import' without a "namespace" attribute should be added to 'file:/D:/Teacher%20assistant%202011/First%20term/web%20services/test%20programs/BpelModule1/src/product.xsd'.
  </code></pre>