downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DomXsltStylesheet->result_dump_mem> <DomXsltStylesheet->process
Last updated: Fri, 20 May 2011

view this page in

DomXsltStylesheet->result_dump_file

(PHP 4 >= 4.1.0)

DomXsltStylesheet->result_dump_file Vuelca el resultado de una transformación XSLT a un archivo

Descripción

string DomXsltStylesheet::result_dump_file ( DomDocument $xmldoc , string $filename )

Ya que DomXsltStylesheet->process siempre devuelve un documento Dom XML bien formado, no importa qué método de salida fue declarado en

<xsl:output>
y atributos/elementos similares, no es de mucho uso, si se quiere imprimir información o texto HTML 4.

Esta función al contrario cumple con

<xsl:output method="html|text">
y otras directivas de control de salida. Véase el ejemplo para instruirse de cómo usarla.

Ejemplos

Example #1 Guardar el resultado de una transformación XSLT a un fichero

<?php
$filename 
"stylesheet.xsl";
$xmldoc domxml_open_file("data.xml");
$xsldoc domxml_xslt_stylesheet_file($filename);
$result =  $xsldoc->process($xmldoc);
echo 
$xsldoc->result_dump_file($result"filename");     
?>



add a note add a note User Contributed Notes DomXsltStylesheet->result_dump_file
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites