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

Doctypes again (was Re: Documents within documents)


Doctypes again (was Re:  Documents within documents)
For me, the most compelling use for (the notion
of) document type is as a contract.  A document
type declaration asserts that a document's
syntax follows some set of rules to express the
document creator's intended semantics.

With namespaces used, as you point out, for
defining modular vocabularies, I agree with you
that a root node's namespace + name has problems
as a document type, since it is not specific enough
a contract for many cases.

RELAX NG, I think, does go a long ways toward
expressing syntactical rules, but some rules
may only be expressible (is that a word?) in
procedural code, prose, hand waving, scribbles
on napkins ...

Packaging RELAX NG schemas or other processing
resources with an instance doesn't work too
well when viewing doctype as contract.  It
feels kind of like sending a new contract with
each shipment. (Of course, DTD internal subsets
fail in this regard, as well.)

Best,

Bill

Michael Brennan wrote:


> 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.