redo the way entities in SGML are resolved, to allow for those used in attributes