Re: RDFa and CSS

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 UTC