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

Re: Inheritance/defaulting of attributes

  • From: Paul Prescod <papresco@t...>
  • To: xml-dev@i...
  • Date: Thu, 09 Oct 1997 14:08:12 -0400

isa hasa
Matthew Fuchs wrote:
> Seriously though, despite having written my share of OO (and other) code, I'd
> be very leery of anything that injects semantic notions into XML.  

IDREF isn't a semantic notion? How about the very concept of element
"types". Isn't that semantic?

> Whether
> something is an ISA or HASA relationship may ultimately depend on the
> applications point of view.  I.e., lion ISA animal, but lion also HASA
> superclass, depending on whether you are in the semantics of the zoo domain or
> the semantics of domain structures - and these can hopefully share the same
> semantics.

True, but we can benefit from subclassing at the SGML/XML level, without
even considering the needs of application designers. A survey of popular
DTDs would demonstrate that most re-invent the concept of subtyping in a
proprietary way. This makes reading, maintaining and extending the DTDs
hard and processing them in (e.g.) a GUI editor even harder (basically
the subtype relationships just disappear).

One of very common question on comp.text.sgml is "how do I extend DTDs"
and our only answer is: "by using this hack, if the DTD designer has
allowed it, or this other hack, if they took a different approach ..."
Archforms are not a mechanism for extending existing DTDs, but for
allowing documents to conform to multiple DTDs (including existing
DTDs). 

I find it downright embarrasing that we have no half-way decent answer
to this question. Someone posed it last month on c.t.s as: "This is so
basic I must have missed something obvious in the XML spec." I wonder if
he ever got an answer...

> But all I really wanted to point out was that in eliminating a lot of SGML
> cruft, we'd also eliminated some of the tricks people have used in the past to
> finesse OO.

I reject the notion that the notion of subtyping is intrinsically
related to OO, but I take your point. Minmization can be used to finesse
many things and XML is poorer for not having it. Still, I find it
uncomfortable to use minimization to make up for restrictions in the
language.

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


  • Follow-Ups:
    • Weak DTDs
      • From: Peter Murray-Rust <peter@u...>

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.