- 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
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 UTC