W3C home > Mailing lists > Public > www-validator@w3.org > August 2013

Re: Validation bug - XHTML 1.1 and XHTML+RDFa

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Thu, 29 Aug 2013 08:56:46 +0300
Message-ID: <521EE29E.4020506@cs.tut.fi>
To: Liam Morland <lkmorlan@uwaterloo.ca>
CC: www-validator@w3.org
2013-08-29 0:30, Liam Morland wrote:

> Why am I still getting an error for using @lang in XHTML+RDFa 1.0?

Presumably because it is invalid according to the DTD specified.

> I today downloaded the DTD from:
> http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd
> Unless I am misreading it, @lang is allowed along with @xml:lang.

The DTD indeed contains the following definition:

<!ENTITY % lang.attrib
      "xml:lang     %LanguageCode.datatype;  #IMPLIED
       lang         %LanguageCode.datatype;  #IMPLIED"

It's just an entity declaration, so we would need to track down how it 
is used. The XHTML modularization is a relatively simple concept, but it 
gets rather messy in practice.

 > I would appreciate it if the validator would updated to use the most
 > current DTDs.

The DTD mentioned is dated 26-Jun-2009. If it has a bug, perhaps it 
hasn't been noticed, since the DTD is used so little. The DTD at
is newer and does not have this problem.

Received on Thursday, 29 August 2013 05:57:15 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:37 UTC