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

RE: Validation rules for a complexType

From: John Verhaeg <jverhaeg@metamatrix.com>
Date: Tue, 2 Jul 2002 11:41:28 -0500
Message-ID: <C7CDD3E67B05D411A45800E018C1614EE6D9BD@mail>
To: "'Eric van der Vlist'" <vdv@dyomedea.com>
Cc: "XML Schema \"Mailing List (E-mail)" <xmlschema-dev@w3.org>

> 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

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
Received on Tuesday, 2 July 2002 12:41:30 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:03 UTC