--TEST-- Test the basics to function XSLTProcessor::transformToXml(). --CREDITS-- Rodrigo Prado de Jesus --EXTENSIONS-- xsl --FILE-- bob joe 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->transformToXML($xmldoc)); ?> --EXPECT-- string(135) "

Users

Bob
Joe
"