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

problems with extension nested type

From: DiFino Angelo <Angelo.Difino@TILAB.COM>
Date: Tue, 27 Aug 2002 04:02:47 -0400 (EDT)
To: xmlschema-dev@w3.org
Message-id: <324B3742A9E48D47A20E13E725503EB420500B@EXC2K05B.cselt.it>

i've a really quick question about extension and i haven't found information
about it.

In a schema of mine is defined:

<complexType name="UKPostCodeType">
   <element name="number" type="positiveInteger"/>
   <element name="zone"   type="string"/>

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

   <element name="postcode" type="UKPostcodeType"/>

My necessity is to _extend_ the UKAddressType in a new
schema adding some new attribute to the postcode slot.
I know that there are the possibility to add element
by _extension_ to a type definition, but i don't know
if there the possibility to add elements to a
nested type (without modify the UKAddressType).

Any suggestion?

Best regards,
Angelo Difino
Telecom Italia Lab
Multimedia Division
Via G. Reiss Romoli, 274
10148 Turin, Italy
Ph: +39 011 228 6004
Fax: +39 011 228 6299

This message and its attachments are addressed solely to the persons
above and may contain confidential information. If you have received
the message in error, be informed that any use of the content hereof
is prohibited. Please return it immediately to the sender and delete
the message. Should you have any questions, please contact us by
replying to MailAdmin@tilab.com. Thank you
Received on Friday, 30 August 2002 10:23:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:05 UTC