W3C home > Mailing lists > Public > public-html-data-tf@w3.org > November 2011

Re: CSS styling of Microdata, RDFa, Microformats

From: Toby Inkster <tai@g5n.co.uk>
Date: Tue, 15 Nov 2011 13:38:18 +0000
To: Dan Brickley <danbri@danbri.org>
Cc: public-html-data-tf@w3.org, Tantek Çelik <tantek@tantek.com>
Message-ID: <20111115133818.1bda1a93@miranda.g5n.co.uk>
On Mon, 14 Nov 2011 12:00:32 +0100
Dan Brickley <danbri@danbri.org> wrote:

> How far does [property=~"http://example.com/] go towards
> working with RDFa?

Say you have the following style:

	div[typeof="http://example.com/Person"] { color: green; }

Then this will be green:

	<div typeof="http://example.com/Person">...</div>

But this will not:

	<div vocab="http://example.com/" typeof="Person">...</div>

A couple of years ago I played around with using Javascript as a shim
to take into account full URIs for styling purposes:

	http://buzzword.org.uk/2009/stylish-rdfa/test

It only understands RDFa 1.0, but would probably not be especially
difficult to upgrade to RDFa 1.1.

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Tuesday, 15 November 2011 13:37:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 15 November 2011 13:37:41 GMT