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

Re: Come On, DTD, Come On! Thoughts on DSDL Part 9


Re:  Come On
John Cowan <jcowan@r...> wrote:
| Arjun Ray scripsit:

|> I've never understood the distaste for DTDs.
| 
| My principal objection is that they provide only a single content model
| per element type regardless of context.  This arises because they conflate 
| element types with particles in content models.

Arguably this is inherent in the process of fixing names for things, just
as non-terminals are context-free in practical parser generators and BNFs.
IOW, analytic composition is the principal characteristic of element types
in this formalism.  If you need a different model, give the summation a
different name.  But this is ultimately only because computers don't deal
with imprecision and ambiguity quite as well as humans do.  The formalism
does call for a certain amount of circumstantial invention of distinct
names where humans might have found the same names more congenial.  But
insofar as incidence of the same name does not necessarily mandate the
same processing (which can be contextually controlled), I'd say that the
cost of such a naming discipline isn't onerous.

| The treatment of attributes is also weak, 

In what way?  I suppose I'm also asking for an answer to the issue of
"ontology" I raised earlier: what are attributes for?

| and nothing at all is done when alternation between child elements and 
| attributes is desirable.

Oh dear, that litmus test again.


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-2011 All Rights Reserved.