compute active attribute of template from attribute of variants