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 10111 - stE072 invalid - ID as outermost element
Summary: stE072 invalid - ID as outermost element
Status: RESOLVED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: Microsoft tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: MK to update this test
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-08 15:36 UTC by Michael Kay
Modified: 2011-10-18 15:07 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2010-07-08 15:36:30 UTC
In Mocrosoft test set SimpleTypes, the instance test stE072 should be invalid since the outermmost element <root> is an element of type ID.
Comment 1 David Ezell 2010-07-09 16:08:09 UTC
WG agrees to resolve this one exactly like bug 10100.
Comment 2 Michael Kay 2010-07-09 16:09:26 UTC
Again this might not be a problem for a 1.0 processor as unions of IDs are not considered to have ID semantics in 1.0
Comment 3 Michael Kay 2010-07-10 20:51:47 UTC
As per WG decision, fixed this by adding a wrapper element, so the ID value in the outermost element does not cause invalidity in XSD 1.1
Comment 4 Michael Kay 2010-10-11 14:44:37 UTC
The agreed change doesn't make the schema valid in XSD 1.0, because the ban on an ID having a fixed value also (perhaps?) applies to a union involving ID (it depends on the interpretation of whether "derived from ID" includes "derived by union").
Comment 5 Michael Kay 2011-10-18 14:38:06 UTC
Also noted that the amended schema uses the wrong namespace prefix. Fixed this.
Comment 6 Michael Kay 2011-10-18 15:07:00 UTC
After the fix to the namespace issue, it appears the test is now valid in XSD 1.1 at any rate; under comment 4 it remains questionable under XSD 1.0. But I am closing the bug as fixed.