Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Unique Particle Attribution

From: noah_mendelsohn@--.---.---
To: "Michael Kay" <mike@--------.--->
Date: 2/9/2005 9:57:00 AM
Michael Kay writes:

> However, some schema processors including XSV
> and Saxon use an algorithm that only requires
> the element declaration to be identified
> uniquely, and therefore let this one through.

Yes, but just to be clear, such processors are in this respect 
non-conforming.  The Schema recommendation is quite clear that your 
example is a UPA violation, and conforming processors MUST report it as 
such.

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








"Michael Kay" <mike@s...>
Sent by: xmlschema-dev-request@w...
02/09/2005 02:40 PM

 
        To:     "'Zafar Abbas'" <zafara@m...>, <xmlschema-dev@w...>
        cc:     (bcc: Noah Mendelsohn/Cambridge/IBM)
        Subject:        RE: Unique Particle Attribution



Yes, the requirement is to identify a particle uniquely, not just an 
element
declaration.

However, some schema processors including XSV and Saxon use an algorithm
that only requires the element declaration to be identified uniquely, and
therefore let this one through.

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Zafar Abbas
> Sent: 09 February 2005 18:49
> To: xmlschema-dev@w...
> 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 mmatsa@u... Wed Feb 09 20:04:25 2005
Received: from lisa.w3.org ([128.30.52.41])
	by frink.w3.org with esmtp (Exim 4


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