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

Re: union of a union legal?

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 3 Apr 2002 18:29:46 +0100
Message-ID: <53122182679.20020403182946@jenitennison.com>
To: Li Liang <lliang88@yahoo.com>
CC: xmlschema-dev@w3.org
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 GMT

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