add function to transform xml to another xml due to xslt