Usually, you use a XSLT file to transform an XML file to another document. You don't transform XML to XSLT.
You should read basic notions about usage of XSLT files:
XSLT - Wikipedia[
^]
XSLT - W3Schools[
^]
If you are new, you have to learn; there is no other way :)
Good luck.