(no version information, might be only in CVS)
DomXsltStylesheet_>result_dump_mem __
Dumps the result from a XSLT_Transformation back into a string
Description
string
DomXsltStylesheet_>result_dump_mem ( object DomDocument)
| 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_ Outputting the result of a XSLT transformation <?php
$filename = "stylesheet_xsl";
$xmldoc = domxml_open_file("data_xml");
$xsldoc = domxml_xslt_stylesheet_file($filename);
$result = $xsldoc_>process($xmldoc);
print $xsldoc_>result_dump_mem($result);
?> |
|
See also domxml_xslt_result_dump_file(),
domxml_xslt_process()