[uf-discuss] UID in iCalendar
brian.suda at gmail.com
Mon Jul 3 12:42:00 PDT 2006
I do remember awhile ago we discussed using ID as UID, i can't find the
archived message at the moment. The one concern was that UID is to be
globally unique, whereas the ID attribute is only document unique, so if
we are going to construct an implied UID, then we could look to the RFC
recommendation and do something like:
where <id> is the fragment identifier for the page and <host> is the
exact page where the <id> was found.
123 at events.example.com
123 at events.example.com/europe
we need to take the full URL so that there are not collisions in the UID
when there might be IDs called 123 on two different pages.
I need to now look to see if/what needs escaping in the URL string
(slash '/' needs to become '\/')
Tantek Çelik wrote:
> Agreed with Brian's interpretation.
> In addition, I think if we make a stronger suggestion (perhaps a SHOULD)
> that individual hCards and hCalendar events have a unique-to-the-document
> 'id' attribute on their root elements, then automatic construction of
> globally unique UIDs becomes fairly straightforward, and we can write an
> "implied UID" rule for hCard and hCalendar at a minimum.
> I'd like to add "SHOULD use 'id'" and "implied UID" to hCard and hCalendar
> soon if no one objects. And yes, we should update the creators so that they
> auto-specify uniqueish 'id' attributes on the root elements as well for ease
> of authoring.
> On 7/3/06 12:17 PM, "brian suda" <brian.suda at gmail.com> wrote:
>> According to the RFC 188.8.131.52 Unique Identifier, the only to requirements
>> 1) Value Type: TEXT
>> 2) Globally Unique
>> Any URL fits the TEXT requirement. As for globally unique, all URL only
>> resolve to a single location, so that makes it globally unique. The
>> only caveat is that if you have two events, those each need to use a
>> unique URL, not just http://events.example.org, but instead
>> The recommendation is just that, a recommendation, not a requirement.
>> Dimitri Glazkov wrote:
>>> Can UID in iCalendar be just a URL of the event? Do we have to adhere
>>> to the RFC2445's recommendation
>>> (http://rfc.net/rfc2445.html#s184.108.40.206), which is based on an
>>> email-style RFC822 addr-spec (http://rfc.net/rfc822.html#s6.1)?
>>> microformats-discuss mailing list
>>> microformats-discuss at microformats.org
>> microformats-discuss mailing list
>> microformats-discuss at microformats.org
> microformats-discuss mailing list
> microformats-discuss at microformats.org
More information about the microformats-discuss