|
[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> > 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-consistentReceived on Monday, 20 March 2006 17:51:48 GMT |
Subscribe in XML format
|






