This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 5505 - wrong type for schemaBinding/namespaceBinding/namespace attribute
Summary: wrong type for schemaBinding/namespaceBinding/namespace attribute
Status: RESOLVED FIXED
Alias: None
Product: SML
Classification: Unclassified
Component: Interchange Format (show other bugs)
Version: LC
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Virginia Smith
QA Contact: SML Working Group discussion list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-27 16:27 UTC by Valentina Popescu
Modified: 2008-06-05 19:35 UTC (History)
0 users

See Also:


Attachments

Description Valentina Popescu 2008-02-27 16:27:33 UTC
The type for schemaBinding/namespaceBinding/ namespace attribute should be xs:anyURI ( or smlif:uriType ) since its value represent a schema document's targetNamespace value.

It is currently set to "xs:NCName"

 <xs:element name="namespaceBinding" type="smlif:namespaceBindingType"/>
  <xs:complexType name="namespaceBindingType" mixed="false">
    <xs:attribute name="namespace" type="xs:NCName" use="optional"/>
    <xs:attribute name="aliases" use="required">
      <xs:simpleType>
        <xs:list itemType="xs:anyURI"/>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>


As a result, valid namespace values, such as "urn:university" are not accepted
Comment 1 Valentina Popescu 2008-02-27 16:42:19 UTC
The namespace type should actually be xs:anyURI ( cannot be smlif:anyType as I commented in the defect description ). In this case namespace is an attribute, not an element so it can't have a complex type.
Comment 2 Kumar Pandit 2008-03-06 19:32:42 UTC
resolution (3/6 conf call): add a comment to clarify that aliases are for documents, mark it editorial and fixed per comment #1
Comment 3 Virginia Smith 2008-05-15 16:47:18 UTC
Fixed per comment #2.

Schema changed from:
--------
  <xs:complexType name="namespaceBindingType" mixed="false">
    <xs:attribute name="namespace" type="xs:NCName" use="optional"/>
    <xs:attribute name="aliases" use="required">
      <xs:simpleType>
        <xs:list itemType="xs:anyURI"/>
      </xs:simpleType>
    </xs:attribute>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>
---------

To:
---------
   <!-- The value of the aliases attribute in the complexType below 
       is a list of instance document URIs -->
   
  <xs:complexType name="namespaceBindingType" mixed="false">
    <xs:attribute name="namespace" type="xs:anyURI" use="optional"/>
    <xs:attribute name="aliases" use="required">
      <xs:simpleType>
        <xs:list itemType="xs:anyURI"/>
      </xs:simpleType>
    </xs:attribute>
    <xs:anyAttribute namespace="##other" processContents="lax"/>
  </xs:complexType>

---------
Comment 4 John Arwe 2008-05-22 13:13:28 UTC
+1