Hola a todos.
 
Me estoy volviendo un poco loco con la validación del código en la
herramienta de la W3C (posiblemente porque soy un novato en el tema), y por
eso recurro a vosotros a ver si me podéis ayudar.
 
Realmente me da dos errores que no se por donde cogerlos, os los cuento:
 
    1º) Parece ser que estos errores que os pongo a continuación son todos
frutos de este error que me indica el editor: "In XHTML 1.0 Transitional the
tag <ul> cannot contain a tag <ul> ".
 
            Error Line 62 column 38: document type does not allow element 
ul" here; assuming missing "li" start-tag.
                                <ul class="submenu" id="smenu1">
            Error Line 69 column 67: document type does not allow element 
li" here; missing one of "ul", "ol", "menu", "dir" start-tag.
                    ...menuizq_li" onclick="javascript:montre('smenu2');">
            The mentioned element is not allowed to appear in the context in
which you've placed it; the other mentioned elements are the only ones that
are both allowed there and can contain the  element mentioned. This might
mean that you need a containing element, or possibly that you've forgotten
to close a previous element. 
One possible cause for this message is that you have attempted to put a
block-level element (such as "<p>" or "<table>") inside an inline element
(such as "<a>", "<span>", or "<font>"). 
No se si es necesario que os pegue todo el chorro de código pero en resumen
es la parte del código del menú que realmente son listas no ordenadas y
dentro de algunas <li> hay utras <ul> para los submenus. Imagino que ese es
el problema pero yo creía que un submenú se podía hacer así. 
¿Se os ocurre alguna explicación/pista de por donde puede ir el asunto?
 
    2º) El segundo error que me indica es con los enlaces, me dice que:
Warning  Line 76 column 124: cannot generate system identifier for general
entity "a".
....es/info/ucmp/pags.php?to=Estudiantes&a=directorio&d=0010686.php">
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 "&amp;" (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 &aelig; 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.
Error Line 76 column 124: general entity "a" not defined and no default
entity.
....es/info/ucmp/pags.php?to=Estudiantes&a=directorio&d=0010686.php">
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.
Como podréis ver el error es de los links, son links a páginas PHP y parece
ser que no le gusta nada, he leido el artículo relacionado que indica pero
no veo la solución. Los links en el código están puestos así: "<a title=
Prácticas para estudiantes" target="_blank" href="http://www.ucq
es/info/ucqp/pags.php?tp=Estudiantes&a=directorio&d=0010686.php"></a>"
¿Sabéis que puedo hacer para que se valide este código?
 
 
Muchas gracias por escuchar las lamentaciones de un novato.
 
Un saludo,
 
Jose.


 
_______________________________________________
Lista de distribución Ovillo
Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org
Puedes modificar tus datos o desuscribirte en la siguiente dirección: 
http://lists.ovillo.org/mailman/listinfo/ovillo

Responder a