This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2574 - Is anySimpleType allowed in unions? lists?
Summary: Is anySimpleType allowed in unions? lists?
Status: ASSIGNED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Datatypes: XSD Part 2 (show other bugs)
Version: 1.0 only
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords: unclassified
Depends on:
Blocks:
 
Reported: 2005-12-09 20:36 UTC by C. M. Sperberg-McQueen
Modified: 2005-12-15 13:43 UTC (History)
0 users

See Also:


Attachments

Description C. M. Sperberg-McQueen 2005-12-09 20:36:43 UTC
There is some uncertainty about whether XSD 1.0 allows or forbids
the use of anySimpleType as a member type in constructing a union
or as an item type when constructing a list.

It can be (and has been) argued that Structures section 3.4.16, 
validation rule Derivation Valid (Restriction, Simple) rules it 
out in clause 3.1, which requires that the member types of
a union must have {variety} = list or {variety} = union.

But it has also been argued that there is material in Datatypes which
suggests that anySimpleType is indeed legal as a member of a union.

We may need clarification in the text of 1.0, either way.  And
some WG members would like agreement on whether anySimpleType can
be a member of a union in 1.0, before deciding what the rules
should be in 1.1 and closing bug 2306.