#20794 [Opn->Csd]: xsl:output not affecting output correctly
| From: | verx at implix dot com | Date: | Thu, 09 Jan 2003 14:23:54 +0000 |
| Subject: | #20794 [Opn->Csd]: xsl:output not affecting output correctly | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969350789@lists.php.net to get a copy of this message | ||
ID: 20794
User updated by: verx@implix.com
Reported By: verx@implix.com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Linux, FreeBSD
PHP Version: 4.3.0RC2
New Comment:
Documentation updated. Closing.
Previous Comments:
------------------------------------------------------------------------
[2002-12-10 16:08:27] verx@implix.com
My mistake. You're right. Your solution works perfectly.
Note that:
$xsldoc = domxml_xslt_stylesheet_file($filename);
$result = $xsldoc->process($xmldoc[,$params]);
$result->dump_mem();
will also produce output but ommiting <xsl:output> tag.
I have been fooled by $params in your example and
made $params = array('method' => 'html') and I didn't
really check that <xsl:output> is indeed working.
------------------------------------------------------------------------
[2002-12-10 13:14:40] chregu@php.net
What's the problem with the solution I showed you?
It should exactly give you the output expected from <xsl:output
method="html">
you don't have to insert output parameters from php.
Although, you do need PHP4.3 ...
chregu
------------------------------------------------------------------------
[2002-12-03 15:03:25] verx@implix.com
IMHO it is not so perfect to insert output parameters from
application. However, the example you have given is working quite well
and that's what I wanted to achieve. On the other hand I think users
would appreciate having XSLT engine that is fully W3C compliant :)
I'm not into internals of PHP so my question is - is it very difficult
to make <xsl:output> working, or even - is it possible? :)
------------------------------------------------------------------------
[2002-12-03 12:04:01] derick@php.net
Let's make it a Doc problem then
------------------------------------------------------------------------
[2002-12-03 11:44:45] chregu@php.net
Use
$xsldoc = domxml_xslt_stylesheet_file($filename);
$result = $xsldoc->process($xmldoc[,$params]);
$xsldoc->result_dump_mem($result);
(or $xsldoc->result_dump_file($result,$filename);)
to get what you want.
(undocument, AFAIK...)
chregu
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/20794
--
Edit this bug report at http://bugs.php.net/?id=20794&edit=1