[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Element + complextype name in xml schema

From: Nicolas Mailhot <nicolas.mailhot@laposte.net>
Date: Mon, 11 Apr 2005 09:42:21 +0200 (CEST)
Message-ID: <27376.192.54.193.28.1113205341.squirrel@rousalka.dyndns.org>
To: noah_mendelsohn@us.ibm.com
Cc: "Nicolas Mailhot" <nicolas.mailhot@laposte.net>, xmlschema-dev@w3.org
complextype name


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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.