I wonder why everybody want's to use XSLT on the client side. On te Server side it is so powerful and works like a charme with PHP:
// XML
$xml_doc = new DOMDocument();
$xml_doc->load("file1.xml");
// XSL $xsl_doc = new DOMDocument(); $xsl_doc->load("file.xsl");
// Proc $proc = new XSLTProcessor(); $proc->importStylesheet($xsl_doc); $newdom = $proc->transformToDoc($xml_doc);
// Output print $newdom->saveXML();