Update document attributes