// TODO: I think I need to check all imports, not just those
// matching the same namespace...
Iterator<?> it = definition.getImports(qname.getNamespaceURI()).iterator();
while (it.hasNext()) {
ImportImpl imp = (ImportImpl) it.next();
imp.importDefinitionOrSchema();
schema = imp.getESchema();
if (schema != null) {
result = finder.find(schema, qname);
if (result != null)
return result;
}
Definition importedDefinition = imp.getEDefinition();
if (importedDefinition != null) {
result = resolveXSD(importedDefinition, qname, finder, seen );
if (result != null) {
return result;
}