Skeleton for transform function for attributes.