[uf-discuss] RFC: Proposal for general purpose microformat

Abramo Bagnara abramobagnara at tin.it
Fri Dec 2 15:06:48 PST 2005


Ryan King ha scritto:
>> <div>
>> <span class="header">Optional partecipants: </span>
> 
> 
> Not to nitpick, but it'd be helpful if you didn't reinvent <h*>.

I'm not very keen to change display style from block to inline. In past
I've had many troubles with some browsers. I'll retry now, thanks for
the suggestion.


>> <span class="attendee">
>>   <abbr class="role" title="opt-participant"></abbr>
> 
> 
> Ok, so you've found a place where its hard to follow the DRY principle.
> 
>>   <a class="cn" href="mailto:abramobagnara at tin.it">Abramo Bagnara</a>
>> </span>,
>> <span class="attendee">
>>   <abbr class="role" title="opt-participant"></abbr>
>>   <a class="cn" href="litabanelli at racine.ra.it">Licia Tabanelli</a>
>> </span>
>> </div
>>
>> while with my proposal I can do the following:
>>
>> <div>
>> <span class="header">
>> <abbr title="opt-participant">Optional partecipants</abbr>
>> </span>:
>> <span class="xx:attendee= xx:@role=../abbr/@title">
>>   <a class="xx:@cn xx:=@href"  href="mailto:abramobagnara at tin.it">Abramo
>> Bagnara</a>
> 
> 
> Do you realize the tradeoff you make here? You can't write a CSS 
> selector to style on "xx:attendee= xx:@role=../abbr/@title". This is  a
> deal breaker for microformats. If you really want to reference  another
> HTML element, why not use something more HTMLish, like and  <object>?

Obviously I've no interest to style on complex microformat classes (as
the data is not in text() and then the CSS style is irrelevant).

But for trivial microformat classes like <span class="xx:description">
where the contents is inside the element you can have easy CSS selector
(as now in hCalendar).

>> </span>,
>> <span class="xx:attendee= xx:@role=../abbr/@title">
>>   <a class="xx:@cn xx:=@href" href="litabanelli at racine.ra.it">Licia
>> Tabanelli</a>
>> </span>
>> </div>
>>
>> So leaving the needed layout freedom to web page designer.
> 
> 
> Per my point above, you leave more markup freedom, but eliminate  [CSS]
> styling freedom. A big negative in my book.

CSS styling on complex microformat classes (i.e. with xpath) is never
useful (by definition).

-- 
Abramo Bagnara                       mailto:abramobagnara at tin.it

Opera Unica                          Phone: +39.0546.656023
Via Emilia Interna, 140
48014 Castel Bolognese (RA) - Italy


More information about the microformats-discuss mailing list