I have tasted XML and XSL in my third year of engineeing, where I made a project on Automatic website creation by using the XSL and XML. The whole project was about how to create a website that generates different websites, based on the different templates (under some categories). Each user can enjoy with whatever Template suits his needs, and just enter the data…. Its ready within seconds, and handed to user in Zip format
See the above presentation. It might give you an idea how it was built.