Using PHP in XSLT / XML
Posted: Thu Mar 16, 2006 1:50 pm
Hey guys,
I have been researching this topic for a while now but i just dont quite get it. You may have seen me post this issue serval times in this area.
I want to attempt combinning XML/ MYSQL/ PHP in terms of outputing and managin layout for MYSQL data using XML/ XSL. But im so not sure how to impliment XML because im soo accustom to the whole MYSQL/PHP thing.
Firstly i hate php 4's implimentations of dealing with xml/xslt so im banking on using xslt to do all the formatting while php just gets the data.
BUT how else do you impliment XML/ XSL and why
can you embed php in XSL?
does XML/XSL help in caching outputed data ?
i have seen an output syntax where u can specify the type of output in XSLT i also saw a xml/php but i've tried using it and it does really work...
so far i have seen the process MYSQL->PHP->XML->XSL->HTML and i understand the situation but with php's 4 handling of xml to me its non standardisation and the fact that u need to get add-ons doesnt impress me to want to use it.
has anyone ever used? MYSQL->PHP->XML->XSL/ PHP->HTML
i have been looking at some examples on sitepoint.com (cool site by the way) but i dont see any of the disadvantages using it and really not that impressed....
open my mind?
Kendall
I have been researching this topic for a while now but i just dont quite get it. You may have seen me post this issue serval times in this area.
I want to attempt combinning XML/ MYSQL/ PHP in terms of outputing and managin layout for MYSQL data using XML/ XSL. But im so not sure how to impliment XML because im soo accustom to the whole MYSQL/PHP thing.
Firstly i hate php 4's implimentations of dealing with xml/xslt so im banking on using xslt to do all the formatting while php just gets the data.
BUT how else do you impliment XML/ XSL and why
can you embed php in XSL?
does XML/XSL help in caching outputed data ?
i have seen an output syntax where u can specify the type of output in XSLT i also saw a xml/php but i've tried using it and it does really work...
so far i have seen the process MYSQL->PHP->XML->XSL->HTML and i understand the situation but with php's 4 handling of xml to me its non standardisation and the fact that u need to get add-ons doesnt impress me to want to use it.
has anyone ever used? MYSQL->PHP->XML->XSL/ PHP->HTML
i have been looking at some examples on sitepoint.com (cool site by the way) but i dont see any of the disadvantages using it and really not that impressed....
open my mind?
Kendall