RE: Validation rules for a complexType

> Yes and no: that's true for children elements but not for attributes
> which you can either repeat or not.

Could you please point out to me where in the spec, if anywhere, it actually
states that elements need to be redeclared in the subtype if they are to be
included?

Plus, what happens if in my subtype I re-declare one of, say, three
attributes from the supertype.  Do I still get the other two, or does the
specification of one mean I now must specify the rest?

> For child elements, why would you want to redeclare them with maxOccurs=0
?

I'm not saying I would want to, I'm just wondering what the effective
difference would be, if any, between the maxOccurs approach and not
specifying them at all.

One last question (this is really what led to my initial confusion): Does
the lack of need to redeclare attributes also apply to anyAttribute?  If so,
why does the sForS redeclare anyAttribute for complexRestrictionType?



John P. A. Verhaeg
JVerhaeg@MetaMatrix.Com

Received on Tuesday, 2 July 2002 12:41:30 UTC