Can anyone come up with the javascript needed to do this?
<?php
# START XSLT
$xslt = new XSLTProcessor();
$XSL = new DOMDocument();
$XSL->load('example.xsl');
$xslt->importStylesheet($XSL);
# LOAD XML FILE
$XML = new DOMDocument();
$XML->load('data.xml');
#PRINT
print $xslt->transformToXML($XML);
?>
Thanks, I'm using this to transform some XML data on my HTML page.