Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/10/2009, 16:45
Avatar de IMAC/
IMAC/
 
Fecha de Ingreso: octubre-2005
Mensajes: 738
Antigüedad: 18 años, 6 meses
Puntos: 14
De acuerdo Problema al validar html con w3c validator - Problema con doctype

Buenas

Estaba intentando validar el código html generado por una página web y me da el siguiente error:
Cita:
Namespace Found in non-XML Document

Namespace "http://www.w3.org/1999/xhtml" found, but the -//W3C//DTD HTML 4.01//EN document type is not an XML document type!
Y este otro también:
Cita:
DOCTYPE Override in effect!

The detected DOCTYPE Declaration "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">" has been suppressed and the DOCTYPE for "HTML 4.01 Strict" inserted instead, but even if no errors are shown below the document will not be Valid until you update it to reflect this new DOCTYPE.
En el documento tengo el siguiente doctype:

Cita:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Aunque con este otro también daba el mismo error:
Cita:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
¿qué puede estar sucediendo?
¿Cómo lo soluciono?

Gracias de antemano.