XSL & XML

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

XSL & XML

Post 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.
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post 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...
User avatar
trollll
Forum Contributor
Posts: 181
Joined: Tue Jun 10, 2003 11:56 pm
Location: Round Rock, TX
Contact:

Post 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.
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

Thanks for the advice I really apreciate it.
Post Reply