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

Unique Particle Attribution

From: Zafar Abbas <zafara@microsoft.com>
Date: Wed, 9 Feb 2005 10:49:22 -0800
Message-ID: <563BD3496D37BB4B9F4E8F896A58F2B3041ABBDF@RED-MSG-50.redmond.corp.microsoft.com>
To: <xmlschema-dev@w3.org>

>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:sequence>
	<xsd:element ref="a" minOccurs="0"/>
	<xsd:element ref="b" minOccurs="0"/>
	<xsd:element ref="a" maxOccurs="2"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="a" />
<xsd:element name="b" />
</xsd:schema>


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?

Thanks.
Received on Wednesday, 9 February 2005 19:00:17 UTC

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