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

RE: DTD's

  • From: Wayne Steele <xmlmaster@h...>
  • To: xml-dev@l..., scarney@e...
  • Date: Thu, 17 May 2001 12:27:17 -0700

static.userland
I strongly second this.

Just because you have a DTD, doesn't mean you have to use the DTD in any of 
your software.

When people ask you about the grammer for your XML, instead of sending them 
your software design documents, or waving your hands and making a specch, 
you can just send them the DTD.

It gives you license to yell at your developers if they produce XML that 
doesn't conform to the DTD: "Either fix the code or fix the DTD".

Even if DTDs cannot capture the true sematics and constraints or your 
application, you can almost always construct a DTD that validates a superset 
of your intended documents, and include comments describing what you really 
mean.

For an example of this, take a look at the DTD I wrote for OPML:

http://static.userland.com/gems/radiodiscuss/opmlDtd.txt

DTDs are well-understood, and you CAN use it in software processes, if you 
want.

Sandra:
   What are the arguments AGAINST creating a DTD in your case?


-Wayne Steele


>From: Frank Richards <frichards@s...>
>Reply-To: Frank Richards <frichards@s...>
>To: 'XML Development' <xml-dev@l...>
>Subject: RE: DTD's
>Date: Thu, 17 May 2001 13:26:49 -0400
>
>Sandra,
>
>I can give two reasons to have a DTD anyway:
>
>First, at design & code time, it provides a formal schema which acts as a
>contract between all the users and creators of the documents -- if all
>documents created are valid, and all readers can read any valid document,
>then your system will work.
>
>Second, your quality argument: If these documents are created by people,
>then you really need to validate to prevent simple human error. Even if the
>docs are machine generated, in a medical application, being paranoid about 
>a
>change to one side not being picked up on the other sounds like a good
>ideal.
>
>Frank
>
> > Hi,
> >   We have a question about the necessity of DTD.  There are folks
> >   among our developers who postulate that so long as the document
> >   is well-formed, we don't need DTD's.  So far, so true.  However,
> >   might this pose a quality problem later on especially if you want
> >   to limit what are considered legitimate tags in the document?
> > Regards,
> > Sandra Carney
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


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.