NYCPHP Meetup

NYPHP.org

[nycphp-talk] Parsing <php: possible?

Chris Snyder csnyder at chxo.com
Mon Jul 19 08:45:41 EDT 2004


Jon Baer wrote:

> c) no worth it.  


I'm don't see the benefit of this approach.
Why merge scripting commands into the xml dom?

The reason <script language="php"> doesn't work is because the browser 
doesn't know how to execute the code client-side, right?

The browser won't know what to do with <php:valueof 
name="param:id"></php:valueof>, either.

OTOH, if you mean to use this as an intermediate templating language or 
something, maybe passed to a client that might or might not be PHP-aware 
and able to execute the markup, I could see some value in it because you 
could (for example) selectively filter out the <php:include> tags from 
the rest of the document.

Seems like a lot of work unless you have a real defined need for it, though.



More information about the talk mailing list