Re: Specifying Language in XHTML and HTML

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 UTC