W3C home > Mailing lists > Public > public-rdfa@w3.org > March 2009

Re: RDFa and CSS

From: Toby A Inkster <tai@g5n.co.uk>
Date: Tue, 10 Mar 2009 18:49:40 +0000
Message-Id: <02314DE5-218C-40C9-968C-A5793F1B1B30@g5n.co.uk>
To: publicayers@verizon.net, public-rdfa@w3.org
Take a look at, for example:

	http://buzzword.org.uk/2008/rdfa-cv.html

or:

	http://buzzword.org.uk/2009/xmltv2rdf/example-tv/screen.css

One slight annoyance I've had using CSS selectors with RDFa is that  
you can only select based on CURIE-prefixes rather than full URIs.  
For example, it would be nice to be able to use p[typeof="http:// 
example.com/Person"] rather than p[typeof="ex:Person"] as the "ex"  
prefix is unreliable. A nice project for someone might be to write a  
little ECMAscript which takes the RDFa attributes and creates some  
additional attributes in the DOM called uri-typeof, uri-rel, etc  
which can be used in selectors. (That would tie styling to scripting,  
though for many applications that would be an acceptable compromise.)

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Tuesday, 10 March 2009 18:50:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 10 March 2009 18:50:16 GMT