ID:               33299
 Updated by:       [EMAIL PROTECTED]
 Reported By:      clicknmix at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         XSLT related
 Operating System: Linux
 PHP Version:      5.0.4
 New Comment:

You changed 3 components at once, bad for pointing the error 
at something...

As it works for me (with your combination, but on OSX, not 
Linux), would it be possible for you to use the old libxml/
libxslt configuration and test that with php 5.0.4. Or use 
thenew libxml/libxslt configuration with php 5.0.1? I have 
no idea, what's going wrong here, but as I use that 
functionality from a day-to-day basis, I can tell you, it 
works for me (and I never heard of that problem before from 
others using my software)


Previous Comments:
------------------------------------------------------------------------

[2005-06-13 19:17:08] clicknmix at gmail dot com

The above comment didnt make it very clear, but Ritch is running on the
same platform as me:
Linux running Apache2 with PHP 5.0.4
libxml2: 2.6.16
libxslt: 1.1.11.

The scripts do work on a previous platform: 
Linux running Apache1 with PHP 5.0.1
libxml2: 2.6.8
libxslt: 1.0.19

Additional it's might be worth mentioning using the php:function to
simply return a value works fine. It's only when returning an object it
errors.

------------------------------------------------------------------------

[2005-06-13 10:30:39] Ritch at Bugsoftware dot co dot uk

I have exactley the problem described. Linux/Apache2/PHP5.0.4 with
libxml 2.6.16 & libxslt 1.1.11.

------------------------------------------------------------------------

[2005-06-11 10:25:10] [EMAIL PROTECTED]

Works for me just fine. 

Which libxml2/libxslt versions are you using?

chregu

------------------------------------------------------------------------

[2005-06-10 16:13:06] clicknmix at gmail dot com

Description:
------------
When using a function with XSLTProcessor->registerPHPFunctions() to
return a dom object, it no longer handles it as XML, and produces an
error.

Reproduce code:
---------------
Function is:
function myxml ($Value="default")
{
        $dom = new domdocument();
        $dom->loadXML("<root>this is from an external DomDocument -
$Value</root>");
        return $dom;
}

and XSLT call is:
<xsl:value-of select="php:function('myxml','Hello World')/root" />

Full scripts at:
http://home.protocol80.co.uk/php5/collection.phps
http://home.protocol80.co.uk/php5/collection.xml
http://home.protocol80.co.uk/php5/collection.xml

Expected result:
----------------
In previous versions you could access the tree of the returned XML and
print the output. (As if you were including a flat XML file)

Actual result:
--------------
Warning: XSLTProcessor::transformToXml() [function.transformToXml]: A
PHP Object can not be converted to a XPath-string in
/controlpanel/hosts/design/htdocs/test/collection.php on line 22

Warning: Invalid type in
/controlpanel/hosts/design/htdocs/test/collection.php on line 22

Warning: runtime error: file
/controlpanel/hosts/design/htdocs/test/collection.xsl element value-of
in /controlpanel/hosts/design/htdocs/test/collection.php on line 22

Warning: xsltValueOf: text copy failed in
/controlpanel/hosts/design/htdocs/test/collection.php on line 22


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=33299&edit=1

Reply via email to