Hello,
I’m using the following to hide the .xhtml extension from a site’s addresses.
AddType text/html .xhtml
DirectoryIndex perfil.xhtml
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.xhtml -f
RewriteRule ^(.*)$ $1.xhtml
The xhtml files themselves are valid, but the lack of extension gives me this (and other related) errors when trying to validate them with W3Cs validation tool:
- Unable to Determine Parse Mode!
The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because:
* the MIME Media Type (text/html) can be used for XML or SGML document types
* the Document Type (-//W3C//DTD XHTML; 1.0 Strict//EN) is not in the validator's catalog
* No XML declaration (e.g <?xml version="1.0"?>) could be found at the beginning of the document.
As a default, the validator is falling back to SGML mode.
-
Warning Namespace Found in non-XML Document
Namespace “” found, but the -//W3C//DTD XHTML; 1.0 Strict//EN document type is not an XML document type!
Validation Output: 78 Error
-
Error Line 237, Column 27: omitted tag minimization parameter can be omitted only if OMITTAG NO is specified.
… And the list goes on and on with omitted tag errors (again, if I check the xhtml files, they’re valid).
How can I fix this? Thank you very much for any assistance!