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

RE: Documents within documents


xml embed document within
> From: Marcus Carr [mailto:mrc@a...]

<snip/>

> Wayne Steele wrote:
> 
> > I think this one important reason that many people can't 
> wait until DTDs are
> > dead. They really make it hard to embed one XML document 
> into another. If
> > DTDs are dead, it's trivial to embed one document into another.
> 
> Wow, this is a side to DTDs that I'm unfamiliar with. Now, 
> merely by virtue of
> the fact that they are still able to draw breath, DTDs 
> prevent one document from
> being embedded in another by any means. Perhaps we should 
> reconsider them - they
> appear to be powerful in ways not previously explained to me...;-)
> 
> Horses for courses.

When that whole recent RDDL debate raged, and turned into a debate about
what is a document's type, I was firmly of the mind that DOCTYPEs no longer
offered any value. Namespaces tell you all you need to know.

But after hearing some of the comments from folks, I started to change my
mind. I started thinking that DOCTYPEs could still have value as a sort of
assembly mechanism. Using schemas, you can define modular vocabularies like
reusable components. But there are use cases for being able to specify a
grammar or system of constraints for a document as a whole, and specifying
which of these modular vocabularies may be employed in them. It seems like
there is utility in specifying such an assembly and attaching a name to it.

I also started thinking that it might be an interesting excercise to see if
RELAX NG could not fulfill all of the use cases that a DOCTYPE can fulfill,
and which a schema anchored firmly to a namespace on an element cannot
fulfill. Maybe we could even have a PI that serves the same purpose as an
internal DTD subset using RELAX NG short syntax. I haven't delved very
deeply into RELAX NG, yet, but to the extent that I have, I keep getting the
feeling that RELAX NG offers some nice solutions to some festering problems
in the existing suite of XML specs that the W3C is continuing to build upon.

And I still want to kill off DTDs. I've just come around to the
understanding that we have to be sure we are adequately addressing all of
the use cases they serve before we do so -- and XML Schema is clearly not a
DTD killer, but perhaps RELAX NG is.

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.