W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2005

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

From: <bugzilla@wiggum.w3.org>
Date: Thu, 22 Dec 2005 23:21:44 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EpZkm-0002xF-Vq@wiggum.w3.org>


           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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:04 UTC