[Bug 5329] xsi:schemaLocation considered invalid

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

           Summary: xsi:schemaLocation considered invalid
           Product: Validator
           Version: 0.8.2
          Platform: PC
               URL: http://scooter.rubyforge.org/
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: check
        AssignedTo: dave.null@w3.org
        ReportedBy: devi.webmaster@gmail.com
         QAContact: www-validator-cvs@w3.org


At the beginning of an otherwise perfectly valid document:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd" xml:lang="en"
dir="ltr">


will cause a validation error


Line 2, Column 116: there is no attribute "xsi:schemaLocation" .

You have used the attribute named above in your document, but the document type
you are using does not support that attribute for this element.


even though schemaLocation is a valid attribute in a root element of a document
according to http://www.w3.org/TR/xmlschema-1/#xsi_schemaLocation, a W3C
recommendation.

Received on Monday, 24 December 2007 23:52:34 UTC