RE: Nested Schema

> -----Original Message-----
> From:	Martin Gudgin [SMTP:marting@develop.com]
> Sent:	Wednesday, February 13, 2002 8:57 AM
> To:	xmlschema-dev@w3.org; Sameek Ghosh
> Subject:	Re: Nested Schema
> 
> You need something along these lines;
> 
> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' >
>   <xs:element name='Menu' >
>     <xs:complexType>
>       <xs:sequence>
>         <xs:element name='File' type='xs:string' />
>         <xs:element name='Edit' type='xs:string' />
>         <xs:element ref='Menu' minOccurs='0' /> <!-- note ref and
> minOccurs -->
>       </xs:sequence>
>     </xs:complexType>
>   </xs:element>
> </xs:schema>
> 
The following also works:

Received on Friday, 15 February 2002 19:22:41 UTC