Estoy intentando utilizar la función, para comparar un xml y un xslt pero envía un error, según lo que encontré es que no reconoce transformToXML. Cita: $xslt = new XSLTProcessor();
$XSL = new DOMDocument();
$XSL->load("d:\cadenaoriginal_2_0.xslt", LIBXML_NOCDATA);
$xslt->importStylesheet( $XSL );
print $xslt->transformToXML( $XML );
error:
Warning: DOMDocument::load() [domdocument.load]: Start tag expected, '<' not found in file:///d:/cadenaoriginal_2_0.xslt, line: 2 in D:\xampp\htdocs\md5.php on line 123
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]: compilation error in D:\xampp\htdocs\md5.php on line 124
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]: xsltParseStylesheetProcess : empty stylesheet in D:\xampp\htdocs\md5.php on line 124
Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: No stylesheet associated to this object in D:\xampp\htdocs\md5.php on line 126
Baje los .dll y los guarde dentro de la carpeta php/ext y dentro de sistem32 Cita: Sablot.dll
Expat.dll
Php_sablot.dll
Inconv.dll
Xslt.dll
En el archivo php.ini agregue la línea Código PHP:
extansion=php_xslt.dll;
extensión=xslt.dll;
Al intentar levantar el servicio de php me dice que no los encuentra en la ruta php/ext Alguien sabe que estoy haciendo mal, gracias.