Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: A bug or incorrect logic?

From: "Michael Kay" <mike@--------.--->
To: "'Arshad Noor'" <arshad.noor@----------.--->, <xmlschema-dev@--.--->
Date: 10/31/2008 5:39:00 PM
Your content model allows an optional PersonPrefixName, and then a required
element which can be either a PersonFirstName or a PersonGivenName. So empty
content is not allowed. The error message is telling you that at the point
where the end of the content was found, there are three things that would
have been valid, a PersonPrefixName, a PersonFirstName, or a
PersonGivenName. 

> the XML Schema tool gives me the following error:
> 
> cvc-complex-type.2.4.b: The content of element 'SignerName' 
> is not complete. One of '{PersonPrefixName, PersonFirstName, 
> PersonGivenName}' 
> is expected. [129]
> 
> However, the PersonPrefixName has a minOccurs of "0", so why 
> am I seeing an error where the tool insists that the 
> PersonPrefixName is expected?

It's saying "One of A, B, or C is expected". I can't see how you read that
as "insisting that A is expected".

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




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