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

attribute derivation

From: <xiaofeng.wang@ps.ge.com>
Date: Fri, 18 Jan 2002 10:43:22 -0500
Message-ID: <DB5C7DE93F66D3119CAD0008C7E64031037623B2@flmlbx01psge.geips.ge.com>
To: xmlschema-dev@w3.org
If an attribute is declared in the base type within the <complexType> tag,
will it become an attribute of a derived type? For example:

<complexType name="base">
   <sequence>
      <element name ="E1" type="string"/>
      <element name ="E1" type="string"/>
   </sequence>
   <attribute name = "A1" type="string"/>
</complexType>

<complexType name="derived">
   <complexContent>
      <extension base="base">
         <sequence>
             <element name="E3" type="string"/>
         </sequence>
     </extension>
   <complextContent>
</complexType>

Will "A1" be an attribute of "derived"?
What is the general way to treat an attribute in a derivation case?

Thanks a lot
Xiaofeng

	
Xiaofeng Wang
GE Network Solutions
1990 West NASA Blvd, Melbourne Florida, 32904
Voice: (321)435-5458, Fax: (321)435-5652
xiaofeng.wang@ps.ge.com
Received on Friday, 18 January 2002 10:44:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT