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

Re: two elements with the same name but different types

From: <Paul.V.Biron@kp.org>
Date: Mon, 20 Mar 2006 09:41:49 -0800
To: andrew.j.welch@gmail.com
Cc: mike@saxonica.com, xmlschema-dev@w3.org, xmlschema-dev-request@w3.org
Message-Id: <OFC2E4F378.A63D7F9B-ON88257137.0060CA15-88257137.00613838@KP.ORG>
Re: two elements with the same name but different types
> I read this:
> 
> http://www.stylusstudio.com/xmldev/200307/post30110.html
> 
> ...which gave me hope, but must be wrong.

Yes, that is definately wrong.

It is possible to define 2 separate elements that happen to share the same 
name with local element declarations but those 2 elements cannot be in the 
same content model...as you require in your case.

If you want to read the gory details of where this is disallowed in the 
spec, see [1].

pvb

[1] http://www.w3.org/TR/xmlschema-1/#cos-element-consistent
Received on Monday, 20 March 2006 17:51:48 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.