correcting handling of IDREFS attribute