Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

choosing between Schemas, DTD

Status
Not open for further replies.

mashadt

Instructor
Apr 23, 2005
33
ZA
I am learning the use of XML and XSLT for my masters project, which involves creating computer based notes which can be reformatted by the student to suit their learning style.

I have some questions about DTD's and Schemas.

JontyMC told me that DTD's dont work in some browsers. I also get the idea that DTD's are being phased out and that I should rather use a Schema in my project.

How do I know whicch is more apropriate: DTD or Schema? And how do I chose between the different types of Schemas?

What are the pro's and cons involved?

 
Good point of reference is always W3C site. Try reading the XML Schema primer:


DTD's are the past, XML Schema is the future. The only downside to XML Schema is that they are slightly more verbose, but they have significant advantages and you can specify much more. Pros & cons:



Jon

"Asteroids do not concern me, Admiral. I want that ship, not excuses.
 
Thanks - this is what I suspected. I'll have a look at those links.
Masha
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top