OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] patterns vs. identifiers

[ Lists Home | Date Index | Thread Index ]

"Thomas B. Passin" <tpassin@comcast.net> wrote:
 [Arjun Ray]

|| I can't speak for Paul, but I doubt that is what he meant.  I'd say a
|| closer example would be the way in which ID attributes establish identity
|| in a document (i.e. "distinct existence").
| 
| I can't go along with that notion, Arjun. 

I suppose "establish" was the wrong word.  The basic notion would be one
of distinguishability being essential to "identity".

| I say that markup documents establish existence and identity by the 
| existence and context of elements.

I wouldn't go that far.  I view markup as instrumental, not ontological. 

| An ID can make for more robust references (in case of editorial changes) 
| or more convenient ones or more efficient code, but it is not the essence 
| of the thing.

Yes, of course.  But in SGML/XML, the only way to refer to "the same exact
thing" *by authorial intent* is by IDREF attributes (that's what they're
for, after all.)  IOW, suppose you anticipate, on general principles, that
something may need to be refered to (in the sense of "identification")
more than once.  The correct way to use markup, IMHO, is to encapsulate
the knowledge of the referent in an element.  This allows you to give it
an ID attribute, and then reference it when and only when you want or need
to, without possibility of misunderstanding.  Consider

 <stuff>
  <uri id='foo'>http://earth.cosmos.uni/something/i/call/blort</uri>
  <uri id='bar'>http://earth.cosmos.uni/something/i/call/blort</uri>
  <mumble about='foo'>blah blah blah</mumble>
  <blurt about='bar'>yada yada yada</blurt>
 </stuff>

where the 'about' attribute is referential.  I would claim that <mumble>
and <blurt> are about different things as far as the markup is concerned.
String equality of values is, per se, only coincidental.  Compare with

  <stuff>
   <mumble about='http://earth.cosmos.uni/something/i/call/blort'>blah
      blah blah</mumble>
   <blurt about='http://earth.cosmos.uni/something/i/call/blort'>yada
      yada yada</blurt>
  </stuff>

And now you have a *manufactured* problem of whether the 'about' attribute
in each case references the "same thing" or not.  This is B.A.D. (Broken
As Designed).
 
| It is different with RDF, where there are roles for both nodes identified 
| by an identifier and nodes identified by their context (anonymous nodes, I
| mean).

Frankly, I've never understood that issue.  I tried to get it explained
once[1], but I was assured that the Model Theory would take care of it,
and that I had it all wrong anyway.

[1]
http://lists.w3.org/Archives/Public/www-rdf-comments/2001OctDec/0027.html




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS