note 46922 added to function.xsl-xsltprocessor-transform-to-xml
| From: | gem at rellim dot com | Date: | Wed, 27 Oct 2004 20:44:40 +0000 |
| Subject: | note 46922 added to function.xsl-xsltprocessor-transform-to-xml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79210@lists.php.net to get a copy of this message | ||
The method transformToXML() returns the results as a string or boolean FALSE on failure.
Refer to xsl_xsltprocessor_transform_to_uri for a complete example.
If you change the last line of the example to:
$proc->transformToURI($xml, 'php://output');
then the translated results will be output instead of saved to a file.
You could achieve the same results this way with transformToXML():
echo $proc->transformToXML($xml);
----
Manual Page -- http://www.php.net/manual/en/function.xsl-xsltprocessor-transform-to-xml.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46922
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46922&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46922&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46922&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46922&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46922&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46922&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46922&report=yes
Search -- http://master.php.net/manage/user-notes.php