Foros del Web » Creando para Internet » HTML »

error al validar mi xhtml

Estas en el tema de error al validar mi xhtml en el foro de HTML en Foros del Web. Estoy validando mi xhtml en http://validator.w3.org y me sale estos errores sera que me pueden ayudar ?? # Error Line 69, Column 164: general entity ...
  #1 (permalink)  
Antiguo 25/07/2008, 08:05
Avatar de jmillan  
Fecha de Ingreso: julio-2008
Mensajes: 60
Antigüedad: 15 años, 8 meses
Puntos: 0
error al validar mi xhtml

Estoy validando mi xhtml en http://validator.w3.org y me sale estos errores sera que me pueden ayudar ??



# Error Line 69, Column 164: general entity "id" not defined and no default entity.

…<a href='noticia.php?categoria=Tenis&id=162'><img src='/imagenes/fle_r.gif' b



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
# Warning Line 69, Column 166: reference not terminated by REFC delimiter.

… href='noticia.php?categoria=Tenis&id=162'><img src='/imagenes/fle_r.gif' bor



If you meant to include an entity that starts with "&", then you should terminate it with ";". Another reason for this error message is that you inadvertently created an entity by failing to escape an "&" character just before this text.
# Warning Line 69, Column 166: reference to external entity in attribute value.

… href='noticia.php?categoria=Tenis&id=162'><img src='/imagenes/fle_r.gif' bor



This is generally the sign of an ampersand that was not properly escaped for inclusion in an attribute, in a href for example. You will need to escape all instances of '&' into '&amp;'.
# Error Line 69, Column 166: reference to entity "id" for which no system identifier could be generated.

… href='noticia.php?categoria=Tenis&id=162'><img src='/imagenes/fle_r.gif' bor



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.



dejo parte de mi codigo


echo "<h1>Titulares</h1>";
echo "<table class='titulares' width='620' border='0' cellpadding='3' cellspacing='0' >";
$prueba = tit_x_categ ();
while ($fila =mysql_fetch_array($prueba)) {
if($cont%2==0){ $color='#8CBDDC';}else{ $color='#4690BF';}

echo "<tr bgcolor='",$color,"'>";
echo "<td><a href='noticia.php?categoria=",$fila['categoria'],"&id=",$fila['not_ID'],"'><img src='/imagenes/fle_r.gif' border='0' alt=''/>",$fila['notFecha'], "<img src='/imagenes/mi_separador.gif' border='0' alt='' />",$fila['notTitulo'],"</a></td>";
echo "</tr>";
$cont++;
}?>
</table>
  #2 (permalink)  
Antiguo 25/07/2008, 08:44
Avatar de Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Respuesta: error al validar mi xhtml

Te lo está diciendo muy claro: el símbolo & marca el inicio de una entidad, y lo que hay detrás de él no lo reconoce como entidad.

Vamos, que busques todos los & de esos enlaces y los cambias por &amp; que es su entidad correspondiente.

Mikel.
  #3 (permalink)  
Antiguo 25/07/2008, 08:45
Avatar de pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años
Puntos: 2534
Respuesta: error al validar mi xhtml

bueno, basicamente.... y que no se te olvide

los amphersand (&) cuando usas xHTML deben ser entidades completas.... osea

en ves de..
Código HTML:
?foo=bar&candy=man
debe ser asi...
Código HTML:
?foo=bar&amp;candy=man
nota el &amp; en ves del simple.... &


PDTA: moco?
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.
  #4 (permalink)  
Antiguo 25/07/2008, 08:49
Avatar de Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Respuesta: error al validar mi xhtml

Cita:
Iniciado por pateketrueke Ver Mensaje
PDTA: moco?


"Como", era "como" pero los dedos se han descoordinado.

Mikel.
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:35.