RE: Element + complextype name in xml schema

> I've been sent an xsd that uses the following construct :
> 
> <xsi:element name="foo">
>   <xsi:complexType name="foo">
> 
> Is this something allowed ? 

No, it's not. A complex type defined anywhere except at the top level must
be anonymous.

I'm afraid I can't see immediately where the spec says this but I'm sure it
does.

Michael Kay
http://www.saxonica.com/

Received on Friday, 8 April 2005 18:43:56 UTC