(no version information, might be only in CVS)
DomXsltStylesheet_>result_dump_file __
Dumps the result from a XSLT_Transformation into a file
Description
string
DomXsltStylesheet_>result_dump_file ( object DomDocument, string filename)
| Aviso |
Esta función
es EXPERIMENTAL_ Esto significa que el
comportamiento de esta función, el nombre de esta
función y en definitiva TODO lo documentado sobre esta
función, puede cambiar en una futura version de PHP SIN
AVISO_ La advertencia queda hecha, y utilizar esta extensión
queda bajo su propia responsabiliad_ |
This function is only available since PHP 4_3
Since DomXsltStylesheet_>process() always returns a well_formed XML DomDocument,
no matter what output method was declared in <xsl:output> and similar
attributes/elements, it's of not much use, if you want to output HTML 4 or text data_
This function on the contrary honors <xsl:output method="html|text">
and other output control directives_ See the example for instruction of how to use it_
Ejemplo 1_ Saving the result of a XSLT transformation in a file <?php
$filename = "stylesheet_xsl";
$xmldoc = domxml_open_file("data_xml");
$xsldoc = domxml_xslt_stylesheet_file($filename);
$result = $xsldoc_>process($xmldoc);
print $xsldoc_>result_dump_file($result,"filename");
?> |
|
See also domxml_xslt_result_dump_mem(),
domxml_xslt_process()