A. Pagaltzis wrote:

* James M Snell <[EMAIL PROTECTED]> [2005-08-04 21:15]:
Personally, however, I think that the elegance and simplicity
of in-reply-to and replies link rel values trumps defining them
as elements in a separate namespace or an otherwise perfectly
engineered solution. As for specifying the source of the
resource being replied to, a namespace extension inside the
link element is probably the best way to go.

I consider it stupid blunder to have proposed using atom:link for
this, not elegant and simple.

;-) Let's hear what you really think ;-)


   <thr:in-reply-to src="http://example.com/atom";>urn:foo:1</thr:in-reply-to>

which makes this a Structured instead of a Simple Extension
Element, but then maybe that was unavoidable anyway.

Of course, conscientous producers will drop in a

   <link rel="related" href="http://example.com/atom"; />

for good measure, so it’s verbose anyway.

ok.. ok.. I can take a hint ;-) ... according to my wife it only takes about a couple dozen beatings to get me to think straight and listen so I think we're making progress here ...

How does this work for you?

<thr:in-reply-to id="urn:foo:1" type="application/atom+xml" src="http://www.example.com/atom"; />

With a definition of:

 inReplyToNonDereferenceable = element thr:in-reply-to {
   attribute id { atomUri },
   attribute type { atomMediaType }?,
   attribute src { atomUri }?
}

 inReplyToDereferenceable = element thr:in-reply-to {
   attribute href { atomUri },
   attribute type { atomMediaType }?,
}

This seems to tie in everything we've been discussing to this point. In the NonDereferenceableForm, @id is used to express an opaque identifier. @src MAY be used to specify a dereferenceable location where the resource identified by @id might be found. In the Dereferenceable form, @href is used to specify a location.

Used in context, it would look like:

<feed>
 <link rel="replies" href="http://www.example.com/atom"; />
 ...
 <entry>
    ...
<thread:in-reply-to id="tag:example.com,2005:1" type="application/atom+xml" src="http://www.example.com/myotheratomfeed"; /> <thread:in-reply-to href="http://www.example.com/entries/1"; type="application/atom+xml" />
    <link rel="related" href="http://www.example.com/myotheratomfeed"; />
    <link rel="related" href="http://www.example.com/entries/1"; />
 </entry>
</feed>

Does this work or do I need to be taken out and flogged again?

- James



Reply via email to