This was created by going through the xsl sheet and trying to emulate it, and it has these classes hard coded. There are a lot of classes and I didn't really look into how generic they could be made :s I can though!