When tempformat is 1 we need to free data->format since it comes from xsltEvalAttrValueTemplate and otherwise it leaks