I’m designing a website and I’m trying to make it completely tableless. Right now, I’m doing the following:
MySQL -> HTML (using only div tags) -> Styled using CSS
Basically, I’m using PHP to extract data from a MySQL database and creating pages which only use div tags. Each div tag is then associated with a style in my CSS file, making the site tableless.
I was discussing this with a friend, and he suggested I change the above model to:
MySQL -> XML – > HTML (using only div tags) -> Styled using CSS
He said I should extract the data using PHP from the database, but then create an XML file. Then, I should use XSLT to transform the file into HTML, and use the same styling technique to get the tableless layout.
My question is, does the extra step make sense? I can’t really see any benefit to this, looks to me like it’s just taking an extra step. What do you think?