Re: allowing zero to unbounded elements in any order?

Hi Michael,

> Actually, NumWafers and Wafers are mandatory, they just want them in
> any order. It's everything in :
>
>         <xsd:extension base="Type_ToolLotSummary">
>
> The Type_ToolLotSummary, which is above <xs:all> that is optional
> (everyting), and also needed to be in any order.

I'm sorry, I overlooked the fact that you were extending the type.
<xs:all> can't be used in that context because when you extend a type
you effectively create a sequence of the content from the base type
followed by the content from the extension, and <xs:all> isn't allowed
within a sequence. There's no way to build a type by extension and
allow all the elements (from both the base type and the extension) to
be present in any order. Sorry that I didn't spot that sooner.

> Dumb question : Is <xs:???> and <xsd:???> the same thing?  

Yes; I tend to use <xs:*> because that's what's used in the XML Schema
Rec, and because it's shorter.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Tuesday, 18 March 2003 12:58:50 UTC