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

RE: Element + complextype name in xml schema

From: Michael Kay <mike@saxonica.com>
Date: Fri, 8 Apr 2005 19:43:50 +0100
To: "'Nicolas Mailhot'" <nicolas.mailhot@laposte.net>, <xmlschema-dev@w3.org>
Message-ID: <8052.28269.1120563516@automsgid.listhub.w3.org>
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 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.