This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5642 - Errors with W3 Validator
Summary: Errors with W3 Validator
Status: RESOLVED DUPLICATE of bug 5329
Alias: None
Product: Validator
Classification: Unclassified
Component: Templates (show other bugs)
Version: 0.8.2
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-14 19:56 UTC by Eric Siegel
Modified: 2008-04-17 13:32 UTC (History)
0 users

See Also:


Attachments

Description Eric Siegel 2008-04-14 19:56:37 UTC
I have found 2 errors with the validator when trying to validate my XHTML 1.1 website.

The first error I found is with the MIME type check.  This warning is printed if my page is not being served as application/xhtml+xml:

"The document is being served with the text/html Mime Type which is not a registered media type for the XHTML 1.1 Document Type. The recommended media type for this document is: application/xhtml+xml"

I have this code at the top of my webpage as per the link associated with the error (http://juicystudio.com/article/content-negotiation.php):

header("Vary: Accept");
if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") === FALSE){
	header("Content-type: text/html");
}
else{
	header("Content-type: application/xhtml+xml");
}

If I remove the if statement and just put header("Content-type: application/xhtml+xml"), it works fine.

The second error is with the <html> tag.  According to the XHTML 1.1 documentation (http://www.w3.org/TR/xhtml11/conformance.html#strict), "xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"" is required to be in the <html> tag, but the validator says "there is no attribute "xsi:schemaLocation"".

These are only minor bugs, but I want to make sure that the validator follows the documentation.
Comment 1 Olivier Thereaux 2008-04-17 12:19:31 UTC
(In reply to comment #0)
> I have found 2 errors with the validator when trying to validate my XHTML 1.1
> website.
> 
> The first error I found is with the MIME type check.  This warning is printed
> if my page is not being served as application/xhtml+xml:

See Bug #18

> The second error is with the <html> tag.  According to the XHTML 1.1
> documentation (http://www.w3.org/TR/xhtml11/conformance.html#strict),
> "xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"" is required
> to be in the <html> tag, but the validator says "there is no attribute
> "xsi:schemaLocation"".

XHTML 1.1 is back to draft status and is a moving target, which is why some recent changes may not be in the production validator yet. Could you try with:
http://qa-dev.w3.org/wmvs/HEAD/

* if the test validator acts OK, all is well - that will be propagated to the production service soon
* if the test validator has the same problem, can you contact  www-html-editor@w3.org and send feedback that the XHTML1.1 DTD is out of sync with the prose requirements for xsi:schemaLocation? That would be very much appreciated.
Comment 2 Olivier Thereaux 2008-04-17 12:26:18 UTC
closing qs duplicate of Bug #18 and #5329

*** This bug has been marked as a duplicate of bug 5329 ***
Comment 3 Eric Siegel 2008-04-17 13:32:43 UTC
The MIME Type is fixed, but it still says "there is no attribute
"xsi:schemaLocation"".  I have e-mailed the address you posted.