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:[EMAIL PROTECTED]">Abramo Bagnara</a> >> </span>, >> <span class="attendee"> >> <abbr class="role" title="opt-participant"></abbr> >> <a class="cn" href="[EMAIL PROTECTED]">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:[EMAIL PROTECTED]" href="mailto:[EMAIL >> PROTECTED]">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:[EMAIL PROTECTED]" href="[EMAIL PROTECTED]">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:[EMAIL PROTECTED] Opera Unica Phone: +39.0546.656023 Via Emilia Interna, 140 48014 Castel Bolognese (RA) - Italy _______________________________________________ microformats-discuss mailing list [email protected] http://microformats.org/mailman/listinfo/microformats-discuss
