W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2000

using redefine

From: David Valera <dvalera@pcl-hage.nl>
Date: Fri, 22 Dec 2000 10:58:15 +0100
To: <xmlschema-dev@w3.org>
Message-ID: <D1F94D8C7C1FD111A5290020AF92B1B3B03A38@INTRASERVER>

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:


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


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

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

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?


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:48 UTC