Re: Language in schema.org

Martin Hepp scripsit:
> I would strongly prefer to use the same mechanism for indicating the language of visible and invisible content, so html5 lang would be a natural candidate for this, IMO.

Not always. None of the visible content in

<div itemscope="itemscope" itemtype="http://schema.org/Book">
   <span itemprop="author" lang="pl">Henryk Sienkiewicz</span>,
   <i itemprop="title" lang="la">Quo vadis?</i>
</div>

would indicate the content language of the edition.

<div itemscope="itemscope" itemtype="http://schema.org/Book">
   <span itemprop="author" lang="pl">Henryk Sienkiewicz</span>,
   <i itemprop="title" lang="la">Quo vadis?</i>
   <meta itemprop="inLanguage" value="en"/>
</div>

tells it is an English edition. @lang would not be appropriate for the 
meta element, I guess. For when to use @lang (@xml:lang) and when to use 
some other attribute, cf. 
http://www.w3.org/International/questions/qa-when-xmllang

Gunnar

Received on Wednesday, 26 October 2011 07:55:47 UTC