xslate template amended