W3C home > Mailing lists > Public > www-international@w3.org > July to September 2006

Re: Specifying Language in XHTML and HTML

From: Jon Hanna <jon@hackcraft.net>
Date: Fri, 04 Aug 2006 09:08:18 +0100
Message-ID: <44D30072.10406@hackcraft.net>
To: "M.T. Carrasco Benitez" <mtcarrascob@yahoo.com>
Cc: www-international@w3.org

M.T. Carrasco Benitez wrote:
> Best Practice 4 should also recommended for XHTML:
> 
>  <html lang="en">
> 
> and *not* the double language labelling
> 
>  <html lang="en" xml:lang="en">
> 
> Having double language labelling is unnecessary.
> 
> If one goes down this path, one should do the same for all ovelapping of
> XML and HTML; e.g., 
> 
>  <p id="foo" xml:id="id">

The analogy doesn't follow. An XML-procssor based on a validating XML 
parser with knowledge of xml:lang is capable of recognising <p id="foo"> 
as having an ID of "foo", matching #foo in URIRefs, etc. It is not 
capable of recognising lang="en" as identifying the content as being in 
English.
Received on Friday, 4 August 2006 08:09:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:08 GMT