change to use det:documentRefsDecl and det:entityRefsDecl in refsDecl