Type and formatter in set-attribute