We're not here to do your homework for you (or even more, to do your job for you). To get started you need to find out more about the requirements and you need to read more about the technology. Come back when you've got a specific coding problem.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference