{
substitutionGroup = StscState.get().findDocumentType(elt.getSubstitutionGroup(),
sImpl.getChameleonNamespace(), sImpl.getTargetNamespace());
if (substitutionGroup == null)
StscState.get().notFoundError(elt.getSubstitutionGroup(), SchemaType.ELEMENT, elt.xgetSubstitutionGroup(), true);
// recovery - ignore substitution group
else if (! resolveSubstitutionGroup(substitutionGroup) )
substitutionGroup = null;
else
sImpl.setSubstitutionGroup(elt.getSubstitutionGroup());