W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2008

RE: A bug or incorrect logic?

From: Michael Kay <mike@saxonica.com>
Date: Fri, 31 Oct 2008 17:35:24 -0000
To: "'Arshad Noor'" <arshad.noor@strongauth.com>, <xmlschema-dev@w3.org>
Message-ID: <D49183063E004848B1E8195B538FF875@Sealion>

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/
Received on Friday, 31 October 2008 17:36:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 16 March 2009 11:13:42 GMT