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 5784 - Restrictions of unions
Summary: Restrictions of unions
Status: NEW
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Structures: XSD Part 1 (show other bugs)
Version: 1.0 only
Hardware: PC Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: David Ezell
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 4065
  Show dependency treegraph
 
Reported: 2008-06-22 15:03 UTC by Michael Kay
Modified: 2012-12-04 00:53 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2008-06-22 15:03:12 UTC
See bug #4065 against test case stZ073b.

We allow xsi:type to reference one of the member types of a union even if the union has facets. This breaks substitutability. This has been fixed in 1.1 but remains a serious error in 1.0.

Although the 1.1 solution would be too disruptive for an erratum, a possible fix would be to say that a member type of a union is not validly derived from the union type in the case where the union type has one or more facets.