Clean mapref XSLT code