W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > October 2006

Re: Using the CLASS attribute - Request for Feedback

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 12 Oct 2006 23:59:53 +0200
To: Ben Adida <ben@mit.edu>
Cc: public-rdf-in-xhtml-tf@w3.org
Message-ID: <l1eti25bcs43nv3oh22b1dh66h4er9bl9j@hive.bjoern.hoehrmann.de>

* Ben Adida wrote:
>In one microformat, class="foo" might mean a type foo, while in another
>microformat it might mean a foo relationship between two things. So you
>need to know which microformat you're dealing with to know how to parse
>it. That's the kind of inconsistency and unpredictability we're trying
>to move away from with RDFa.

Then why did you ask in the first place? You know that microformats are
in use and they rely on semantics that are not particularily compatible
with what you are proposing, yet you ask whether there is anything about
your proposal that might surprise some author. That does not make sense.

>Do you expect the CSS to apply different styling rules depending on
>which interpretation of CLASS this particular microformat chose? I
>suspect not.
>
>In other words, you expect CSS to blindly say "anything with CLASS=x I'm
>going to style as an instance of the CLASS x."

What has CSS to do with any of this? This was not part of your original
question and you yourself pointed out not long ago on this list that any
considerations considerations concerning style sheets are out of scope
of this task force. Class selectors match an element if it belonges to a
specific class. This has nothing to do with any form of interpretation,
while your proposal is all about interpretation.

>And that's exactly what our RDFa interpretation is. The exact semantics
>you're expecting from the HTML, expressed as RDF. I think that's quite a
>bit more consistent than the microformat approach, where you have to
>look up the microformat definition to figure out what that CLASS
>attribute really means.

You have not proposed anything that changes that, the triple you derived
from your example, "_:div0 rdf:type :menu", is, as it stands, exactly as
meaningful has "this <div> belongs to class 'menu'".
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Thursday, 12 October 2006 22:01:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:15:02 GMT