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

Re: Type derivation problem

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 24 Aug 2001 11:40:53 +0100
To: Guillaume Rousse <rousse@ccr.jussieu.fr>
Cc: xmlschema-dev@w3.org
Message-ID: <f5bu1yxeo5m.fsf@cogsci.ed.ac.uk>
Guillaume Rousse <rousse@ccr.jussieu.fr> writes:

> Hello.
> I would like to derive a basic type by extension , allowing to add other 
> elements and attributes, while restraining some inherited elements allowed 
> values. In classical OO language, i would just override get/set methods, but 
> is it legal using XML schema ?

Not in a single step -- you have to do one extension and one
restriction -- probably best to do it in that order, with the
intermediate type being abstract='true' to make clear it's not
intended for use.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Friday, 24 August 2001 06:40:29 GMT

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