Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/12/2007, 12:26
gustavobaezz
 
Fecha de Ingreso: noviembre-2007
Mensajes: 90
Antigüedad: 16 años, 5 meses
Puntos: 0
validar sitio con links que contienen "&"

Hola.

Mi problema es el siguiente...mi sitio web está basado en php y mysql.
En la base de datos tengo links de otros webs que contienen el dichoso caracter "&"...pero que necesito y que están enlazados en mi página.

Por otro lado en mis páginas cuando son páginadas en php también genero links con "&"...aqunque estó me preocupa menos porque de una u otra manera tengo control y podría llegar a cambiarlos.

Por ambas razones no consigo validar mis páginas....aunque no tienen un sólo error..por cierto las intento validar en html 4.01 Transitional o en xhtml 1.0 transitional.

Mi pregunta es ...¿hay algún standard que soporte links de este tipo?


Os incluyo abajo las referencias que me da el validador de w3c...aunque está claro el motivo...








Line 346, Column 77: cannot generate system identifier for general entity "file".
…s/servlet/servletpdf?cntr=1&fdr=2049&file=22339&ext=PDF&num= 6">RESOLUCIÓN de ✉
An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs".

Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters.

If this error appears in some markup generated by PHP's session handling code, this article has explanations and solutions to your problem.

Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed.