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

Re: Weak DTDs

  • From: Paul Prescod <papresco@t...>
  • To: xml-dev@i...
  • Date: Sat, 18 Oct 1997 09:53:51 -0400

Re: Weak DTDs
Peter Murray-Rust wrote:
> Yesterday evening I converted a typical chemical manuscript into CML
> including RDF and DC metadata, images, spectra, molecules, bibliography,
> XML-LINKs to several related XML and non-XML documents, and so on. I found
> the freedom of NOT having a 'conventional' DTD was very liberating. I
> believe that (with the latest JUMBO) it displays quite attractively and
> meaningfully to human readers.

Being without DTDs *is* very liberating for individuals. So is being
without written laws. But I don't want to live in a community without
laws.

In your case, how can you guarantee that the RDF and DC metadata
conforms to those systems? How do you make sure that your images specify
their required attributes? How do you make sure that your molecules nest
in the right places? Are you really willing to make software (even just
simple stylesheets) that properly format RDF data in the middle of a
molecule, a molecule in the middle of an image, a bibliography entry in
the middle of your spectra? Or are you going to fill your code (and
stylesheets) with hundreds of ASSERT statements that raise error
messages when these elements are found out of their expected context?

Admittedly, depending on your exact needs, SGML DTDs may or may not be
able to express them, (and XML DTDs are less likely to be able to
express them), but in most cases they are the most efficient way of
expressing these constraints. But their goal is to protect your code
from bogus documents. You can dump them, but now you must do all of the
checking yourself.
 
 Paul Prescod


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.