Re: Multiple types from different vocabularies (ACTION-7)

> 
> If the content model for @itemtype was something like DOMTokenList instead of DOMString, it would could allow multiple values. I actually updated my implementation to allow for this, using the first listed type to resolve non-URI @itemprop names.
> 

Technically, this of course works. But I am a little bit concerned about the error possibilities created by this approach: it just requires to, by mistake, use the wrong order when authoring to completely mess up the section, eg, in the generated RDF. I am still in favour of making a secondary type attribute to make the differences more explicit...

Cheers

Ivan



> # If the _item_ has an @itemtype attribute, split on spaces, with the order preserved but with duplicates removed (leaving only the first occurance of each type)
> # For each _type_ extracted from @itemtype which is an absolute URI, generate the following triple:
> 
>    subject: _subject_
>    predicate: http://www.w3.org/1999/02/22-rdf-syntax-ns#type
>    object: _type_
> 
> # Set _type_ to the first type from @itemtype which is an absolute URI, if there is one, otherwise to _fallback type_ if not empty.
> ...
> 
>> Thanks,
>> 
>> Jeni 
>> 
>> [1] http://www.w3.org/Bugs/Public/show_bug.cgi?id=14233
>> [2] http://www.whatwg.org/specs/web-apps/current-work/multipage/microdata.html#mdvocabs 
>> [3] http://lists.w3.org/Archives/Public/public-html-data-tf/2011Oct/0024.html
>> [4] http://lists.w3.org/Archives/Public/public-html-data-tf/2011Oct/0025.html
>> -- 
>> Jeni Tennison
>> http://www.jenitennison.com
>> 
>> 
> 
> 

Received on Tuesday, 11 October 2011 05:46:32 UTC