This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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> <xsd:complexType name="restrictedType"> <xsd:complexContent> <xsd:restriction base="baseType"> <xsd:attribute name="attrib1" type="xsd:string" use="required"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> Shouldn't this be disallowed, since instances of the restricted type are not valid instances of the base? See http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001AprJun/0225.html
This restriction is already disallowed by the Structures spec. In the base type, there is no component for the attribute because of the use="prohibited". Given this, clause 2.2 of Schema Component Constraint: Derivation Valid (Restriction, Complex) applies and causes this example to be invalid. No erratum is required.