Use templateXML function when saving composer template