W3C home > Mailing lists > Public > public-vocabs@w3.org > October 2011

Re: Language in schema.org

From: Gunnar Bittersmann <gunnar@bittersmann.de>
Date: Wed, 26 Oct 2011 09:55:18 +0200
Message-ID: <4EA7BCE6.8070403@bittersmann.de>
To: public-vocabs@w3.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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 06:48:56 GMT