Re: Element + complextype name in xml schema

On Sam 9 avril 2005 14:34, noah_mendelsohn@us.ibm.com a écrit :
> Nicolas Mailhot asks:
>
>> I've been sent an xsd that uses
>> the following construct :
>
>> <xsi:element name="foo">
>>   <xsi:complexType name="foo">
>
>> Is this something allowed ?
>
> As several writers have correctly responded, complexTypes within an
> element declaration must be anonymous.  What they did not point out,
> however, is that there is otherwise no problem having a type and an
> element declaration with the same name.  They are in what the
> recommendation calls separate "symbol spaces".

Wow - this list is astounding - that's the first time I had so many
different aspects of a question explained without any disgression. You
guys are great - if I ever have other schema questions I know where to
post them;)

Regards,

-- 
Nicolas Mailhot

Received on Monday, 11 April 2005 07:42:33 UTC