PDA

View Full Version : CSS and XML


Koz
01-04-2007, 02:54 PM
Hi All,

forgive me if this is a silly question, but i'm not too sure how to do this without reading through a whole XML tutorial :-(

I have a site (very small one) that is in html and uses CSS. I need to convert this site to XML (don't ask why). Now, could I just slap the CSS in the XML page as is or would it need to be different?

Chatmaster
01-05-2007, 06:23 AM
Mmmmmm

I had a chat with one of our wise programmers. He says that XML uses XSL for it's styles and you can read up more about it here http://www.w3schools.com/xsl

Sorry best I can do :(

Paz
01-05-2007, 08:10 AM
Sorry Koz,

you need to read that xml tutorial I think.

xml doesn't contain any layout information; that's part of it's worth. Usually you do it the other way around though; taking an xml feed and converting it to an HTML table with an XSL layout document containing info on table rows and columns.

Can you give us a few more examples and snippets?

Cheers,
Paz.