[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

DTDs, W3 XML Schema, RELAX, or Schematron?

  • From: Linda van den Brink <lvdbrink@b...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Tue, 14 Nov 2000 09:46:40 +0100

schema relax
Hi all, 

I've been wondering for a while about the use of DTDs, W3C XML Schema,
RELAX, and Schematron. Specifically about which of these to use in which
situation. So far, I only have experience with DTDs, and have only read
about the others (on this list, among other places). 

My impressions are as follows (sorry in advance for my vague notions): 
- DTDs: good for defining and validating human-written documents, especially
in structures where elements and PCDATA mix.
- W3C XML Schema: good for validating documents written and used by
computers (data exchange etc), especially for database-like structures.
- RELAX: positions itself in between DTDs and Schema, and can be used as
interim solution when you want to move from DTDs to Schema and don't want to
wait for Schema to become a recommendation. I'm not sure what specific
advantages/disadvantages RELAX has and what kinds of structures would fit
well with RELAX. 
- Schematron: good for validating content rules rather than structure rules.
E.g. elements with an enumerated list of allowed values. I think Schematron
could best be used in addition to DTDs?

What do others think about this? Am I right in thinking that DTDs, Schema,
RELAX, and Schematron each have their pros and cons that make them the best
choice in a certain situation? 

Or will DTDs become obsolete and will W3C XML Schema, RELAX, or Schematron
replace them? 

Wondering,
Linda van den Brink


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.