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

[Bug 2001] R-23. pfiattrRestrict: Restrictions of attributes specifying "use"

From: <bugzilla@wiggum.w3.org>
Date: Wed, 07 Sep 2005 19:45:01 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1ED5qv-0003PS-0f@wiggum.w3.org>


           Summary: R-23. pfiattrRestrict: Restrictions of attributes
                    specifying "use"
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 1: Structures
        AssignedTo: ht@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org

The constraints listed for "derivation-ok-restriction" do not appear to 
prohibit the following: 

<xsd:complexType name="baseType">
     <xsd:attribute name="attrib1" type="xsd:string" use="prohibited"/>

<xsd:complexType name="restrictedType">
          <xsd:restriction base="baseType">
               <xsd:attribute name="attrib1" type="xsd:string" use="required"/>
Shouldn't this be disallowed, since instances of the restricted type are not 
valid instances of the base?

Received on Wednesday, 7 September 2005 19:45:05 UTC

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