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:




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
Received on Tuesday, 10 March 2009 18:50:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:03 UTC