Forum Moderators: phranque

Message Too Old, No Replies

XHTML validator, "&" error ..

         

fmaz

2:16 pm on Jul 6, 2004 (gmt 0)

10+ Year Member



This is the Error MSG:

-------------------------------------
Line 92, column 71: cannot generate system identifier for general entity "url"

'?q=publications&url=/bulletin et santé en tête/'

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.

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.
--------------------------

Any idea how to fix this error?

fmaz

2:17 pm on Jul 6, 2004 (gmt 0)

10+ Year Member



Hum... soved by myself ...

I think I must put an & anyway ;p

pete_m

2:39 pm on Jul 6, 2004 (gmt 0)

10+ Year Member



Yeah, the ampersands in URLs need to be coded as &

At first this seems counter-intuitive, but I've never encountered any browser incompatibility problems.

fmaz

2:45 pm on Jul 6, 2004 (gmt 0)

10+ Year Member



But... if I want to send the VALUE & ..

example:

[test.com...]

the browser will understand right or will do:

[test.com...]
(this is 2 parameters, not 1)
Well, not sure to be clear, but if you understand something, can it cause a problem?