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

Re: Extending a choice model group in the derived type

From: Stefan Wachter <Stefan.Wachter@gmx.de>
Date: Thu, 22 Aug 2002 21:10:41 +0200 (MEST)
To: "Dare Obasanjo" <dareo@microsoft.com>;xmlschema-dev@w3.org
Message-ID: <18702.1030043441@www4.gmx.net>

If the minOccurs of the choice group is 0 then the derivation can be done by
first extending the content model and then restricting it:

(x|y)? extended into (x|y)? (x|y|z)? restricted into (x|y|z)? (by dropping
an emtiable particle).

--Stefan

> 
> If I have a base type B with the following content mode
>  
> B = (x | y) 
>  
> is there a way to create a derived type D with content model
>  
> D = (x |y |z) 
>  
>  
>  
> I thought of extension but at best I can create 
>  
> D = (x|y) z 
>  
> Restriction similarly doesn't work. Perhaps there is some clever way to do
> this with substitution groups I haven't thought of. 
> 
Received on Thursday, 22 August 2002 15:11:13 GMT

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