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

Re: duplicated element names in content model

From: Florent Georges <lists@fgeorges.org>
Date: Fri, 2 Jan 2009 16:45:36 +0100 (CET)
To: Tobias Koenig <tobias.koenig@trolltech.com>, xmlschema-dev@w3.org
Message-ID: <123958.39628.qm@web23003.mail.ird.yahoo.com>
Re: duplicated element names in content model

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/























      
Received on Friday, 2 January 2009 15:46:17 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.