diff --git a/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml b/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml new file mode 100644 index 0000000000..51a5d56183 --- /dev/null +++ b/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml @@ -0,0 +1,74 @@ + + + + + DomXsltStylesheet->result_dump_file + + Dumps the result from a XSLT-Transformation into a file + + + + Description + + stringDomXsltStylesheet->result_dump_file + objectDomDocument + stringfilename + + + &warn.experimental.func; + + + 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 ]]> 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 ]]> + and other output control directives. See the example for instruction of how to use it. + + + + Saving the result of a XSLT transformation in a file + +process($xmldoc); +print $xsldoc->result_dump_file($result,"filename"); +?> +]]> + + + + + See also domxml_xslt_result_dump_mem, + domxml_xslt_process + + + + + + +