<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>5642</bug_id>
          
          <creation_ts>2008-04-14 19:56:37 +0000</creation_ts>
          <short_desc>Errors with W3 Validator</short_desc>
          <delta_ts>2008-04-17 13:32:43 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Templates</component>
          <version>0.8.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5329</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Siegel">NTICompass</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>19797</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Siegel">NTICompass</who>
    <bug_when>2008-04-14 19:56:37 +0000</bug_when>
    <thetext>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:

&quot;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&quot;

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(&quot;Vary: Accept&quot;);
if(stristr($_SERVER[&quot;HTTP_ACCEPT&quot;],&quot;application/xhtml+xml&quot;) === FALSE){
	header(&quot;Content-type: text/html&quot;);
}
else{
	header(&quot;Content-type: application/xhtml+xml&quot;);
}

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

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

These are only minor bugs, but I want to make sure that the validator follows the documentation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19848</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-04-17 12:19:31 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; I have found 2 errors with the validator when trying to validate my XHTML 1.1
&gt; website.
&gt; 
&gt; The first error I found is with the MIME type check.  This warning is printed
&gt; if my page is not being served as application/xhtml+xml:

See Bug #18

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

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19849</commentid>
    <comment_count>2</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2008-04-17 12:26:18 +0000</bug_when>
    <thetext>closing qs duplicate of Bug #18 and #5329

*** This bug has been marked as a duplicate of bug 5329 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19852</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Siegel">NTICompass</who>
    <bug_when>2008-04-17 13:32:43 +0000</bug_when>
    <thetext>The MIME Type is fixed, but it still says &quot;there is no attribute
&quot;xsi:schemaLocation&quot;&quot;.  I have e-mailed the address you posted.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>