checking ancestors for redefinition of attribute names