// KB: We are not resolving <import>ed or <include>d schemas from the root inline schemas.
// In other words, since we are resolving only between multiple root inline schemas,
// do not attempt to resolve if "rawSchemaLocationURI" is not null.
if (namespaceURI != null && rawSchemaLocationURI == null)
{
Definition definition = null;
for (EObject parent = xsdSchema.eContainer(); parent != null; parent = parent.eContainer())
{
if (parent instanceof Definition)
{
definition = (Definition)parent;
break;
}
}
if (definition != null && definition.getETypes() != null)
{
for (Iterator i = definition.getETypes().getEExtensibilityElements().iterator(); i.hasNext();)
{
Object o = i.next();
if (o instanceof XSDSchemaExtensibilityElement)
{
XSDSchema schema = ((XSDSchemaExtensibilityElement)o).getSchema();