fixed variable values not being formatted in XML/HTML result