pattern for document -> document entry