--TEST--
cloneDocument
--EXTENSIONS--
xsl
dom
--FILE--
loadXML('hello');
function test() {
global $xml;
$xml->documentElement->firstChild->textContent = "bye";
}
$xsl = new DOMDocument;
$xsl->loadXML(<<
XML);
$xslt = new XSLTProcessor;
$xslt->registerPHPFunctions();
$xslt->cloneDocument = true;
$xslt->importStylesheet($xsl);
echo $xslt->transformToXml($xml);
$xslt = new XSLTProcessor;
$xslt->registerPHPFunctions();
$xslt->cloneDocument = false;
$xslt->importStylesheet($xsl);
echo $xslt->transformToXml($xml);
?>
--EXPECT--
hello
bye