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
Using PHP in XSLT / XML
Moderator: General Moderators
I think you may be missunderstanding what XML and XSL/XSLT really is, its not a language... There is no such thing as "making something MySQL/XML/XSL" without another purpose. Generating XML'ified data is the simplest thing in a world, creating something that is useful out of the blue is hard. Without something specific to solve or develop I wouldn't really care too much about doing anything in XML, natively handling data within a php-application in XML format is not practical.
I have worked quite a bit with XML and PHP-4, and yes it kind of sucks especially XSL, but what sucks the most is that all the (useful) PHP-4-XSL stuff is not compatible with PHP 5, the good news is that PHP 5 has many and much better options. I have found that using XSL purely as a stylesheet for XHMTL output is impractical, CSS is much better at that, and if for some reason the data you are presenting is in some odd XML format, proces some simpel XSLT stuff to make it valid XHTML before presenting it with a css sheet.
On the other hand, XML has many good uses, but mostly in data exchange and web services and such if you ask me, anything that provides something to multiple and future unknown type of clients.
I have worked quite a bit with XML and PHP-4, and yes it kind of sucks especially XSL, but what sucks the most is that all the (useful) PHP-4-XSL stuff is not compatible with PHP 5, the good news is that PHP 5 has many and much better options. I have found that using XSL purely as a stylesheet for XHMTL output is impractical, CSS is much better at that, and if for some reason the data you are presenting is in some odd XML format, proces some simpel XSLT stuff to make it valid XHTML before presenting it with a css sheet.
On the other hand, XML has many good uses, but mostly in data exchange and web services and such if you ask me, anything that provides something to multiple and future unknown type of clients.
- kendall
- Forum Regular
- Posts: 852
- Joined: Tue Jul 30, 2002 10:21 am
- Location: Trinidad, West Indies
- Contact:
Well,
i have been approached to re-develop this site [url]http://www.triniscene.com[url] its plagued with such traffic and its so overloaded that the site server ususlly crashes. i want to -redevelop the site with -preloading being goal in my development strategies.
i have heard of xml being a client side effective way of structuring data. but i was wondering how practical is it in terms of page loading and caching.
I am really interested in using xml/xsl in terms of content layout and format wit this site but i also want to see how best i can implement it in content management. Im firstly looking at the photo gallery i have seen xml used before to create n manage a photo gallery and i have just been researching the XQuery syntax.
Can i get some feedback/ advice (from a PHP programmer's perspective) on this theory...I really want to start using and learning about xml/xsl. and im trying to obtain some books on using it to build PHP applications.
Kendall
i have been approached to re-develop this site [url]http://www.triniscene.com[url] its plagued with such traffic and its so overloaded that the site server ususlly crashes. i want to -redevelop the site with -preloading being goal in my development strategies.
i have heard of xml being a client side effective way of structuring data. but i was wondering how practical is it in terms of page loading and caching.
I am really interested in using xml/xsl in terms of content layout and format wit this site but i also want to see how best i can implement it in content management. Im firstly looking at the photo gallery i have seen xml used before to create n manage a photo gallery and i have just been researching the XQuery syntax.
Can i get some feedback/ advice (from a PHP programmer's perspective) on this theory...I really want to start using and learning about xml/xsl. and im trying to obtain some books on using it to build PHP applications.
Kendall