Generally you can't automatically generate XSL.
Xsl is basically a set of rules or instructions how to transform one xml to another one.
So you have to write it manually, and to do so you need to know both how original xml looks like
and how transformed xml should look like.
You can find good basic tutorial
here[
^]