add print template name to attribute