Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Determinization in case of ambiguity or Should XML validators report on schemas that violate the UPA constraint?

From: "Shlomo Yona" <S.Yona@--.--->
To: "Michael Kay" <mike@--------.--->, "Henry S. Thompson" <ht@---.--.--.-->
Date: 4/16/2007 11:59:00 PM
Thanks.

Shlomo.

-----Original Message-----
From: Michael Kay [mailto:mike@s...] 
Sent: =E2 17 =E0=F4=F8=E9=EC 2007 14:11
To: Shlomo Yona; 'Henry S. Thompson'
Cc: xmlschema-dev@w...
Subject: RE: Determinization in case of ambiguity or Should XML =
validators report on schemas that violate the UPA constraint?

> 
> I had another example where an xsd:sequence with an implied 
> minOccurs="1" and maxOccurs="1" contains particles with =
minOccurs="0".
> What is the expected behavior when none of these particles 
> appear in an XML instance?

It's quite valid to have a sequence with minOccurs="1" that contains =
an
element with minOccurs="0". Conceptually it means that the sequence =
must
occur, but if all the elements within the sequence are optional, then =
the
sequence is allowed to be empty. Of course in an instance document you =
can't
tell the difference between an empty sequence and an absent sequence, so =
you
might as well have written minOccurs="0" on the whole sequence, but in =
the
grammar they are subtly different.

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



From esirois@c... Wed Apr 18 01:35:32 2007
Received: from maggie.w


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