This example shows how to apply an XSLT stylesheet (*.xsl) to a *.xml file in order to produce *.svg with PHP 5. PHP 5 needs to read both xml in xslt into a dom object before.
Use a browser like Firefox 2x or Opera 9. Of course, you can also do this offline by using an xslt processor like saxon or xalan. I don't know how to do this client side (so that it works in cross-browser environment). I do not use IE for my stuff.