mam problem, jest taka strona:
w pliku index.php
if(ereg('xhtml', $_SERVER['HTTP_ACCEPT']))
header('Content-Type: application/xhtml+xml');
i do index.php doparsowywana jest taka zawartość:
<?xml version="1.0" encoding="iso-8859-2"?> <!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"> <head> <link rel="stylesheet" type="text/css" href="{TPL}style.css" /> <?xml-stylesheet type="text/css" href="{TPL}style.css" ?> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> <meta name="author" content="Kooba" /> <meta name="generator" content="PidPad 3.2 (http://www.szczepaniak.org/)" /> <title>{TITLE}</title> <script type="java/script" src="scripts.js"></script> </head> <body xml:lang="pl">
itd... w każdym razie po sparsowaniu strona jest zgodna z xhtml, działa na ie (jako html, ale działa), na operze również a na mozili i firefoxie widać tylko:
XML Parsing Error: xml processing instruction not at start of external entity Location: http://localhost/forum/index.php Line Number 2, Column 1:
<?xml version="1.0" encoding="iso-8859-2"?>^
o co chodzi?
a drugie pytanie - czym zastąpić atrybut name dla <form> i onMouseOver i onMouseOut dla <a> bo validator twierdzi że nie ma takich atrybutów :/