Hej
Jeg har nogle links på min side som bliver udskrevet som eksempelvis:
events.asp?aar=2004&maaned=7&dag=13
Hvilket giver denne fejl når jeg validerer siden:
*********************
Line 38, column 49: cannot generate system identifier for general entity
"maaned"
....'some'> <a href='events.asp?aar=2004&maaned=8&dag=1' class='noevent'
target='
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.
Line 38, column 49: general entity "maaned" not defined and no default
entity
....'some'> <a href='events.asp?aar=2004&maaned=8&dag=1' class='noevent'
target='
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.
*********************************
Går ud fra det har noget med & i linket at gøre?
Koden som genererer linkende ser sådan her ud:
eventdag =
"aar="&intthisyear&"&maaned="&intthismonth&"&dag="&intprintday&""
Write_TD "<a href='events.asp?"& eventdag & "' class='noevent'
target='resultat'> " & intPrintDay & "</a>", "some"
Kan jeg undgå denne valideringsfejl eller skal jeg bare se bort fra den?
--
Med venlig hilsen
Carsten Sørensen
http://www.forshus.dk