replace name with item_tmpl_elem in item_attrs