Ver Mensaje Individual
  #4 (permalink)  
Antiguo 19/08/2008, 15:57
bisteck
 
Fecha de Ingreso: septiembre-2003
Mensajes: 265
Antigüedad: 20 años, 7 meses
Puntos: 1
Respuesta: Fatal error: Call to undefined function xslt_create()

Encontre este codigo y me funciono

Código:
<?php

$xmlstr = "
<employee>

<employeename>test</employeename>

<employeeaddress>test123</employeeaddress>

<SSN>12343456</SSN>

<company>TOPXML</company>

</employee>";

$dom = new domDocument;

$dom->loadXML($xmlstr);

$s_dom = simplexml_import_dom($dom);

echo "The name of the employee is <B>"

. $s_dom->employeename[0]."</B>";

echo "<BR>The address of the employee is <B>"

. $s_dom->employeeaddress[0]."</B>" ;

?>
el resultado es
Código:
The name of the employee is test
The address of the employee is test123
lo que ando buscado ejecutar un php que me muestre en la hoja de estilo xsl el resultado del xml

lei por hay que se puede con los pasos de descomentar el xsl en el php.ini

pero me sale el error

por ejemplo si hago un

echo xslt_backend_version();

el error es

Call to undefined function xslt_backend_version()

saludos

Última edición por bisteck; 20/08/2008 a las 08:02