[uf-discuss] spec interpretation question with hCalendar attr element example

Tantek Ç elik tantek at cs.stanford.edu
Mon Feb 20 07:58:30 PST 2006

On 2/20/06 2:10 AM, "Mark Mansour" <mark at lifelint.com> wrote:

> Hi again,

Hi Mark!

> Although there is a hCalendar meetup on Friday/Saturday on IRC (plug,
> plug - see a recent post) I had a general question to ask here first
> that can be highlighted with a specific example..
> My general question is how to interpret the microformat specs.  When
> in doubt do you 'interpret' the spec literally in a hard line manner
> (be a spec bigot)

Let's stick with that as much as we can.  When there are questions, ask
here, precisely as you are!

> I'm looking at 
> http://www.webanalyticsassociation.org/en/calendarevents/search.asp
> and I've notices that there is a tag for location that looks like
> this:
> <abbr class="location">Kempinsky Hotel Airport Munich, Munich, Bavaria
> 85356</abbr>

>From an HTML4 perspective, that's an abuse of the <abbr> element.

>From a microformats parsing perspective...

> The spec says
> - Once an element for a property is found, the contents of the element
> are used for the value.
> Great, this is the general rule in which the location would be the
> Kimpinsky Hotel..
> BUT there is a more specific rule that says
> For all properties, when the element for a property is:
>   * <abbr>: use the value of the 'title' attribute.
> which doesn't apply to this tag

It *does* apply, as it is an <abbr> tag.

> which means there is no value for the
> location.


> BTW: both X2V (Brian Suda's xslt) and LifeLint (my parser) fail on this one..

You are not failing.  You are doing exactly the right thing. The content is
improperly marked up.

> So does the more specific rule override the general rule in all cases




More information about the microformats-discuss mailing list