Zum Inhalt springen

Validator meckert

Erstellt am 25. Mai 2006 · 3 Antworten · letzte Antwort am 26. Mai 2006

Tags: Frage

kaktus ·

Hallo zusammen,

ich bin dabei, eine Seite zu validieren. Drei Fehler, siehe unten. Nummer drei ist, denke ich kein Problem. Nummer 1 und 2 sind für mich rätselhaft, denn die Seite gibt einen Doctype aus, der auf anderen Seiten problemlos durchgeht. Wo ist der Fehler? Seht Ihr mehr als ich?

Auszug Quelltext:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

Die Validatormeldung:

This page is not Valid (no Doctype found)!
Below are the results of attempting to parse this document with an SGML parser. 

Error Line 2 column 4: no document type declaration; implying "<!DOCTYPE HTML SYSTEM>".
				<html>
The checked page did not contain a document type ("DOCTYPE") declaration. The Validator has tried to validate with a fallback DTD, but this is quite likely to be incorrect and will generate a large number of incorrect error messages. It is highly recommended that you insert the proper DOCTYPE declaration in your document -- instructions for doing this are given above -- and it is necessary to have this declaration before the page can be declared to be valid. 

&#9993; 

Error Line 4 column 36: character data is not allowed here.
						<base href="http://pgso.de/" />
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes). 

&#9993; 

Error Line 18 column 69: document type does not allow element "CENTER" here; missing one of "APPLET", "OBJECT", "MAP", "IFRAME", "BUTTON" start-tag.
...,arial,helvetica" size="2"><b><center><font size="+1">Error!</font></center><
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>").

Danke!

Grüße, kaktus

ArminB ·

moin,

ich sehe dort keinen Fehler. Evtl. mal eine URL. Mit welchen Anbieter hast du getestet?

Armin

srakete ·

config{

# JavaScript Funktionen aus dem <head> entfernen
removeDefaultJS = 1

#Ausgabe von XHTML aktivieren

xhtml_cleaning = all
#Doctype auf XHTML 1.0 Transitional einstellen

doctype = xhtml_trans

#XML Prolog unterdrücken, weil der IE ansonsten in den nicht standardkonformen Quirks-Modus wechselt

xmlprologue = none

}

kaktus ·

Hallo,

@ArminB

validiert habe ich mit
http://validator.w3.org/

@srakete

leider kein Erfolg, Fehler bleiben in Anzahl und Aussage gleich. Den Doctype und xhtml cleaning hatte ich drin, die JS - Code - Unterdrückung bewirkt nichts und die xml prolog Geschichte verschiebt einiges??

Was mich wundert ist, dass andere Seiten von mir mit demselben config funktionieren und als valid durchgehen.

Grüße, kaktus