<?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>68</bug_id>
          
          <creation_ts>2002-11-19 23:20:09 +0000</creation_ts>
          <short_desc>provide a warning when an XHTML page lacks an xmlns declaration.</short_desc>
          <delta_ts>2007-08-19 21:06:51 +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>check</component>
          <version>0.6.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.aaronsw.com/2002/fixedxmlns</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>notInDTD</keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>0.8.0</target_milestone>
          <dependson>43</dependson>
    
    <dependson>739</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aaron Swartz">me</reporter>
          <assigned_to name="Olivier Thereaux">ot</assigned_to>
          <cc>bice77</cc>
    
    <cc>eldmannen</cc>
    
    <cc>iamback4now</cc>
          
          <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>151</commentid>
    <comment_count>0</comment_count>
    <who name="Aaron Swartz">me</who>
    <bug_when>2002-11-19 23:20:09 +0000</bug_when>
    <thetext>The validator should provide a warning when an XHTML page lacks an xmlns
declaration.
Example: http://www.aaronsw.com/2002/fixedxmlns</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>154</commentid>
    <comment_count>1</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2002-11-20 13:17:03 +0000</bug_when>
    <thetext>This, as well as providing a warning for an incorrect Root Namespace for the
given DOCTYPE, is on the ephemereal mental TODO. This depends on the new config
parser and probably one or two other infrastructural pieces of code.

Setting blocker on Bug #43 and targetting 0.7.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2212</commentid>
    <comment_count>2</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2004-09-01 16:34:59 +0000</bug_when>
    <thetext>Nominating for 0.7.0 release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2365</commentid>
    <comment_count>3</comment_count>
    <who name="niq">nick</who>
    <bug_when>2004-09-20 21:08:56 +0000</bug_when>
    <thetext>We need to apply rules based on MIME type.  That warning is appropriate to XML
doctypes, but not to text/html with XHTML/1.0 where a different message could be
used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2523</commentid>
    <comment_count>4</comment_count>
    <who name="Terje Bless">link</who>
    <bug_when>2004-10-12 19:21:40 +0000</bug_when>
    <thetext>Won&apos;t make it for 0.7.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12848</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-11-07 06:37:56 +0000</bug_when>
    <thetext>*** Bug 3385 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12849</commentid>
    <comment_count>6</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-11-07 07:31:51 +0000</bug_when>
    <thetext>Assigning this to me. 

This is really unchartered territory as this is not a validation issue but a conformance issue, hence it will have to be triggered by some kind of option, but this is one conformance constraint that should not be too difficult to test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12878</commentid>
    <comment_count>7</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-11-09 06:50:07 +0000</bug_when>
    <thetext>not targeting the imminent bugfix release, but the next actual version, with an architecture that would allow us to to that kind of thing more easily, with SAX.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13339</commentid>
    <comment_count>8</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-01-03 15:11:15 +0000</bug_when>
    <thetext>*** Bug 4111 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14628</commentid>
    <comment_count>9</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-04-02 10:47:55 +0000</bug_when>
    <thetext>Done in HEAD (soon to be 0.8.0), see:
http://qa-dev.w3.org/wmvs/HEAD/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-strict-missing-xmlns.html;ss

The problem is that DTDs can either set an attribute to FIXED or REQUIRED but not both... So we had to deal with this issue differently.

Note that current CVS version shoots an error at such an issue, whether it should be a warning is unclear, but comments in e.g http://www.w3.org/QA/2007/03/validation_to_conformance.html#comments seem to show that there is no strong opposition (yet?) to marking not-validation-but-conformance issues as errors. 

Also see 
http://qa-dev.w3.org/wmvs/HEAD/dev/tests/smil20-profile-doctype.smi
for an example of document with bogus xmlns, and that is also marked as error by the current cvs HEAD.

Resolving FIXED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16202</commentid>
    <comment_count>10</comment_count>
    <who name="Marjolein Katsma">iamback4now</who>
    <bug_when>2007-08-19 16:15:52 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; Done in HEAD (soon to be 0.8.0), see:
&gt; http://qa-dev.w3.org/wmvs/HEAD/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/xhtml1-strict-missing-xmlns.html;ss
&gt; 
&gt; The problem is that DTDs can either set an attribute to FIXED or REQUIRED but
&gt; not both...

How is this a problem?

There seems to be a lot of confusion about - or different interpretations of - the meaning of FIXED.

I understand it like this (and I&apos;m not alone in this):
FIXED means 1) the attribute can have only one value, and 2) the document already *has* that value by means of the FIXED value in the DTD it refers to. This implies that if a value is defined as FIXED and a document refers to a DTD that defines it like that, declaring the attribute isn&apos;t mandatory: that&apos;s (almost) the /opposite/ of REQUIRED which mandates that the attribute be declared. At the same time, it&apos;s /allowed/ to be declared, as long as it has the value as shown in the FIXED clause, and not anything different. (Which is the reason FIXED and REQUIRED cannot appear at the same time. :))

That implies:
1. there is /no need/ for a warning at all when the DTD for the declared XHTML version states this as being FIXED (rather than REQUIRED) and the document does not declare the attribute;
2. there certainly /should not/ be an error message, as the validator gives now, when the attribute is not declared: when not declared, the document already /has/ the correct namespace; and
3. there /must/ be an error message when the attribute /is/ declared but has a value /different/ than the one indicated as FIXED in the DTD

IMO the resolution of this issue has actually created a *bug* in the validator, by issuing an error message for what is not an error at all.

Since it is apparently not possible (for me, at least) to reopen this issue (or any issue?), I&apos;ll file a new bug.

(Other related issues: 800, 3385, 4475, 4495)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16204</commentid>
    <comment_count>11</comment_count>
    <who name="Marjolein Katsma">iamback4now</who>
    <bug_when>2007-08-19 17:00:15 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; 
&gt; Since it is apparently not possible (for me, at least) to reopen this issue (or
&gt; any issue?), I&apos;ll file a new bug.

Done: #4961 (http://www.w3.org/Bugs/Public/show_bug.cgi?id=4961)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16206</commentid>
    <comment_count>12</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2007-08-19 19:38:31 +0000</bug_when>
    <thetext>*** Bug 4961 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16208</commentid>
    <comment_count>13</comment_count>
    <who name="Marjolein Katsma">iamback4now</who>
    <bug_when>2007-08-19 21:06:51 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; *** Bug 4961 has been marked as a duplicate of this bug. ***
&gt; 

It has been closed instead, since it&apos;s obviously NOT a duplicate of this bug. Quite the opposite.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>