Hola,

El 3/04/06, Reynier Perez Mira<[EMAIL PROTECTED]> escribió:
> Hola a todos:
> Estuve pasando el código de mi documento XHTML por el validador de la W3C y 
> me retorna este error:
>
> ....
> Line 17 column 77: document type does not allow element "link" here.
>
> ..."all" rel="stylesheet" type="text/css" />
>
> The element named above was found in a context where it is not allowed. This 
> could mean that you have incorrectly nested elements -- such as a "style" 
> element in the "body" section instead of inside "head" -- or two elements 
> that overlap (which is not allowed).
>
> One common cause for this error is the use of XHTML syntax in HTML documents. 
> Due to HTML's rules of implicitly closed elements, this error can create 
> cascading effects. For instance, using XHTML's "self-closing" tags for "meta" 
> and "link" in the "head" section of a HTML document may cause the parser to 
> infer the end of the "head" section and the beginning of the "body" section 
> (where "link" and "meta" are not allowed; hence the reported error).
> ....
>
> Sabe alguien a que se refiere?
>
> Este es el documento que examine (solo hasta la etiqueta BODY):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> <html xmlns="http://www.w3.org/1999/xhtml";>
> <head id="C_THead1">
> <title>Portal del Proyecto SIMPRO</title>
>
>         <meta name="http-equiv" lang="en" content="text/html charset=utf-8" />
>         <meta name="keywords" lang="en" content="simpro, portal, realidad 
> virtual, aplicaciones 3d, 3d studio, maya" />
>         <meta name="description" lang="en" content="Portal dedicado al diseño 
> y programación de entornos virtuales así como al aprendizaje de programas 
> relacionados con el mismo como es el caso de 3D Studio Max, Maya, Blender u 
> otros." />
>         <meta name="robots" lang="en" content="all" />
>         <meta name="author" lang="en" content="Reynier Perez Mira" />
>         <meta name="subject" lang="en" content="Simuladores y realidad 
> virtual en la UCI" />
>
>         <meta name="generator" lang="en" content="Zend Studio 5.1.1 Client" />
>
> </head>
> <!-- Estilos CSS -->
> <link href="css/simpro_ga.css" media="all" rel="stylesheet" type="text/css" />
> <!--[if IE]>
>         <link href="css/simpro_ie.css" media="all" rel="stylesheet" 
> type="text/css" />
> <![endif]-->
> <body>

La hoja de estilos deben estar enlazada desde dentro de la cabecera (head).
Si colocas el cierre de la baliza "head" justo antes
de la apertura del cuerpo (body), debería funcionarte
mejor y no tendría que darte al menos, el error señalado.

Saludos.

Hugo



--
Hugo A. Valencia
_______________________________________________
Lista de distribución Ovillo
Para escribir a la lista, envia un correo a [email protected]
Puedes modificar tus datos o desuscribirte en la siguiente dirección: 
http://ovillo.org/mailman/listinfo/ovillo

Responder a