W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2006

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>
> 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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:54 GMT