Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Unique Particle Attribution [Thread Next] Re: Unique Particle AttributionTo: "Zafar Abbas" <zafara@---------.---> Date: 2/9/2005 9:35:00 AM That looks correct - it is a violaiton for the reason that you mentioned. "Zafar Abbas" <zafara@m...>@w3.org on 02/09/2005 01:49:22 PM Sent by: xmlschema-dev-request@w... To: <xmlschema-dev@w...> cc: 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: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. From noah_mendelsohn@u... Wed Feb 09 20:54:10 2005 Received: from lisa.w3.org | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
