W3C home > Mailing lists > Public > www-validator-cvs@w3.org > April 2007

[Bug 4475] Namespace declarations treated as attributes

From: <bugzilla@wiggum.w3.org>
Date: Thu, 19 Apr 2007 13:11:57 +0000
CC:
To: www-validator-cvs@w3.org
Message-Id: <E1HeWQX-0004wY-M7@wiggum.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:57 GMT