Melvyn,
Do you think you can send an example of an exception? I am very curious
about this.
Also if you say it isn't stable hwy not go for a more stable approach, for
instance something like this:
Take your XML that you need parsed, and make XML out of your PHP vars so
you have:
<ROOT>
<PHP:GET_VARS>
<Some_variable>value<Some_variable/>
</PHP:GET_VARS>
<PHP:POST_VARS>
<Some_other_variable>value2<Some_other_variable/>
</PHP:POST_VARS>
<!-- My XML to parse -->
<CATAGORY>
<NAME>Stuff to do on holiday</NAME>
<ARTICLES>
<ARTICLE id="1"/>
<ARTICLE id="2"/>
<ARTICLES>
</CATAGORY>
</ROOT>
I wrote a function that takes my POST, and GET vars and converts them into
XML. I am sure you could select the vars you need and put them in. This
way I don't have to use parameters.
Greg
-----Original Message-----
From: Melvyn Sopacua [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 9:51 AM
To: Sablotron Mailing List
Subject: RE: [Sab] including php in xsl
Actually - it doesn't work for me also, except for some strange exceptions,
I haven't been
able to put a finger on.
What does work (and also the reason why I think eval() SHOULD work), is
writing the
output to a file and then including that file.
You then are creating a strange paradox, and the whole thing becomes quite
unstable:
1) PHP 4 checks a file and it's includes for parser errors.
2) It then pre-compiles the page
3) It executes the page:
--> You create and write a file
--> You include the file, which didn't exist in fase 1.
So - I since then have left the whole issue alone and try to work around
it. In case where
I can't I use a crontab to write the includes every now and then.
At 12:10 19-7-2001 -0700, you wrote:
>Well, none of this works for me... Even after a lot of testing.
>
>Did compile with a strange option or soemthing?
>
>
>-----Original Message-----
>From: Melvyn Sopacua [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, July 18, 2001 2:19 PM
>To: Sablotron Mailing List
>Subject: RE: [Sab] including php in xsl
>
>
>
>I got sick of the eval() errors, but if your eval works well,
>try:
>
><xsl:processing-instruction name="php">echo
>$var</xsl:processing-instruction>