What do you mean by XML template? Are you trying to generate a report in a specific XML based format (custom schema), or are you trying to take the default TestStand XML report and display it in a different format using a custom XML stylesheet?
https://www.linkedin.com/in/trentweaver