Howdy,
Since most of my thoughts beginning "I wonder if there's an XML way to ...." have usually be done already, I thought I'd throw this one out to those who should know.
ColdFusion is great for beginners who want to talk to a database from their html pages, but don't want to get too much into the dirty stuff (a la php). Unfortunately it costs money.
It strikes me that it might be possible to write a schema/stylesheet that would translate ColdFusion-like tags into PHP from the middle of an xhtml page.
For example in ColdFusion:
<cfquery name="getfoo" datasource="mydb">
SELECT
FOO
FROM
BAR
</cfquery>
Couldn't you just have an XML element that got XSLT'd into PHP that did the same thing?
I have to confess to not knowing enough about PHP to see this through, which is why I was sounding out this forum on the matter.
Does something like this exist already? If not, why not? (Besides the time it would take, anti-cf bigotry, etc.)
Thanks for your thoughts, pointers on the matter...