ID:               26316
 User updated by:  andrew at shh dot fi
 Reported By:      andrew at shh dot fi
 Status:           Bogus
 Bug Type:         XSLT related
 Operating System: windows xp
 PHP Version:      4.3.3
 New Comment:

You've missed the point here! Building XML documents using PHP doesn't
matter whether the php tag starts with <? .. ?> pt <?php ...?> because
the header funcion sends to the browser an xml header.  The problem is
more to do with the fact that the xslt parser when parsing the document
doesn't see it from server side but rather from a client side. 
I'll add a short demo shortly.


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

[2003-11-19 19:49:47] [EMAIL PROTECTED]

The obvious first thing that comes to my mind is that you're using
short-tag there. ALWAYS use <?php ..and just disable 'short_open_tag'
php.ini option.

If this didn't help, provide full testcase. (as short as possible)


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

[2003-11-19 10:09:14] andrew at shh dot fi

Description:
------------
I've checked the bugs, searched google but no solution, except a work
around.

Problem is this:

Create php page with XML header and create a session and store it in a
tag. i.e <tag><? print $_SESSION["name"]?></tag>

Access it with the XSLT parser as a remote xml document (you need to of
course) with a local XSL file. Parse it and the session is not there. 

This is probably because the XSLT parser is accessing the file from
'outside' and so the session has not been created. In my case its been
create long before in the login script. 

The bug appears to be that the XSLT parser doesn't recognised the
already created session. 

Is there a fix to this, perhaps a change in the XSLT function, etc.



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


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

Reply via email to