Extract common attributes of document