Re: Derivation by restriction from <any>

Simon.Cox@csiro.au writes:

> Is it possible to derive by restriction starting with an <any>?
> 
> e.g.
> 
> <complexType name="basetype">
>   <sequence>
>     <any maxOccurs="unbounded"/>
>   </sequence>
> </complexType>
> 
> <complexType name="newtype">
>   <complexContent>
>     <restriction base="my:basetype">
>       <sequence>
>         <element name="e1" type="string"/>
>         <element name="e2" type="integer" minOccurs="0"/>
>         <element name="e3" type="date" minOccurs="0"/>
>       </sequence>    
>     </restriction>
>   </complexContent>
> </complexType>

Yes, that should be fine.

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 Tuesday, 5 March 2002 05:28:13 UTC