[Bug 4475] Namespace declarations treated as attributes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4475

           Summary: Namespace declarations treated as attributes
           Product: Validator
           Version: 0.8.0b1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Parser
        AssignedTo: link@pobox.com
        ReportedBy: chris@w3.org
         QAContact: www-validator-cvs@w3.org


Namespaces in XML adds namespace declarations to XML. DTD-based validators,
such as the SGML validator used here, incorrectly treat namespace declaration
as attributes and report validity errors. As an example

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
xmlns:foo="someURI">
<head><title>ns test</title></head>
<body/></html>

Please consider modifying the parser such that namespace declarations are not
treated as validity errors.

Received on Thursday, 19 April 2007 13:11:59 UTC