Page 1 of 1
XSL & XML
Posted: Wed Aug 13, 2003 1:24 pm
by nigma
Hey, I just got done reading a tutorial on XML and XSL and was wondering what advantages they might have over getting your data out of a mySQL database which requires PHP, Perl, or some other Server Side scripting language?
So if anyone who uses XML and XSL or has used them could tell me some advantages and disadvantes please share.
Posted: Wed Aug 13, 2003 1:31 pm
by enygma
well, besides being able to use the XML data pretty much anywhere, it's a good idea to separate the layout from the content in the long run.
Then, if you make interface changes down the line, all you have to do is change the style sheet. No changes would be needed to the actual PHP files/classes themselves because you don't have any of the layout embedded in there...
Posted: Wed Aug 13, 2003 11:25 pm
by trollll
enygma wrote:...use the XML data pretty much anywhere...
This pretty much hits it right on the head for me. I don't use XML for actual web output directly to the browser, but I do use it for app to app communications as far as Java to PHP, PHP to remote PHP, PHP to Flash, etc. Incredibly useful ML!
XSL makes things very easy to layout, as enygma mentioned. Kind of the wysiwyg of ML, but without all the crap code thrown into the mix and with a lot more versatility and potential complexity.
What a lousy analogy. I hope this post helped a little bit, at least.
Posted: Wed Aug 13, 2003 11:43 pm
by nigma
Thanks for the advice I really apreciate it.