transform_attributes allows for arbitrary transforms on groups of attributes