W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2005

Re: Unique Particle Attribution

From: Morris Matsa <mmatsa@us.ibm.com>
Date: Wed, 9 Feb 2005 14:35:13 -0500
To: "Zafar Abbas" <zafara@microsoft.com>
Cc: <xmlschema-dev@w3.org>
Message-ID: <OFE0526587.EF43B30B-ON85256FA3.006B7C45-85256FA3.006B9879@us.ibm.com>

That looks correct - it is a violaiton for the reason that you mentioned.

"Zafar Abbas" <zafara@microsoft.com>@w3.org on 02/09/2005 01:49:22 PM

Sent by:    xmlschema-dev-request@w3.org

To:    <xmlschema-dev@w3.org>
Subject:    Unique Particle Attribution

>From my reading of the Unique Particle Attribution constraint in the
spec, the following schema is a violation:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:complexType name="type">
 <xsd:element ref="a" minOccurs="0"/>
 <xsd:element ref="b" minOccurs="0"/>
 <xsd:element ref="a" maxOccurs="2"/>
<xsd:element name="a" />
<xsd:element name="b" />

It can not be known which particle (a) to validate, even through they
are references to the same element schema component. Is this
understanding correct?

Received on Wednesday, 9 February 2005 20:04:25 UTC

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