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 4058 - elemZ028c - UPA violation
Summary: elemZ028c - UPA violation
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 XP
: P2 normal
Target Milestone: ---
Assignee: Henry S. Thompson
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard: metadata updated 2009-01-13
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-09 20:12 UTC by Michael Kay
Modified: 2009-01-13 17:24 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-12-09 20:12:44 UTC
In the Microsoft Element test set, test elemZ028c, the schema elemZ028c.xsd is described as valid but appears to violate UPA. Specifically, there is a conflict between elements a and b in:

<xs:element type="xs:short" substitutionGroup="b" name="a"/>
<xs:element type="xs:decimal" name="b"/>
 
<xs:complexType name="base">
	<xs:all>
		<xs:element ref="a"/>
		<xs:element ref="b"/>
	</xs:all>
</xs:complexType>
Comment 1 Michael Kay 2006-12-09 20:40:38 UTC
Test elemZ028d suffers essentially the same problem, except that the compositor is xs:choice rather than xs:all.

(Saxon actually doesn't report a UPA violation in this case, it reports a violation of Element Declarations Consistent, but that's purely an accident of the order of checking the rules).

Schema elemZ028f.xsd, used in the following tests, shows the same problem:

   <test group="elemZ028f1" name="elemZ028f1"/>
   <test group="elemZ028f1" name="elemZ028f1.v"/>
   <test group="elemZ028f2" name="elemZ028f2"/>
   <test group="elemZ028f2" name="elemZ028f2.v"/>
   <test group="elemZ028f3" name="elemZ028f3"/>
   <test group="elemZ028f3" name="elemZ028f3.v"/>



Comment 2 Zafar Abbas 2007-01-29 22:45:58 UTC
Agreed that the expected outcome of this test should be invalid. We are
following up with the WG to determine the process of updating the test suite.
Comment 3 Michael Kay 2008-06-21 16:04:29 UTC
Agreed, these schemas are invalid and should be marked as such in the metadata.