I think you need to find some resource to help you learn about doing client-side transformations. If you have a specific problem I can try to help, but I can't write you a tutorial on this forum. (Buy my book!)
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference