W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2002

RE: abstract=true in a localElement

From: Priya Lakshminarayanan <priyal@microsoft.com>
Date: Fri, 14 Jun 2002 10:22:39 -0700
Message-ID: <8D7D23D65C1CEB44ABEE89F137A5D32804474647@red-msg-09.redmond.corp.microsoft.com>
To: "Jeni Tennison" <jeni@jenitennison.com>, <xmlschema-dev@w3.org>, "Dwivedi , Ajay Kumar" <AjayKumar.Dwivedi@dresdner-bank.com>

This was fixed in MSXML4.0 SP1. I will send this to our test team to
correct the test case in the W3C test collection. 


-----Original Message-----
From: Jeni Tennison [mailto:jeni@jenitennison.com] 
Sent: Friday, June 14, 2002 3:12 AM
To: xmlschema-dev@w3.org; Dwivedi , Ajay Kumar
Subject: Re: abstract=true in a localElement

Hi Ajay,

> As per the test case particlesDa010 of
> htm the following schema is expected to be correct. It passes both
> the Microsoft's and XERCES's tests.
> However Item 2, "3.3.4 Element Declaration Validation Rules" of
> Part1 and subsequent Comments in
> xmlschema-rec-comments#pfiElemValidType says that "element may not
> have {abstract} = true".
> So, is this schema invalid or am I missing something?

I think the schema is invalid. When an xs:element occurs within a
xs:sequence, it has the type 'localElement', which is defined in the
Schema for Schema as:

 <xs:complexType name="localElement">
   <xs:restriction base="xs:element">
     <xs:element ref="xs:annotation" minOccurs="0"/>
     <xs:choice minOccurs="0">
      <xs:element name="simpleType" type="xs:localSimpleType"/>
      <xs:element name="complexType" type="xs:localComplexType"/>
     <xs:group ref="xs:identityConstraint" minOccurs="0"
    <xs:attribute name="substitutionGroup" use="prohibited"/>
    <xs:attribute name="final" use="prohibited"/>
    <xs:attribute name="abstract" use="prohibited"/>

As you can see, the abstract attribute is prohibited for element
declarations of this type.



Jeni Tennison
Received on Friday, 14 June 2002 13:23:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:57 UTC