Index: /home/jwi/workspace/XmlSchema/src/test/java/tests/IncludeTest.java
===================================================================
--- /home/jwi/workspace/XmlSchema/src/test/java/tests/IncludeTest.java	(revision 439263)
+++ /home/jwi/workspace/XmlSchema/src/test/java/tests/IncludeTest.java	(working copy)
@@ -121,4 +121,15 @@
 
     }
 
+
+	/**
+	 * Test importing a schema without namespace into a schema
+	 * with namespace.
+	 */
+	public void testImportSchemaWithoutNamespace() throws Exception {
+        InputStream is = new FileInputStream(Resources.asURI("includingWithNamespace.xsd"));
+        XmlSchemaCollection schemaCol = new XmlSchemaCollection();
+        XmlSchema schema = schemaCol.read(new StreamSource(is), null);
+	}
+
 }
\ No newline at end of file
Index: /home/jwi/workspace/XmlSchema/src/test/test-resources/includedWithoutNamespace.xsd
===================================================================
--- /home/jwi/workspace/XmlSchema/src/test/test-resources/includedWithoutNamespace.xsd	(revision 0)
+++ /home/jwi/workspace/XmlSchema/src/test/test-resources/includedWithoutNamespace.xsd	(revision 0)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    attributeFormDefault="unqualified"
+    elementFormDefault="qualified">
+  <xs:simpleType name="XdwsPrincipalId">
+    <xs:restriction base="xs:string"/>
+  </xs:simpleType>
+
+  <xs:simpleType name="XdwsGroupId">
+    <xs:restriction base="XdwsPrincipalId"/>
+  </xs:simpleType>
+</xs:schema>
Index: /home/jwi/workspace/XmlSchema/src/test/test-resources/includingWithNamespace.xsd
===================================================================
--- /home/jwi/workspace/XmlSchema/src/test/test-resources/includingWithNamespace.xsd	(revision 0)
+++ /home/jwi/workspace/XmlSchema/src/test/test-resources/includingWithNamespace.xsd	(revision 0)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:tns="http://tns.demo.org"
+    targetNamespace="http://tns.demo.org"
+    attributeFormDefault="unqualified"
+    elementFormDefault="qualified">
+  <xs:include schemaLocation="src/test/test-resources/includedWithoutNamespace.xsd"/>
+
+  <xs:element name="foo" type="tns:XdwsGroupId"/>
+</xs:schema>
