Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Unique Particle Attribution

From: noah_mendelsohn@--.---.---
To: "Zafar Abbas" <zafara@---------.--->
Date: 2/9/2005 9:38:00 AM
Yes, this is a violation; the content model of 'type' does not obey the 
UPA constraint.  Note that if the minOccurs for the "b" reference were >=1 
there would be no violation, as for a given <a> element you would know for 
sure that it came before or after the b.  In schema terms, the content 
model for the sequence of "type" has three particles, and you can't tell 
whether one or more <a> elements match the first or the third.

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------








"Zafar Abbas" <zafara@m...>
Sent by: xmlschema-dev-request@w...
02/09/2005 01:49 PM

 
        To:     <xmlschema-dev@w...>
        cc:     (bcc: Noah Mendelsohn/Cambridge/IBM)
        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 JTaylor@n... Sat Feb 12 00:14:13 2005
Received: from bart.w3.org ([128.30.52.40])
	by f


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent