Tak wygląda cześć nagłówka stronki (stronka zapisana jako *.php):
<?php echo '<?xml version="1.0" encoding="iso-8859-2" standalone="no"?'.'>'; ?> <?php echo '<?xml-stylesheet type="text/css" href="xhtml.css"?'.'>'; ?> <!doctype html public "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl"> <head> <link rel="stylesheet" href="xhtml.css" type="text/css" media="screen"/> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" xml:lang="pl"/>
i wtedy walidator zwraca takie wyrażenie:
Cytat
Line 5, column 71: character data is not allowed here
...ef="xhtml.css" type="text/css" media="screen"/>
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).
...ef="xhtml.css" type="text/css" media="screen"/>
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).
To jedyny błąd z którym nie potrafie Sobie poradzić
