Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - duplicated element names in content model [Thread Next] Re: duplicated element names in content modelTo: Tobias Koenig <tobias.koenig@---------.--->, xmlschema-dev@--.--- Date: 1/2/2009 5:46:00 PM
Tobias Koenig wrote:
> But why exactly is it wrong? Does it violates the UPA constraint in
> some way?
No, it violates the constraint "Element Declarations Consistent"
<http://www.w3.org/TR/xmlschema-1/#cos-element-consistent>. You cannot
have two sibling elements with the same name but different types. Your
example could have been more simply the following:
<xsd:sequence>
<xsd:element name="e1" type="xsd:string"/>
<xsd:element name="e1" type="xsd:integer"/>
</xsd:sequence>
Regards,
--
Florent Georges
http://www.fgeorges.org/
From bharathkr@h... Mon Jan 05 10:22:42 2009
Received: from bart.w3.org ([128.3 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
