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

Re: constraints on model group schema components: Unique Particle Att ribution

From: <noah_mendelsohn@us.ibm.com>
Date: Mon, 25 Mar 2002 12:47:20 -0500
To: "Kriegesmann, Peter" <Peter.Kriegesmann@softwareag.com>
Cc: xmlschema-dev@w3.org
Message-ID: <OFCA729FE0.168D7646-ON85256B87.00629A52@lotus.com>
In your example, the fragment:

<xs:element name = "child">
        <xs:element ref = "x" minOccurs = "0"></xs:element>
        <xs:element ref = "x" minOccurs = "0"></xs:element>

violates the unique article attribution constraint.  Reason: when 
validating the instance


you don't know whether the <x/> matches the first for the second reference 
to x.    If you look at the specification at [1] you will see that the 
declaration of the sequence turns into a list of two particles.  The fact 
that both particles reference the same declaration as their {term} [2] 
does not result in the two particles being combined.  There are two 
particles and thus an ambiguity.

[1] http://www.w3.org/TR/xmlschema-1/#Model_Group_details
[2] http://www.w3.org/TR/xmlschema-1/#cParticles
Noah Mendelsohn                              Voice: 1-617-693-4036
IBM Corporation                                Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
Received on Monday, 25 March 2002 13:02:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:55 UTC