[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rel values




On Saturday, October 9, 2004, at 09:46 AM, Antone Roundy wrote:
#6 in http://www.imc.org/atom-syntax/mail-archive/msg09857.html -- use @atom:construct to identify what Atom Construct an extension element follows the rules for. For example,

<myext:mylink atom:construct="link" href="..." title="..." />

If <myext:mylink> becomes popular enough, @atom:construct could eventually be dropped from it, since most aggregators would know it was a Link Construct without the hint (and in fact, @atom:construct could, and probably should, be optional from the beginning).

Once again, if the idea isn't quickly trounced, I'll write a proposal, so that we can have something concrete to discuss.

Okay, I had a spare minute, so I went ahead an wrote an indirectly competing proposal for the one I wrote yesterday without waiting to be trounced.


http://www.intertwingly.net/wiki/pie/PaceConstructAttribute

Here's the proposed spec text:

X.X.X. atom:construct attribute

This attribute MAY be used by extension elements to indicate that they follow the
rules defined in this specification for some type of Construct. The value of this
attribute MUST be one of "link", "date", or "person". The value MUST be lowercase.
Elements containing this attribute MUST include all of the attributes and child
content required by this specification for the named Construct type. They MUST NOT
contain additional attributes or child content which is required in order to
process the element in an acceptable manner.


Example: The following indicates that myext:mylink is a Link Construct, as defined
by this specification:


<myext:mylink atom:construct="link" rel="my-rel-value" href="http://myserver.com/"; />