[Bug 2616] Error in XML mapping for target namespace of local attributes, sec. 3.2.2

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

           Summary: Error in XML mapping for target namespace of local
                    attributes, sec. 3.2.2
           Product: XML Schema
           Version: 1.0/1.1 both
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: unclassified
          Severity: normal
          Priority: P2
         Component: Structures: XSD Part 1
        AssignedTo: ht@w3.org
        ReportedBy: cmsmcq@w3.org
         QAContact: www-xml-schema-comments@w3.org


The XML mapping rules for attribute source declarations
which occur within complexType or attributeGroup elements
specify that if the attribute is qualified, the value
of its {target namespace} property comes from "the actual 
value of the targetNamespace [attribute] of the parent 
<schema> element information item, or absent if there 
is none".

Since such an attribute declaration can never have a 
parent element of type xsd:schema, there can never be 
a targetNamespace attribute belonging to such a parent
schema element.  It follows that all local attributes 
declared as form = qualified are required by 1.0 and the
current draft of 1.1 to be unqualified.

Both 1.0 and 1.1 should be corrected to refer to the
ancestor schema element, rather than the parent.
(The editors should probably scan for other instances 
of this, since it looks like a copy-paste error.)

Received on Thursday, 22 December 2005 23:21:47 UTC