<ref> tag with name "$2" defined in <references> has group attribute "$1" which does not appear in prior text.