Re: union of a union legal?

Hi Li,

> Can definitions of union types in schema _documents_ include
> references to itself? I think not. Does the spec address it
> somewhere? Thanks.

Circular unions are explicitly disallowed by Schema Component
Constraint: no circular unions:

  If {variety} is ·union·, then it is an ·error· if {name} and {target
  namespace} ·match· {name} and {target namespace} of any member of
  {member type definitions}.

               http://www.w3.org/TR/xmlschema-2#cos-no-circular-unions

Cheers,

Jeni

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

Received on Wednesday, 3 April 2002 12:29:48 UTC