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