Updating document attributes