PDA

View Full Version : xml and xhtml


schleppel
11-28-2004, 03:42 PM
i just wanted to know if this is correct,

XML is just raw data with tags around it
to make this data into pretty websites, you have to use things like XSL style sheets and things...

And xhtml is XML and XSL and everything, done for you, so it's like html...

so you don't have to actualy learn XML and XSL, you just have to be able to write correct markup and use the DTD provided by w3.org?

or do you need to know about XSL and those things?

gsnedders
11-28-2004, 04:07 PM
Read the sticky...

schleppel
11-28-2004, 04:11 PM
i did read the sticly, and i'm still confused, i think i understand though, xhtml has default rendering? so it looks like html?

chilipie
11-28-2004, 06:35 PM
Correct me if I'm wrong (which I probably am... :D ):
XHTML is HTML reformed as an XML language. Or something like that.

schleppel
11-28-2004, 06:43 PM
thanks, so i can just write xhtml like html?

chilipie
11-28-2004, 06:51 PM
Basically yeah. The main difference is that the markup has to be a lot cleaner, and lots of the tags are self closing, eg. <img src="img.gif" alt="image" /> instead of <img src="img.gif" alt="image">. http://www.w3schools.com/xhtml/