Ok, it has been a while since I've needed to make an involved web page. Coming back on the scene now is a bit confusing, what with all the cool stuff to use like XML, PHP, MySQL, etc...
So here is my question. I'm in search of a good dynamic way to generate web pages which separates content from presentation. I am seeking to create a web site that, to put it succinctly, has a list of users and sets of information corresponding to each user.
I am familiar with how to do this using PHP, MySQL, and regular old HTML. I maintain the user database in MySQL and dynamically present it and the information with PHP. This is very easy to do in terms of coding for it.
But I'm wondering? Is it time for me to switch to the XML with XSL method instead? Everyone seems to be talking of XML as the end all be all. I've looked into it, and on the surface, I just can't tell if it's worth it. I don't really see the benefit. XML is just a "create your own HTML tags" and then figure out wtf to do with them orgy. Great, so I can write <dog>Spot</dog>. Whoop de do, that's useless to me unless I write a parser for it to display it in a user friendly way. And I shouldn't have to write a parser, there should be standardized ones for certain purposes. But wait, isn't that what HTML already is? A bunch of <dog>Spot</dog> (figuratively speaking) with the parsers having been written and mostly standardized between companies ages ago? XML to me is just someone saying, "Uh, take HTML, but you can make your own tags, and instead of calling it HTML, we'll call it XML?" Big deal. Unless everyone adopts XML and makes it a truly common way of storing data separate from presentation, then XML is a moot point. This isn't anything new though, various groups have been trying to get various methods of formatting data standardized forever.
And what about support? All the browsers still have to make their own parsers of XML and XSL.
As far as I see it, XML is no different than any other data format in purpose. It's a standard way of storing data, just like a JPEG is a standard way of compressing images. The only difference I see that is worth anything, is that XML focuses on bringing the data to the client side, then doing stuff with it there (let's say through JavaScript), whereas a typical system using a combo like PHP and MySQL processes the data on the server side then sends the result to the client. But then again, if you just make the MySQL data available in a raw format, then you've got XML in a sense.
I'm just confused. At the end of the day, I just want to know where the reality is, where the practical solution is, to having a database and showing your average web surfer the data they want in the way they want to see it, all within a pretty and easily modified (stylistically) web page.
So here is my question. I'm in search of a good dynamic way to generate web pages which separates content from presentation. I am seeking to create a web site that, to put it succinctly, has a list of users and sets of information corresponding to each user.
I am familiar with how to do this using PHP, MySQL, and regular old HTML. I maintain the user database in MySQL and dynamically present it and the information with PHP. This is very easy to do in terms of coding for it.
But I'm wondering? Is it time for me to switch to the XML with XSL method instead? Everyone seems to be talking of XML as the end all be all. I've looked into it, and on the surface, I just can't tell if it's worth it. I don't really see the benefit. XML is just a "create your own HTML tags" and then figure out wtf to do with them orgy. Great, so I can write <dog>Spot</dog>. Whoop de do, that's useless to me unless I write a parser for it to display it in a user friendly way. And I shouldn't have to write a parser, there should be standardized ones for certain purposes. But wait, isn't that what HTML already is? A bunch of <dog>Spot</dog> (figuratively speaking) with the parsers having been written and mostly standardized between companies ages ago? XML to me is just someone saying, "Uh, take HTML, but you can make your own tags, and instead of calling it HTML, we'll call it XML?" Big deal. Unless everyone adopts XML and makes it a truly common way of storing data separate from presentation, then XML is a moot point. This isn't anything new though, various groups have been trying to get various methods of formatting data standardized forever.
And what about support? All the browsers still have to make their own parsers of XML and XSL.
As far as I see it, XML is no different than any other data format in purpose. It's a standard way of storing data, just like a JPEG is a standard way of compressing images. The only difference I see that is worth anything, is that XML focuses on bringing the data to the client side, then doing stuff with it there (let's say through JavaScript), whereas a typical system using a combo like PHP and MySQL processes the data on the server side then sends the result to the client. But then again, if you just make the MySQL data available in a raw format, then you've got XML in a sense.
I'm just confused. At the end of the day, I just want to know where the reality is, where the practical solution is, to having a database and showing your average web surfer the data they want in the way they want to see it, all within a pretty and easily modified (stylistically) web page.