Which part don't you understand?
- How to invoke the processor?
- How to supply parameters?
- How to produce an output file?
They're all pretty basic, they're all well covered in documentation, and they all depend on which XSLT processor you are using.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference