W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2002

Re: [xmlschema-dev] <none>

From: Jeni Tennison <jeni@jenitennison.com>
Date: Thu, 14 Feb 2002 16:42:09 +0000
Message-ID: <109439881876.20020214164209@jenitennison.com>
To: Eamon.Galavan@risk.sungard.com
CC: xmlschema-dev@w3.org
Hi Eamon,

> I get the error that the schema does not support the element c. If I
> remove the <c> then the validater complains that the data is
> incomplete. I just want to any data that I please, the does not need
> to be validated after <b> Can anyone what I am doing wrong?

I suspect that this is a bug in your schema processor rather than
anything wrong with your schema itself. I tried your schema and
instance with both Xerces and XSV and it worked just fine.

By the way, if you want to permit the Letters element to *not* hold a
third element in some circumstances, you should make sure that the
xs:any element has a minOccurs attribute of 0. (And if you want to
permit more than one element of any kind after the a and b elements,
you should set the maxOccurs attribute on the xs:any to whatever the
maximum is, or unbounded.)

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Thursday, 14 February 2002 11:42:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT