xsl-list
[Top] [All Lists]

Re: [xsl]Putting PHP Code in XSLT?

2007-09-21 05:39:17
Alice Ju-Hsuan Wei wrote:
Hi,

 Just to test, here is what I have:

      <xsl:processing-instruction name="php">echo "Hello!";  
?</xsl:processing-instruction>

The source code of the section above is there, but it is not working.
When I take the ? off, the product becomes <?php echo "Hello!"; >
which is not in HTML format.

The other thing is, why don't we need to do this with Javascript?

Alice

Hi Alice,

Is this perhaps what you're looking for:

http://uk2.php.net/manual/en/function.xsl-xsltprocessor-register-php-functions.php

Regards,
Thomas

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>