schema.setTargetNamespace(uri);
SyntheticSchemaResolver resolver = new SyntheticSchemaResolver();
for (int i = 0; i < count; i++) {
SchemaElement inclschema = schemas[i];
inclschema.setEffectiveNamespace(uri);
IncludeElement include = new IncludeElement();
ISchemaResolver inclresolver = inclschema.getResolver();
include.setLocation(inclresolver.getId());
resolver.addResolver(inclresolver);
schema.getSchemaChildren().add(include);
}
schema.setResolver(resolver);
ordereds.add(schema);