-whatwg
+www-archive

On Sat, 16 May 2009 17:50:37 +0200, Tab Atkins Jr. <[email protected]> wrote:

Actually, I believe it would generate:
<rdf:Description rdf:about="http://example.net/";>
 <ex:property1>Quux</ex:property1>
 <ex:property2>http://example.org/";</ex:property2>
</rdf:Description>

In other words, it completely ignores the resource part of RDF.  This
is easy to fix, though.  Frex, change the example CRDF to:

<script type="text/crdf">
@namespace ex "http://example.com/";
a.foo {
 ex|property1: attr(title);
 ex|property2: attr(href) resource;
}
</script>

I think the CSS attr() syntax is:

  attr(href, url);

http://www.w3.org/TR/css3-values/#attribute


And it could then generate the first triple you posted.

~TJ



--
Simon Pieters
Opera Software



Reply via email to