- From: Arjun Ray <aray@q2.net>
- Date: Sat, 24 May 1997 02:37:58 -0400 (EDT)
- To: w3c-sgml-wg@w3.org
On Fri, 23 May 1997, Andrew Layman wrote: > Fair question. > > <BOOK lib:loaned-to="Andrew">Last of the Mohecans</BOOK> > > <BOOK> > <TITLE>Philosophy: Who Needs It</TITLE> > <PRICE banks:CURRENCY="USD">6.95</PRICE> > </BOOK> > > We can get some integration of concepts across various doctypes by > sharing attributes. But attribute names are inherently shareable! Their scope is restricted to the element(s) with which they're associated. Moreover, it's not necessary that the same name for an attribute imply the same semantic significance for different elements, even though as DTD design this could arguably be poor choice(s) in nomenclature. (For instance, consider the NAME attribute in the HTML DTDs, used for LINK, META, A and INPUT.) The sense I'm getting here is something like this: Suppose I'm working with a <!DOCTYPE HERE> where an element FOO has an attribute BAR that "means" property X. At some point it occurs to me that my spec for FOO is incomplete: this realization happens when I encounter a <!DOCTYPE THERE> where I see an element BAZ with attribute BAR that "means" property Y; I would like to refine my spec for FOO to include property Y. Since the *name* BAR is already taken, I invent some other name, say BLORT. The only requirement, if any, appears to be some structured means of saying that HERE=>FOO=>BLORT has the "same semantics" , namely property Y, as THERE=>BAZ=>BAR. But this can be made clear via the HERE DTD and its commentary, and at any rate, the *relevant* applications that know about FOO can be expected to grok BLORT. The *name* doesn't really matter. (The other possibility is an application that basically greps for particular attribute names: e.g. the intent is to find attributes named BAR that "mean" property Y. If this is a matter of something having been hard-coded, I'm having difficulty translating a specific programming inadequacy into a general technical requirement. Why can't the program be parametrized to grep for BLORT instead?) I'm not convinced that there's a case for qualified attribute names. Arjun
Received on Saturday, 24 May 1997 02:35:55 UTC