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}.




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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:56 UTC