[Bug 4053] DataTypes tests: QName009

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

           Summary: DataTypes tests: QName009
           Product: XML Schema Test Suite
           Version: 2006-11-06
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Microsoft tests
        AssignedTo: ht@inf.ed.ac.uk
        ReportedBy: mike@saxonica.com
         QAContact: public-xml-schema-testsuite@w3.org


In the Microsoft DataTypes tests, test QName009, the following instance is
considered to be valid

<?xml version='1.0'?>
<root xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
       xsi:noNamespaceSchemaLocation="QName.xsd" >
  <simpleTest>xmlns:xsi</simpleTest>
</root>

where simpleTest is of type QName. The spec says (in a Note!) "The mapping
between literals in the ·lexical space· and values in the ·value space· of
QName requires a namespace declaration to be in scope for the context in which
QName is used." 

According to the Infoset (and the same is true of XDM) "[in-scope namespaces]
does not contain an item with the prefix xmlns (used for declaring namespaces),
since an application can never encounter an element or attribute with that
prefix"

Therefore I think that xmlns:xsi is an invalid QName and this instance is
therefore invalid.

Received on Friday, 8 December 2006 22:54:00 UTC