Re: RDFa and Microformats

On 15 Sep 2008, at 12:57, Mark Birbeck wrote:

>   <span
>     class="p1" content="v1"
>     property="p2">v2</span>
>
> How does the RDFa parser know that @content was added for use in a
> Microformat, rather than for use in RDFa?


	<span content="v1"
	property="p1 p2">v2</span>

How does the RDFa parser know that @content was added for p1 and not p2?

Answer: it doesn't; it can't; if you really want value v2 to be  
associated with property p2, then you shouldn't use that markup.

Think of this way. If you have the following markup:

	<span property="foaf:name"
	content="Toby Inkster">Toby</span>

then you decide to add hCard to your page:

	<span property="foaf:name" class="fn"
	content="Toby Inkster">Toby</span>

why should the microformat not benefit from RDFa's more descriptive  
markup?

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Monday, 15 September 2008 12:41:59 UTC