--TEST-- Test the basics to function XSLTProcessor::transformToDoc(). --CREDITS-- Rodrigo Prado de Jesus --EXTENSIONS-- xsl --FILE-- royopa EOB; $xsl = <<

Users

EOB; $xmldoc = new DOMDocument('1.0', 'utf-8'); $xmldoc->loadXML($xml); $xsldoc = new DOMDocument('1.0', 'utf-8'); $xsldoc->loadXML($xsl); $proc = new XSLTProcessor(); $proc->registerPHPFunctions(); $proc->importStyleSheet($xsldoc); var_dump($proc->transformToDoc($xmldoc)->firstChild->tagName); ?> --EXPECT-- string(4) "html"