[PHP] XSLT in php v5 beta 4
I am guesing that I have installed something incorrectly. I am trying to use the function xslt_create(). I installed php v5 Beta 4 successfully. but when I try to use the function xslt_create() I get the following error: Fatal Error: Call to undefined function xslt_create() I have a test php page that uses phpinfo() and here's what the xml related setting say. xml XML Support active XML Namespace Support active libxml2 Version 2.6.6 xsl XSL enabled libxslt Version 1.1.3 libxslt compiled against libxml Version 2.6.6 EXSLT enabled libexslt Version 1.1.3 My environment is the following: Fedora Core 1 php - version 5 beta 4 apache - 2.0.48 Anyone have any ideas? I have looked at the articles on php.net and didn't see anything that I thought would help. Thanks, Steve -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XSLT and PHP
I have been impressed with using the xslt functions in php in that it gives you the ability to separate content from presentation. Now I am looking to streamline this technique. Typically I either take xml that is in a file or generated by a class from a sql query and transform it with an xsl file. The great part is anything to do with content or code is completely separate from presentation. However, if I ever need to change the presentation (xsl files) I still have one xsl file for every page on the site to edit. I have tried to make xsl files use includes (php includes) without much success. I am looking into xsl includes. What I am looking for is either a way to use includes in xsl stylesheets or something like Fusebox layouts for xml/xsl. Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XSLT and PHP
On 24 Sep 2002 10:22:41 -0500, you wrote: What I am looking for is either a way to use includes in xsl stylesheets or something like Fusebox layouts for xml/xsl. Thank you You may get better answers if you post this in comp.text.xml... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XSLT; XML = PHP code
I am using XSLT functions in PHP to transform a string (whose data is a string of XML) into another string. Ideally, the second string will consist of PHP code. I would like this outputted PHP code to be executed within the same script as the that which performs this transformation. Here is what I am wondering -- will I be able to evaluate the variable containing the new string somehow? In other words, I will have PHP code trapped in a variable, which I will need to have evaluated in order to have the code inside executed. How can I take a variable containing PHP code and have it get executed along with the rest of the script? In other words, $php_code_in_here = 'echo hi there;'; // PHP code in a variable Will this variable just be evaluated by the script as it is parsed?? Forgive me if the answer is staring me in the face, I'm just not seeing it. Thanks, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] XSLT; XML = PHP code
Good day, To have PHP evaluate string contents as an expression, use eval(). The usual disclaimer comes with this function... be careful. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 2:47 PM To: [EMAIL PROTECTED] Subject: [PHP] XSLT; XML = PHP code I am using XSLT functions in PHP to transform a string (whose data is a string of XML) into another string. Ideally, the second string will consist of PHP code. I would like this outputted PHP code to be executed within the same script as the that which performs this transformation. Here is what I am wondering -- will I be able to evaluate the variable containing the new string somehow? In other words, I will have PHP code trapped in a variable, which I will need to have evaluated in order to have the code inside executed. How can I take a variable containing PHP code and have it get executed along with the rest of the script? In other words, $php_code_in_here = 'echo hi there;'; // PHP code in a variable Will this variable just be evaluated by the script as it is parsed?? Forgive me if the answer is staring me in the face, I'm just not seeing it. Thanks, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XSLT; XML = PHP code
On Thursday, March 28, 2002, at 04:52 PM, Darren Gamble wrote: Good day, To have PHP evaluate string contents as an expression, use eval(). Thanks for the pointer, I have never used this function before. I'm not sure what it means by as with any function that outputs directly to the browser, since in their example it just shows an evaluation of a simple variable assignment (which I'm guessing doesn't get output to the browser). I will have to experiment with this and make sure it works right. The usual disclaimer comes with this function... be careful. (... of what?) Thanks again Darren, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] XSLT; XML = PHP code
Good day, eval() is a very powerful function. You should be careful that users can't find some way to execute arbitrary code by providing input that your program did not expect. Also, if your string doesn't have the correct syntax, your program will terminate. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 3:20 PM To: Darren Gamble Cc: [EMAIL PROTECTED] Subject: Re: [PHP] XSLT; XML = PHP code On Thursday, March 28, 2002, at 04:52 PM, Darren Gamble wrote: Good day, To have PHP evaluate string contents as an expression, use eval(). Thanks for the pointer, I have never used this function before. I'm not sure what it means by as with any function that outputs directly to the browser, since in their example it just shows an evaluation of a simple variable assignment (which I'm guessing doesn't get output to the browser). I will have to experiment with this and make sure it works right. The usual disclaimer comes with this function... be careful. (... of what?) Thanks again Darren, Erik Erik Price Web Developer Temp Media Lab, H.H. Brown [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] XSLT in PHP
Hi List, XSLT seems to be such an hot topic these days now i tried it out and i find it cool too. But is there anyway how i can make XSLT less strict? When i make a stylesheet XSLT is too picky..I can't make an XSLT stylesheet very fast because you have to close everything correct etc.. When i design a template i cannot do.. blah tralala br = ERROR has to be br/ /blah And so are there a numerous things that have to be done.. Is there someway how i can turn that strictness thingie of? Warm regards, EMile Bosch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]