Transforming XML with XSLT and PHP functions
<? $dom = new DOMDocument; $dom->loadXML('<blank/>'); $xsl = new DOMDocument; $xsl->load('stylesheet.xsl'); $xslt = new XSLTProcessor(); $xslt->importStylesheet($xsl); $xslt->registerPHPFunctions(); print $xslt->transformToXML($dom); ?>