using redefine

hello,

I am looking at the possibilities of using redefine in an XML schema. What I
have seen from the primer, it is possible to add an element to a particular
complexType, like this:

<redefine
  schemaLocation="http://www.example.com/schemas/address.xsd">

  <!-- redefinition of Address -->
  <complexType name="ipo:Address">
   <complexContent>
     <extension base="ipo:Address">
      <sequence>
       <element name="country" type="string"/>
      </sequence>
     </extension>
   </complexContent>
  </complexType>

 </redefine>

My question is, is it also possible to 'remove' elements that are declared
in the ipo: Address. Lets say address is:


 <complexType name="Address">
  <sequence>
   <element name="name"   type="string"/>
   <element name="street" type="string"/>
   <element name="city"   type="string"/>
  </sequence>
 </complexType>

I would like to have the possibility of redefining Address so that it only
has two elements, 'name' and 'street'. element 'city' is no longer needed.
Is this possible using redefine or do I have to stick to the possibilities
of extension and restriction?

thanks,

David Valera

Received on Friday, 22 December 2000 04:57:26 UTC